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. double animationDuration = 1500,
  26. Color trackColor = Colors.grey,
  27. Color trackBorderColor = Colors.transparent,
  28. double trackBorderWidth = 1.0,
  29. double trackPadding = 0.0,
  30. Color borderColor = Colors.transparent,
  31. double borderWidth = 2.0,
  32. SelectionBehavior? selectionBehavior,
  33. bool isVisibleInLegend = true,
  34. LegendIconType legendIconType = LegendIconType.seriesType,
  35. String? legendItemText,
  36. double opacity = 1.0,
  37. double animationDelay = 0,
  38. List<double>? dashArray,
  39. double? binInterval,
  40. bool showNormalDistributionCurve = false,
  41. Color curveColor = Colors.blue,
  42. double curveWidth = 2.0,
  43. List<double>? curveDashArray,
  44. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  45. ChartPointInteractionCallback? onPointTap,
  46. ChartPointInteractionCallback? onPointDoubleTap,
  47. ChartPointInteractionCallback? onPointLongPress,
  48. 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.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,
});