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)(source)

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onClick: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit?
Link copied to clipboard
val onHover: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit?
Link copied to clipboard
val onLeave: (event: ChartEvent, legendItem: LegendItem, legend: LegendElement) -> Unit?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rtl: Boolean?
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.