discrete

fun <DOMAIN, VALUE> Chart<DOMAIN>.discrete(accessor: Datum<DOMAIN>.() -> VALUE, init: Discrete<DOMAIN, VALUE>.() -> Unit = {}): Discrete<DOMAIN, VALUE>

Create a Discrete dimension for the Chart.

Parameters

accessor

The "accessor" is a lambda used to retrieve a value from a Datum.

init

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