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.
the chart's Dataset