BoxAndWhiskerSeries<T, D> constructor

const BoxAndWhiskerSeries<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, List<num?>>? yValueMapper,
  6. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. SortingOrder sortingOrder = SortingOrder.none,
  10. String? xAxisName,
  11. String? yAxisName,
  12. String? name,
  13. Color? color,
  14. double width = 0.7,
  15. double spacing = 0.0,
  16. MarkerSettings markerSettings = const MarkerSettings(),
  17. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  18. bool initialIsVisible = true,
  19. bool enableTooltip = true,
  20. double animationDuration = 1500,
  21. Color? borderColor,
  22. double borderWidth = 1.0,
  23. LinearGradient? gradient,
  24. LinearGradient? borderGradient,
  25. SelectionBehavior? selectionBehavior,
  26. bool isVisibleInLegend = true,
  27. LegendIconType legendIconType = LegendIconType.seriesType,
  28. String? legendItemText,
  29. List<double>? dashArray,
  30. double opacity = 1.0,
  31. double animationDelay = 0,
  32. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  33. ChartPointInteractionCallback? onPointTap,
  34. ChartPointInteractionCallback? onPointDoubleTap,
  35. ChartPointInteractionCallback? onPointLongPress,
  36. CartesianShaderCallback? onCreateShader,
  37. List<Trendline>? trendlines,
  38. BoxPlotMode boxPlotMode = BoxPlotMode.normal,
  39. bool showMean = true,
})

Creating an argument constructor of BoxAndWhiskerSeries class.

Implementation

const BoxAndWhiskerSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required this.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  this.width = 0.7,
  this.spacing = 0.0,
  super.markerSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.animationDuration,
  this.borderColor,
  super.borderWidth = 1.0,
  super.gradient,
  super.borderGradient,
  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.trendlines,
  this.boxPlotMode = BoxPlotMode.normal,
  this.showMean = true,
});