kvision / pl.treksoft.kvision.chart.js / Chart

Chart

open external class Chart

Types

AngleLineOptions

interface AngleLineOptions

ChartAnimationObject

interface ChartAnimationObject

ChartAnimationOptions

interface ChartAnimationOptions

ChartAnimationParameter

interface ChartAnimationParameter

ChartArcOptions

interface ChartArcOptions

ChartArea

interface ChartArea

ChartConfiguration

interface ChartConfiguration

ChartData

interface ChartData

ChartDataSets

interface ChartDataSets

ChartElementsOptions

interface ChartElementsOptions

ChartFontOptions

interface ChartFontOptions

ChartHoverOptions

interface ChartHoverOptions

ChartLayoutOptions

interface ChartLayoutOptions

ChartLayoutPaddingObject

interface ChartLayoutPaddingObject

ChartLegendItem

interface ChartLegendItem

ChartLegendLabelItem

interface ChartLegendLabelItem : Chart.ChartLegendItem

ChartLegendLabelOptions

interface ChartLegendLabelOptions

ChartLegendOptions

interface ChartLegendOptions

ChartLineOptions

interface ChartLineOptions

ChartOptions

interface ChartOptions

ChartPluginsOptions

interface ChartPluginsOptions

ChartPoint

interface ChartPoint

ChartPointOptions

interface ChartPointOptions

ChartRectangleOptions

interface ChartRectangleOptions

ChartScales

interface ChartScales

ChartSize

interface ChartSize

ChartTitleOptions

interface ChartTitleOptions

ChartTooltipCallback

interface ChartTooltipCallback

ChartTooltipItem

interface ChartTooltipItem

ChartTooltipLabelColor

interface ChartTooltipLabelColor

ChartTooltipOptions

interface ChartTooltipOptions

ChartTooltipsStaticConfiguration

interface ChartTooltipsStaticConfiguration

ChartXAxe

interface ChartXAxe : Chart.CommonAxe

ChartYAxe

interface ChartYAxe : Chart.CommonAxe

CommonAxe

interface CommonAxe

GridLineOptions

interface GridLineOptions

LinearScale

interface LinearScale : Chart.ChartScales

LinearTickOptions

interface LinearTickOptions : Chart.TickOptions

LogarithmicScale

interface LogarithmicScale : Chart.ChartScales

LogarithmicTickOptions

interface LogarithmicTickOptions : Chart.TickOptions

NestedTickOptions

interface NestedTickOptions

Point

interface Point

PointLabelOptions

interface PointLabelOptions

Positioners

interface Positioners

RadialChartOptions

interface RadialChartOptions : Chart.ChartOptions

RadialLinearScale

interface RadialLinearScale : Chart.LinearScale

ScaleTitleOptions

interface ScaleTitleOptions

TickOptions

interface TickOptions : Chart.NestedTickOptions

TimeDisplayFormat

interface TimeDisplayFormat

TimeScale

interface TimeScale : Chart.ChartScales

Constructors

<init>

Chart(context: String, options: Chart.ChartConfiguration)
Chart(context: <ERROR CLASS>, options: Chart.ChartConfiguration)
Chart(context: <ERROR CLASS>, options: Chart.ChartConfiguration)
Chart(context: Array<dynamic>, options: Chart.ChartConfiguration)

Properties

canvas

open var canvas: <ERROR CLASS>?

chartArea

open var chartArea: Chart.ChartArea

config

open var config: Chart.ChartConfiguration

ctx

open var ctx: <ERROR CLASS>?

data

open var data: Chart.ChartData

options

open var options: Chart.ChartOptions

Functions

clear

open fun clear(): Any

destroy

open fun destroy(): Any

generateLegend

open fun generateLegend(): Any

getDatasetAtEvent

open fun getDatasetAtEvent(e: Any): Array<Any>

getDatasetMeta

open fun getDatasetMeta(index: Number): Meta

getElementAtEvent

open fun getElementAtEvent(e: Any): Any

getElementsAtEvent

open fun getElementsAtEvent(e: Any): Array<Any>

render

open fun render(duration: Any? = definedExternally, lazy: Any? = definedExternally): Any

reset

open fun reset(): Any

resize

open fun resize(): Any

stop

open fun stop(): Any

toBase64Image

open fun toBase64Image(): String

update

open fun update(duration: Any? = definedExternally, lazy: Any? = definedExternally): Any

Companion Object Properties

Chart

var Chart: Any?

controllers

var controllers: Json

defaults

var defaults: Defaults

helpers

var helpers: Json

plugins

var plugins: PluginServiceStatic

pluginService

var pluginService: PluginServiceStatic

Tooltip

var Tooltip: Chart.ChartTooltipsStaticConfiguration

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.