CartesianSeries<T, D> constructor

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

Creating an argument constructor of CartesianSeries class.

Implementation

const CartesianSeries({
  super.key,
  super.xValueMapper,
  super.dataLabelMapper,
  super.name,
  super.dataSource,
  this.xAxisName,
  this.yAxisName,
  super.pointColorMapper,
  super.color,
  super.legendItemText,
  super.sortFieldValueMapper,
  this.gradient,
  this.borderGradient,
  this.trendlines,
  super.markerSettings,
  this.onRendererCreated,
  this.onCreateRenderer,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  this.onCreateShader,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.animationDuration,
  this.dashArray,
  super.borderWidth,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
  super.isVisibleInLegend,
  super.legendIconType,
  super.opacity,
  super.animationDelay,
  super.sortingOrder,
});