init method

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

Implementation

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

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

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

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