init method

  1. @override
void init(
  1. ChartContext context,
  2. GraphicsFactory graphicsFactory
)
override

Implementation

@override
void init(ChartContext context, GraphicsFactory graphicsFactory) {
  super.init(context, graphicsFactory);

  _primaryMeasureAxis.context = context;
  _primaryMeasureAxis.tickDrawStrategy = GridlineRendererSpec<num>()
      .createDrawStrategy(context, graphicsFactory);

  _secondaryMeasureAxis.context = context;
  _secondaryMeasureAxis.tickDrawStrategy = GridlineRendererSpec<num>()
      .createDrawStrategy(context, graphicsFactory);

  _disjointMeasureAxes.forEach((String axisId, NumericAxis axis) {
    axis.context = context;
    axis.tickDrawStrategy = NoneDrawStrategy<num>(context, graphicsFactory);
  });
}