kvision / pl.treksoft.kvision.chart / TickOptions

TickOptions

data class TickOptions

Chart tick options.

Constructors

<init>

TickOptions(callback: (value: Any, index: Any, values: Any) -> dynamic = null, display: Boolean = true, fontSize: Int = 12, fontStyle: FontStyle? = null, fontColor: Color? = null, fontFamily: String? = null, reverse: Boolean = false, minor: dynamic = null, major: dynamic = null)

Chart tick options.

Properties

callback

val callback: (value: Any, index: Any, values: Any) -> dynamic

display

val display: Boolean

fontColor

val fontColor: Color?

fontFamily

val fontFamily: String?

fontSize

val fontSize: Int

fontStyle

val fontStyle: FontStyle?

major

val major: dynamic

minor

val minor: dynamic

reverse

val reverse: Boolean

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun TickOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.