Create a Discrete dimension for the Chart.
The "accessor" is a lambda used to retrieve a value from a Datum.
The initialization lambda that will be applied to the Dimension just after its instantiation.