StackedSeriesBase<T, D> constructor

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

Creates an instance of stacked series renderer.

Implementation

const StackedSeriesBase({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  super.xValueMapper,
  super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.dashArray,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.borderGradient,
  this.trackColor = Colors.grey,
  this.trackBorderColor = Colors.transparent,
  this.trackBorderWidth = 1.0,
  this.trackPadding = 0.0,
  this.isTrackVisible = false,
  super.trendlines,
  super.enableTooltip = true,
  super.animationDuration,
  super.borderWidth,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.animationDelay,
  super.opacity,
});