notifyDataSetChanged method

  1. @override
void notifyDataSetChanged()
override

Like the base, but also computes the axis labels (see computeAxes) before the legend and the offsets.

Implementation

@override
void notifyDataSetChanged() {
  final data = this.data;
  if (data == null) return;

  data.notifyDataChanged();
  calcMinMax();
  renderer.initBuffers();

  computeAxes();

  legendRenderer.computeLegend(data);

  calculateOffsets();
  invalidate();
}