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. 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. bool isVisibleInLegend = true,
  32. LegendIconType legendIconType = LegendIconType.seriesType,
  33. double opacity = 1.0,
  34. double animationDelay = 0,
  35. Color? color,
  36. List<int>? initialSelectedDataIndexes,
  37. 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.enableTrackball = 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,
});