StackedColumnSeries<T, D> constructor

const StackedColumnSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. List<T>? dataSource,
  4. required ChartValueMapper<T, D>? xValueMapper,
  5. required 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. bool isTrackVisible = false,
  11. String groupName = '',
  12. Color trackColor = Colors.grey,
  13. Color trackBorderColor = Colors.transparent,
  14. double trackBorderWidth = 1.0,
  15. double trackPadding = 0.0,
  16. BorderRadius borderRadius = BorderRadius.zero,
  17. double spacing = 0.0,
  18. String? xAxisName,
  19. String? yAxisName,
  20. List<Trendline>? trendlines,
  21. String? name,
  22. Color? color,
  23. double width = 0.7,
  24. MarkerSettings markerSettings = const MarkerSettings(),
  25. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  26. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  27. bool initialIsVisible = true,
  28. LinearGradient? gradient,
  29. LinearGradient? borderGradient,
  30. bool enableTooltip = true,
  31. double animationDuration = 1500,
  32. Color borderColor = Colors.transparent,
  33. double borderWidth = 2.0,
  34. SelectionBehavior? selectionBehavior,
  35. bool isVisibleInLegend = true,
  36. LegendIconType legendIconType = LegendIconType.seriesType,
  37. String? legendItemText,
  38. List<double>? dashArray,
  39. double opacity = 1.0,
  40. double animationDelay = 0,
  41. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  42. ChartPointInteractionCallback? onPointTap,
  43. ChartPointInteractionCallback? onPointDoubleTap,
  44. ChartPointInteractionCallback? onPointLongPress,
  45. CartesianShaderCallback? onCreateShader,
  46. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of StackedColumnSeries class.

Implementation

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