ChartOptions

data class ChartOptions(val responsive: Boolean = true, val aspectRatio: Number? = null, val maintainAspectRatio: Boolean = true, val onResize: (chart: Chart, newSize: ChartSize) -> Unit? = null, val resizeDelay: Int? = null, val devicePixelRatio: Number? = null, val locale: String? = null, val interaction: InteractionOptions? = null, val hover: InteractionOptions? = null, val events: List<String>? = null, val onHover: (event: ChartEvent, elements: Array<ActiveElement>, chart: Chart) -> Any? = null, val onClick: (event: ChartEvent, elements: Array<ActiveElement>, chart: Chart) -> Any? = null, val animation: AnimationOptions? = null, val animations: dynamic = null, val transitions: dynamic = null, val layout: LayoutOptions? = null, val elements: ElementsOptions? = null, val elementsDynamic: dynamic = null, val scales: Map<String, ChartScales>? = null, val scalesDynamic: dynamic = null, val showLine: Boolean? = null, val spanGaps: Boolean? = null, val cutoutPercentage: Int? = null, val circumference: Double? = null, val rotation: Double? = null, val plugins: PluginsOptions? = null, val pluginsDynamic: dynamic = null, val datasets: dynamic = null)

Chart options.

Constructors

Link copied to clipboard
constructor(responsive: Boolean = true, aspectRatio: Number? = null, maintainAspectRatio: Boolean = true, onResize: (chart: Chart, newSize: ChartSize) -> Unit? = null, resizeDelay: Int? = null, devicePixelRatio: Number? = null, locale: String? = null, interaction: InteractionOptions? = null, hover: InteractionOptions? = null, events: List<String>? = null, onHover: (event: ChartEvent, elements: Array<ActiveElement>, chart: Chart) -> Any? = null, onClick: (event: ChartEvent, elements: Array<ActiveElement>, chart: Chart) -> Any? = null, animation: AnimationOptions? = null, animations: dynamic = null, transitions: dynamic = null, layout: LayoutOptions? = null, elements: ElementsOptions? = null, elementsDynamic: dynamic = null, scales: Map<String, ChartScales>? = null, scalesDynamic: dynamic = null, showLine: Boolean? = null, spanGaps: Boolean? = null, cutoutPercentage: Int? = null, circumference: Double? = null, rotation: Double? = null, plugins: PluginsOptions? = null, pluginsDynamic: dynamic = null, datasets: dynamic = null)

Properties

Link copied to clipboard
Link copied to clipboard
val animations: dynamic = null
Link copied to clipboard
val aspectRatio: Number? = null
Link copied to clipboard
val circumference: Double? = null
Link copied to clipboard
val cutoutPercentage: Int? = null
Link copied to clipboard
val datasets: dynamic = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val elementsDynamic: dynamic = null
Link copied to clipboard
val events: List<String>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val layout: LayoutOptions? = null
Link copied to clipboard
val locale: String? = null
Link copied to clipboard
Link copied to clipboard
val onClick: (event: ChartEvent, elements: Array<ActiveElement>, chart: Chart) -> Any? = null
Link copied to clipboard
val onHover: (event: ChartEvent, elements: Array<ActiveElement>, chart: Chart) -> Any? = null
Link copied to clipboard
val onResize: (chart: Chart, newSize: ChartSize) -> Unit? = null
Link copied to clipboard
val plugins: PluginsOptions? = null
Link copied to clipboard
val pluginsDynamic: dynamic = null
Link copied to clipboard
val resizeDelay: Int? = null
Link copied to clipboard
val responsive: Boolean = true
Link copied to clipboard
val rotation: Double? = null
Link copied to clipboard
val scales: Map<String, ChartScales>? = null
Link copied to clipboard
val scalesDynamic: dynamic = null
Link copied to clipboard
val showLine: Boolean? = null
Link copied to clipboard
val spanGaps: Boolean? = null
Link copied to clipboard
val transitions: dynamic = null

Functions

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

An extension function to convert configuration class to JS object.