updateDataPoints method
void
updateDataPoints(
- List<
int> ? removedIndexes, - List<
int> ? addedIndexes, - List<
int> ? replacedIndexes, [ - List<
ChartValueMapper< ? yPaths,T, num> > - List<
List< ? chaoticYLists,num> > - List<
List< ? yLists,num> > - List<
ChartValueMapper< ? fPaths,T, Object> > - List<
List< ? chaoticFLists,Object?> > - List<
List< ? fLists,Object?> >
override
Implementation
@override
void updateDataPoints(
List<int>? removedIndexes,
List<int>? addedIndexes,
List<int>? replacedIndexes, [
List<ChartValueMapper<T, num>>? yPaths,
List<List<num>>? chaoticYLists,
List<List<num>>? yLists,
List<ChartValueMapper<T, Object>>? fPaths,
List<List<Object?>>? chaoticFLists,
List<List<Object?>>? fLists,
]) {
// For Histogram series, it is not possible to add, remove, or replace
// a data point based on the indexes, because the xValues and yValues are
// calculated based on the entire range of data. Therefore, we need to
// re-calculate the histogram x and y values dynamically.
// To achieve this, we directly call the markNeedsUpdate() method.
canUpdateOrCreateSegments = true;
markNeedsUpdate();
}