LegendOptions

data class LegendOptions(val display: Boolean = true, val position: Position = Position.TOP, val align: LegendAlign? = null, val maxHeight: Int? = null, val maxWidth: Int? = null, val fullSize: Boolean = true, val reverse: Boolean = false, val labels: LegendLabelOptions? = null, val rtl: Boolean? = null, val textDirection: TextDirection? = null, val title: LegendTitleOptions? = null, val onClick: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null, val onHover: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null, val onLeave: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null)

Chart legend options.

Constructors

Link copied to clipboard
constructor(display: Boolean = true, position: Position = Position.TOP, align: LegendAlign? = null, maxHeight: Int? = null, maxWidth: Int? = null, fullSize: Boolean = true, reverse: Boolean = false, labels: LegendLabelOptions? = null, rtl: Boolean? = null, textDirection: TextDirection? = null, title: LegendTitleOptions? = null, onClick: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null, onHover: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null, onLeave: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null)

Properties

Link copied to clipboard
val align: LegendAlign? = null
Link copied to clipboard
val display: Boolean = true
Link copied to clipboard
val fullSize: Boolean = true
Link copied to clipboard
Link copied to clipboard
val maxHeight: Int? = null
Link copied to clipboard
val maxWidth: Int? = null
Link copied to clipboard
val onClick: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null
Link copied to clipboard
val onHover: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null
Link copied to clipboard
val onLeave: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit? = null
Link copied to clipboard
Link copied to clipboard
val reverse: Boolean = false
Link copied to clipboard
val rtl: Boolean? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun LegendOptions.toJs(i18nTranslator: (String) -> String): dynamic

An extension function to convert configuration class to JS object.