Chart Options
data class ChartOptions(responsive: Boolean, responsiveAnimationDuration: Int, aspectRatio: Int, maintainAspectRatio: Boolean, onResize: (chart: Chart, newSize: Chart.ChartSize) -> Unit?, devicePixelRatio: Int?, hover: HoverOptions?, events: List<String>?, onHover: (chart: Chart, event: MouseEvent, activeElements: Array<Any>) -> Any?, onClick: (event: MouseEvent, activeElements: Array<Any>) -> Any?, animation: AnimationOptions?, layout: LayoutOptions?, legend: LegendOptions?, legendCallback: (chart: Chart) -> String?, title: TitleOptions?, tooltips: TooltipOptions?, elements: ElementsOptions?, scales: ChartScales?, showLines: Boolean?, spanGaps: Boolean?, cutoutPercentage: Int?, circumference: Double?, rotation: Double?, plugins: dynamic, scale: dynamic)
Content copied to clipboard
Chart options.
Constructors
ChartOptions
Link copied to clipboard
fun 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: (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, plugins: dynamic = null, scale: dynamic = null)
Content copied to clipboard
Properties
animation
Link copied to clipboard
aspectRatio
Link copied to clipboard
circumference
Link copied to clipboard
cutoutPercentage
Link copied to clipboard
devicePixelRatio
Link copied to clipboard
elements
Link copied to clipboard
hover
Link copied to clipboard
layout
Link copied to clipboard
legend
Link copied to clipboard
legendCallback
Link copied to clipboard
maintainAspectRatio
Link copied to clipboard
onResize
Link copied to clipboard
responsive
Link copied to clipboard
responsiveAnimationDuration
Link copied to clipboard
scales
Link copied to clipboard
title
Link copied to clipboard
tooltips
Link copied to clipboard
Extensions
toJs
Link copied to clipboard