kvision / pl.treksoft.kvision.chart / LegendOptions

LegendOptions

data class LegendOptions

Chart legend options.

Constructors

<init>

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)

Chart legend options.

Properties

display

val display: Boolean

fullWidth

val fullWidth: Boolean

labels

val labels: LegendLabelOptions?

onClick

val onClick: ((event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit)?

onHover

val onHover: ((event: MouseEvent, legendItem: Chart.ChartLegendLabelItem) -> Unit)?

position

val position: Position

reverse

val reverse: Boolean

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun LegendOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.