init method

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

Implementation

void init(ChartContext context, GraphicsFactory graphicsFactory) {
  this.context = context;

  // When graphics factory is updated, update all the views.
  if (this.graphicsFactory != graphicsFactory) {
    this.graphicsFactory = graphicsFactory;

    _layoutManager.applyToViews(
      (view) => view.graphicsFactory = graphicsFactory,
    );
  }

  configurationChanged();
}