kvision / pl.treksoft.kvision.chart / GridLineOptions

GridLineOptions

data class GridLineOptions

Chart grid line options.

Constructors

<init>

GridLineOptions(display: Boolean = true, color: Color? = null, borderDash: List<Int>? = null, borderDashOffset: Int = 0, lineWidth: Int = 1, drawBorder: Boolean = true, drawOnChartArea: Boolean = true, drawTicks: Boolean = true, tickMarkLength: Int = 10, zeroLineWidth: Int = 1, zeroLineColor: Color? = null, zeroLineBorderDash: List<Int>? = null, zeroLineBorderDashOffset: Int = 0, offsetGridLines: Boolean = false)

Chart grid line options.

Properties

borderDash

val borderDash: List<Int>?

borderDashOffset

val borderDashOffset: Int

color

val color: Color?

display

val display: Boolean

drawBorder

val drawBorder: Boolean

drawOnChartArea

val drawOnChartArea: Boolean

drawTicks

val drawTicks: Boolean

lineWidth

val lineWidth: Int

offsetGridLines

val offsetGridLines: Boolean

tickMarkLength

val tickMarkLength: Int

zeroLineBorderDash

val zeroLineBorderDash: List<Int>?

zeroLineBorderDashOffset

val zeroLineBorderDashOffset: Int

zeroLineColor

val zeroLineColor: Color?

zeroLineWidth

val zeroLineWidth: Int

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun GridLineOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.