kvision / pl.treksoft.kvision.chart / ChartScales

ChartScales

data class ChartScales

Chart scales.

Constructors

<init>

ChartScales(type: ScalesType? = null, display: Boolean = true, position: Position? = null, gridLines: GridLineOptions? = null, scaleLabel: ScaleTitleOptions? = null, ticks: TickOptions? = null, xAxes: List<dynamic>? = null, yAxes: List<dynamic>? = null)

Chart scales.

Properties

display

val display: Boolean

gridLines

val gridLines: GridLineOptions?

position

val position: Position?

scaleLabel

val scaleLabel: ScaleTitleOptions?

ticks

val ticks: TickOptions?

type

val type: ScalesType?

xAxes

val xAxes: List<dynamic>?

yAxes

val yAxes: List<dynamic>?

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun ChartScales.toJs(i18nTranslator: (String) -> String): dynamic

An extension function to convert configuration class to JS object.