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. bool enableTrackball = true,
  31. double animationDuration = 1500,
  32. List<Trendline>? trendlines,
  33. Color borderColor = Colors.transparent,
  34. double borderWidth = 2.0,
  35. SelectionBehavior? selectionBehavior,
  36. bool isVisibleInLegend = true,
  37. LegendIconType legendIconType = LegendIconType.seriesType,
  38. String? legendItemText,
  39. List<double>? dashArray,
  40. double opacity = 1.0,
  41. double animationDelay = 0,
  42. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  43. ChartPointInteractionCallback? onPointTap,
  44. ChartPointInteractionCallback? onPointDoubleTap,
  45. ChartPointInteractionCallback? onPointLongPress,
  46. CartesianShaderCallback? onCreateShader,
  47. 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.enableTrackball = 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,
});