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: Options? = null)

Chart configuration.

Properties

dataSets

val dataSets: List<DataSets>

labels

val labels: List<String>?

options

val options: Options?

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): ChartConfiguration

An extension function to convert configuration class to JS object.