prepare

open fun prepare(dataset: Dataset<DOMAIN>)

The prepare function is called once on the initialization of mark and on data changed.

You can use this to indicate some requirements by using require or to compute some elements that do not change until data change.

Parameters

dataset

the chart's Dataset