XyDataSeries<T, D> constructor

const XyDataSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartValueMapper<T, num>? yValueMapper,
  3. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  4. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  5. ChartPointInteractionCallback? onPointTap,
  6. ChartPointInteractionCallback? onPointDoubleTap,
  7. ChartPointInteractionCallback? onPointLongPress,
  8. CartesianShaderCallback? onCreateShader,
  9. ChartValueMapper<T, D>? xValueMapper,
  10. ChartValueMapper<T, String>? dataLabelMapper,
  11. String? name,
  12. List<T>? dataSource,
  13. String? xAxisName,
  14. String? yAxisName,
  15. ChartValueMapper<T, Color>? pointColorMapper,
  16. String? legendItemText,
  17. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  18. LinearGradient? gradient,
  19. LinearGradient? borderGradient,
  20. List<Trendline>? trendlines,
  21. MarkerSettings markerSettings = const MarkerSettings(),
  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. bool isVisibleInLegend = true,
  31. LegendIconType legendIconType = LegendIconType.seriesType,
  32. double opacity = 1.0,
  33. double animationDelay = 0,
  34. Color? color,
  35. List<int>? initialSelectedDataIndexes,
  36. SortingOrder sortingOrder = SortingOrder.none,
})

Creating an argument constructor of XyDataSeries class.

Implementation

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