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. bool enableTrackball = true,
  25. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  26. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  27. double animationDuration = 1500,
  28. List<double>? dashArray,
  29. double borderWidth = 2.0,
  30. SelectionBehavior? selectionBehavior,
  31. List<int>? initialSelectedDataIndexes,
  32. bool isVisibleInLegend = true,
  33. LegendIconType legendIconType = LegendIconType.seriesType,
  34. double opacity = 1.0,
  35. double animationDelay = 0,
  36. 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.enableTrackball = 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,
});