BubbleSeries<T, D> constructor

const BubbleSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. List<T>? dataSource,
  4. required ChartValueMapper<T, D>? xValueMapper,
  5. required ChartValueMapper<T, num>? yValueMapper,
  6. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, num>? sizeValueMapper,
  8. ChartValueMapper<T, Color>? pointColorMapper,
  9. ChartValueMapper<T, String>? dataLabelMapper,
  10. String? xAxisName,
  11. String? yAxisName,
  12. Color? color,
  13. MarkerSettings markerSettings = const MarkerSettings(),
  14. List<Trendline>? trendlines,
  15. double minimumRadius = 3.0,
  16. double maximumRadius = 10.0,
  17. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  18. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  19. bool initialIsVisible = true,
  20. String? name,
  21. bool enableTooltip = true,
  22. bool enableTrackball = true,
  23. List<double>? dashArray,
  24. double animationDuration = 1500,
  25. Color borderColor = Colors.transparent,
  26. double borderWidth = 2.0,
  27. LinearGradient? gradient,
  28. LinearGradient? borderGradient,
  29. SelectionBehavior? selectionBehavior,
  30. bool isVisibleInLegend = true,
  31. LegendIconType legendIconType = LegendIconType.seriesType,
  32. SortingOrder sortingOrder = SortingOrder.none,
  33. String? legendItemText,
  34. double opacity = 1.0,
  35. double animationDelay = 0,
  36. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  37. ChartPointInteractionCallback? onPointTap,
  38. ChartPointInteractionCallback? onPointDoubleTap,
  39. ChartPointInteractionCallback? onPointLongPress,
  40. CartesianShaderCallback? onCreateShader,
  41. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of BubbleSeries class.

Implementation

const BubbleSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  this.sizeValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.xAxisName,
  super.yAxisName,
  super.color,
  super.markerSettings,
  super.trendlines,
  this.minimumRadius = 3.0,
  this.maximumRadius = 10.0,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.name,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.dashArray,
  super.animationDuration,
  this.borderColor = Colors.transparent,
  super.borderWidth,
  super.gradient,
  super.borderGradient,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.sortingOrder,
  super.legendItemText,
  super.opacity,
  super.animationDelay,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.initialSelectedDataIndexes,
});