Chart

open class Chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, className: String? = null, init: Chart.() -> Unit? = null)

Chart component.

Parameters

configuration

chart configuration

chartWidth

chart width in pixels

chartHeight

chart height in pixels

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, className: String? = null, init: Chart.() -> Unit? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Chart configuration.

Link copied to clipboard

Native JS chart object.

Functions

Link copied to clipboard
open fun clearChart()

Clears the chart.

Link copied to clipboard

Returns chart configuration in the form of native JS object.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun renderChart()

Renders the chart.

Link copied to clipboard
open fun reset()

Resets the chart.

Link copied to clipboard
open fun resizeChart()

Resizes the chart to the size of the container.

Link copied to clipboard
open fun stop()

Stops the animation.

Link copied to clipboard
open fun toBase64Image(): String?

Returns a base64 encoded string of the chart in its current state.

Link copied to clipboard
open fun update(updateMode: UpdateMode? = null)

Updates the chart.