initDefaultWithData method

  1. @override
void initDefaultWithData()
override

Implementation

@override
void initDefaultWithData() {
  super.initDefaultWithData();
  highlighter = BarHighlighter(this);
  renderer = BarChartRenderer(this, animator, viewPortHandler);
  xAxis?.spaceMin = (0.5);
  xAxis?.spaceMax = (0.5);
}