notifyDataChanged method
Call this method to let the ChartData know that the underlying data has changed. Calling this performs all necessary recalculations needed when the contained data has changed.
Implementation
@override
void notifyDataChanged() {
if (_lineData != null) _lineData!.notifyDataChanged();
if (_barData != null) _barData!.notifyDataChanged();
if (_candleData != null) _candleData!.notifyDataChanged();
if (_scatterData != null) _scatterData!.notifyDataChanged();
if (_bubbleData != null) _bubbleData!.notifyDataChanged();
calcMinMax1(); // recalculate everything
}