populateDataSource method
void
populateDataSource([
- 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 populateDataSource([
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,
]) {
_resetDataSourceHolders();
if (sortingOrder == SortingOrder.none) {
super.populateDataSource(
<ChartValueMapper<T, num>>[],
<List<num>>[],
<List<num>>[],
<ChartValueMapper<T, Object>>[sizeValueMapper ?? _defaultSize],
<List<Object?>>[_sizes],
);
} else {
super.populateDataSource(
<ChartValueMapper<T, num>>[],
<List<num>>[],
<List<num>>[],
<ChartValueMapper<T, Object>>[sizeValueMapper ?? _defaultSize],
<List<Object?>>[_chaoticSizes],
<List<Object?>>[_sizes],
);
}
_minBubbleSize = double.infinity;
_maxBubbleSize = double.negativeInfinity;
for (final num size in _sizes) {
_minBubbleSize = min(_minBubbleSize, size);
_maxBubbleSize = max(_maxBubbleSize, size);
}
populateChartPoints();
}