LegendOptions

data class LegendOptions(display: Boolean, position: Position, fullWidth: Boolean, reverse: Boolean, onClick: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit?, onHover: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit?, labels: LegendLabelOptions?, align: LegendAlign?, onLeave: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit?)

Chart legend options.

Constructors

LegendOptions
Link copied to clipboard
fun LegendOptions(display: Boolean = true, position: Position = Position.TOP, fullWidth: Boolean = true, reverse: Boolean = false, onClick: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit? = null, onHover: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit? = null, labels: LegendLabelOptions? = null, align: LegendAlign? = null, onLeave: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit? = null)

Properties

align
Link copied to clipboard
val align: LegendAlign? = null
display
Link copied to clipboard
val display: Boolean = true
fullWidth
Link copied to clipboard
val fullWidth: Boolean = true
labels
Link copied to clipboard
val labels: LegendLabelOptions? = null
onClick
Link copied to clipboard
val onClick: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit? = null
onHover
Link copied to clipboard
val onHover: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit? = null
onLeave
Link copied to clipboard
val onLeave: (event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit? = null
position
Link copied to clipboard
val position: Position
reverse
Link copied to clipboard
val reverse: Boolean = false

Extensions

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