StackedBarSeries<T, D> constructor

const StackedBarSeries<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. String? name,
  21. Color? color,
  22. double width = 0.7,
  23. MarkerSettings markerSettings = const MarkerSettings(),
  24. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  25. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  26. bool initialIsVisible = true,
  27. LinearGradient? gradient,
  28. LinearGradient? borderGradient,
  29. bool enableTooltip = true,
  30. double animationDuration = 1500,
  31. List<Trendline>? trendlines,
  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 StackedBarSeries class.

Implementation

const StackedBarSeries({
  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.name,
  super.color,
  this.width = 0.7,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.borderGradient,
  super.enableTooltip = true,
  super.animationDuration,
  super.trendlines,
  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,
});