init method

  1. @override
void init()
override

Creates the components, paints and animator. Subclasses add their renderer, highlighter and touch listener.

Implementation

@override
void init() {
  super.init();

  renderer = BarChartRenderer(this, animator, viewPortHandler);

  highlighter = BarHighlighter(this);

  xAxis.spaceMin = 0.5;
  xAxis.spaceMax = 0.5;
}