onAttach method
Handles any setup of the renderer that needs to be deferred until it is attached to a chart.
Implementation
@override
void onAttach(BaseChart<D> chart) {
super.onAttach(chart);
// Save a reference to the parent chart so that we can access properties
// that are not set until a later state (e.g. isRtl), or that might change
// dynamically (e.g. vertical).
this.chart = chart as CartesianChart<D>;
}