data class ChartOptions
Chart options.
ChartOptions(responsive: Boolean = true, responsiveAnimationDuration: Int = 0, aspectRatio: Int = 2, maintainAspectRatio: Boolean = true, onResize: ((chart: Chart, newSize: Chart.ChartSize) -> Unit)? = null, devicePixelRatio: Int? = null, hover: HoverOptions? = null, events: List<String>? = null, onHover: ((chart: Chart, event: MouseEvent, activeElements: Array<Any>) -> Any)? = null, onClick: ((chart: Chart, event: MouseEvent, activeElements: Array<Any>) -> Any)? = null, animation: AnimationOptions? = null, layout: LayoutOptions? = null, legend: LegendOptions? = null, legendCallback: ((chart: Chart) -> String)? = null, title: TitleOptions? = null, tooltips: TooltipOptions? = null, elements: ElementsOptions? = null, scales: ChartScales? = null, showLines: Boolean? = null, spanGaps: Boolean? = null, cutoutPercentage: Int? = null, circumference: Double? = null, rotation: Double? = null)
Chart options. |
val animation: AnimationOptions? |
|
val aspectRatio: Int |
|
val circumference: Double? |
|
val cutoutPercentage: Int? |
|
val devicePixelRatio: Int? |
|
val elements: ElementsOptions? |
|
val events: List<String>? |
|
val hover: HoverOptions? |
|
val layout: LayoutOptions? |
|
val legend: LegendOptions? |
|
val legendCallback: ((chart: Chart) -> String)? |
|
val maintainAspectRatio: Boolean |
|
val onClick: ((chart: Chart, event: MouseEvent, activeElements: Array<Any>) -> Any)? |
|
val onHover: ((chart: Chart, event: MouseEvent, activeElements: Array<Any>) -> Any)? |
|
val onResize: ((chart: Chart, newSize: Chart.ChartSize) -> Unit)? |
|
val responsive: Boolean |
|
val responsiveAnimationDuration: Int |
|
val rotation: Double? |
|
val scales: ChartScales? |
|
val showLines: Boolean? |
|
val spanGaps: Boolean? |
|
val title: TitleOptions? |
|
val tooltips: TooltipOptions? |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
fun ChartOptions.toJs(i18nTranslator: (String) -> String): dynamic
An extension function to convert configuration class to JS object. |