LegendLabelOptions

data class LegendLabelOptions(val boxWidth: Int = 40, val boxHeight: Int? = null, val color: Color? = null, val font: ChartFont? = null, val padding: Int = 10, val generateLabels: (chart: Any) -> Array<LegendItem>? = null, val filter: (legendItem: LegendItem, data: ChartData) -> Boolean? = null, val sort: (a: LegendItem, b: LegendItem, data: ChartData) -> Number? = null, val usePointStyle: Boolean = false, val pointStyle: PointStyle? = null, val textAlign: LegendLabelAlign? = null)

Chart legend label options.

Constructors

Link copied to clipboard
constructor(boxWidth: Int = 40, boxHeight: Int? = null, color: Color? = null, font: ChartFont? = null, padding: Int = 10, generateLabels: (chart: Any) -> Array<LegendItem>? = null, filter: (legendItem: LegendItem, data: ChartData) -> Boolean? = null, sort: (a: LegendItem, b: LegendItem, data: ChartData) -> Number? = null, usePointStyle: Boolean = false, pointStyle: PointStyle? = null, textAlign: LegendLabelAlign? = null)

Properties

Link copied to clipboard
val boxHeight: Int? = null
Link copied to clipboard
val boxWidth: Int = 40
Link copied to clipboard
val color: Color? = null
Link copied to clipboard
val filter: (legendItem: LegendItem, data: ChartData) -> Boolean? = null
Link copied to clipboard
val font: ChartFont? = null
Link copied to clipboard
val generateLabels: (chart: Any) -> Array<LegendItem>? = null
Link copied to clipboard
val padding: Int = 10
Link copied to clipboard
val pointStyle: PointStyle? = null
Link copied to clipboard
val sort: (a: LegendItem, b: LegendItem, data: ChartData) -> Number? = null
Link copied to clipboard
Link copied to clipboard
val usePointStyle: Boolean = false

Functions

Link copied to clipboard
fun LegendLabelOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.