LegendLabelOptions

data class LegendLabelOptions(boxWidth: Int, fontSize: Int, fontStyle: FontStyle?, fontColor: Color?, fontFamily: String?, padding: Int, generateLabels: (chart: Any) -> Any?, filter: (legendItem: Chart.ChartLegendLabelItem, data: Chart.ChartData) -> Any?, usePointStyle: Boolean)

Chart legend label options.

Constructors

LegendLabelOptions
Link copied to clipboard
fun 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: Chart.ChartLegendLabelItem, data: Chart.ChartData) -> Any? = null, usePointStyle: Boolean = false)

Properties

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

Extensions

toJs
Link copied to clipboard
fun LegendLabelOptions.toJs(): dynamic
An extension function to convert configuration class to JS object.