ScatterSeries<T, D> constructor

const ScatterSeries<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, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. String? xAxisName,
  10. String? yAxisName,
  11. String? name,
  12. Color? color,
  13. MarkerSettings markerSettings = const MarkerSettings(),
  14. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  15. bool initialIsVisible = true,
  16. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  17. bool enableTooltip = true,
  18. List<Trendline>? trendlines,
  19. double animationDuration = 1500,
  20. Color borderColor = Colors.transparent,
  21. double borderWidth = 2.0,
  22. LinearGradient? gradient,
  23. LinearGradient? borderGradient,
  24. SelectionBehavior? selectionBehavior,
  25. bool isVisibleInLegend = true,
  26. LegendIconType legendIconType = LegendIconType.seriesType,
  27. SortingOrder sortingOrder = SortingOrder.none,
  28. String? legendItemText,
  29. double opacity = 1.0,
  30. double animationDelay = 0,
  31. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  32. ChartPointInteractionCallback? onPointTap,
  33. ChartPointInteractionCallback? onPointDoubleTap,
  34. ChartPointInteractionCallback? onPointLongPress,
  35. CartesianShaderCallback? onCreateShader,
  36. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of ScatterSeries class.

Implementation

const ScatterSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  super.markerSettings,
  super.emptyPointSettings,
  super.initialIsVisible,
  super.dataLabelSettings,
  super.enableTooltip = true,
  super.trendlines,
  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,
});