kvision / pl.treksoft.kvision.chart / LegendLabelOptions

LegendLabelOptions

(js) data class LegendLabelOptions

Chart legend label options.

Constructors

(js)

<init>

Chart legend label options.

LegendLabelOptions(boxWidth: Int = 40, fontSize: Int = 12, fontStyle: FontStyle? = null, fontColor: Color? = null, fontFamily: String? = null, padding: Int = 10, generateLabels: ((chart: Any) -> Any)? = null, filter: ((legendItem: ChartLegendLabelItem, data: ChartData) -> Any)? = null, usePointStyle: Boolean = false)

Properties

(js)

boxWidth

val boxWidth: Int
(js)

filter

val filter: ((legendItem: ChartLegendLabelItem, data: ChartData) -> Any)?
(js)

fontColor

val fontColor: Color?
(js)

fontFamily

val fontFamily: String?
(js)

fontSize

val fontSize: Int
(js)

fontStyle

val fontStyle: FontStyle?
(js)

generateLabels

val generateLabels: ((chart: Any) -> Any)?
(js)

padding

val padding: Int
(js)

usePointStyle

val usePointStyle: Boolean

Extension Functions

(js)

toJs

An extension function to convert configuration class to JS object.

fun LegendLabelOptions.toJs(): dynamic