HistogramSeries<T, D> constructor

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

Creating an argument constructor of HistogramSeries class.

Implementation

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