kvision / pl.treksoft.kvision.chart / LineOptions

LineOptions

data class LineOptions

Chart line options.

Constructors

<init>

LineOptions(cubicInterpolationMode: InterpolationMode = InterpolationMode.DEFAULT, tension: Double = 0.2, backgroundColor: Color? = null, borderWidth: Int = 1, borderColor: Color? = null, borderCapStyle: LineCap? = null, borderDash: List<Any>? = null, borderDashOffset: Int = 0, borderJoinStyle: LineJoin? = null, capBezierPoints: Boolean = true, fill: Boolean = true, stepped: Boolean = false)

Chart line options.

Properties

backgroundColor

val backgroundColor: Color?

borderCapStyle

val borderCapStyle: LineCap?

borderColor

val borderColor: Color?

borderDash

val borderDash: List<Any>?

borderDashOffset

val borderDashOffset: Int

borderJoinStyle

val borderJoinStyle: LineJoin?

borderWidth

val borderWidth: Int

capBezierPoints

val capBezierPoints: Boolean

cubicInterpolationMode

val cubicInterpolationMode: InterpolationMode

fill

val fill: Boolean

stepped

val stepped: Boolean

tension

val tension: Double

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun LineOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.