kvision / pl.treksoft.kvision.chart / Configuration

Configuration

data class Configuration

Chart configuration.

Constructors

<init>

Configuration(type: ChartType, dataSets: List<DataSets>, labels: List<String>? = null, options: ChartOptions? = null)

Chart configuration.

Properties

dataSets

val dataSets: List<DataSets>

labels

val labels: List<String>?

options

val options: ChartOptions?

type

val type: ChartType

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun Configuration.toJs(i18nTranslator: (String) -> String): Chart.ChartConfiguration

An extension function to convert configuration class to JS object.