kvision / pl.treksoft.kvision.chart / DataSets

DataSets

data class DataSets

Chart data sets.

Constructors

<init>

DataSets(cubicInterpolationMode: InterpolationMode? = null, backgroundColor: List<Color>? = null, borderWidth: List<Int>? = null, borderColor: List<Color>? = null, borderCapStyle: List<LineCap>? = null, borderDash: List<Int>? = null, borderDashOffset: Int? = null, borderJoinStyle: List<LineJoin>? = null, borderSkipped: List<Position>? = null, data: List<dynamic>? = null, fill: Boolean? = null, hoverBackgroundColor: List<Color>? = null, hoverBorderColor: List<Color>? = null, hoverBorderWidth: List<Int>? = null, label: String? = null, lineTension: Number? = null, steppedLine: Boolean? = null, pointBorderColor: List<Color>? = null, pointBackgroundColor: List<Color>? = null, pointBorderWidth: List<Int>? = null, pointRadius: List<Int>? = null, pointHoverRadius: List<Int>? = null, pointHitRadius: List<Int>? = null, pointHoverBackgroundColor: List<Color>? = null, pointHoverBorderColor: List<Color>? = null, pointHoverBorderWidth: List<Int>? = null, pointStyle: List<PointStyle>? = null, xAxisID: String? = null, yAxisID: String? = null, type: ChartType? = null, hidden: Boolean? = null, hideInLegendAndTooltip: Boolean? = null, showLine: Boolean? = null, stack: String? = null, spanGaps: Boolean? = null)

Chart data sets.

Properties

backgroundColor

val backgroundColor: List<Color>?

borderCapStyle

val borderCapStyle: List<LineCap>?

borderColor

val borderColor: List<Color>?

borderDash

val borderDash: List<Int>?

borderDashOffset

val borderDashOffset: Int?

borderJoinStyle

val borderJoinStyle: List<LineJoin>?

borderSkipped

val borderSkipped: List<Position>?

borderWidth

val borderWidth: List<Int>?

cubicInterpolationMode

val cubicInterpolationMode: InterpolationMode?

data

val data: List<dynamic>?

fill

val fill: Boolean?

hidden

val hidden: Boolean?

hideInLegendAndTooltip

val hideInLegendAndTooltip: Boolean?

hoverBackgroundColor

val hoverBackgroundColor: List<Color>?

hoverBorderColor

val hoverBorderColor: List<Color>?

hoverBorderWidth

val hoverBorderWidth: List<Int>?

label

val label: String?

lineTension

val lineTension: Number?

pointBackgroundColor

val pointBackgroundColor: List<Color>?

pointBorderColor

val pointBorderColor: List<Color>?

pointBorderWidth

val pointBorderWidth: List<Int>?

pointHitRadius

val pointHitRadius: List<Int>?

pointHoverBackgroundColor

val pointHoverBackgroundColor: List<Color>?

pointHoverBorderColor

val pointHoverBorderColor: List<Color>?

pointHoverBorderWidth

val pointHoverBorderWidth: List<Int>?

pointHoverRadius

val pointHoverRadius: List<Int>?

pointRadius

val pointRadius: List<Int>?

pointStyle

val pointStyle: List<PointStyle>?

showLine

val showLine: Boolean?

spanGaps

val spanGaps: Boolean?

stack

val stack: String?

steppedLine

val steppedLine: Boolean?

type

val type: ChartType?

xAxisID

val xAxisID: String?

yAxisID

val yAxisID: String?

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun DataSets.toJs(i18nTranslator: (String) -> String): dynamic

An extension function to convert configuration class to JS object.