constant

fun <DOMAIN, VALUE> Chart<DOMAIN>.constant(constantValue: VALUE, init: Constant<DOMAIN, VALUE>.() -> Unit = {}): Constant<DOMAIN, VALUE>

Create a Constant dimension for the Chart.

Parameters

constantValue

The value this Dimension will always have.

init

The initialization lambda that will be applied to the Dimension just after its instantiation.