HistogramSeries<T, D> constructor
const
HistogramSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - List<
T> ? dataSource, - required ChartValueMapper<
T, num> ? yValueMapper, - ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - SortingOrder sortingOrder = SortingOrder.none,
- bool isTrackVisible = false,
- String? xAxisName,
- String? yAxisName,
- String? name,
- Color? color,
- double width = 0.95,
- double spacing = 0.0,
- MarkerSettings markerSettings = const MarkerSettings(),
- List<
Trendline> ? trendlines, - EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
- DataLabelSettings dataLabelSettings = const DataLabelSettings(),
- bool initialIsVisible = true,
- LinearGradient? gradient,
- LinearGradient? borderGradient,
- BorderRadius borderRadius = BorderRadius.zero,
- bool enableTooltip = true,
- bool enableTrackball = true,
- double animationDuration = 1500,
- Color trackColor = Colors.grey,
- Color trackBorderColor = Colors.transparent,
- double trackBorderWidth = 1.0,
- double trackPadding = 0.0,
- Color borderColor = Colors.transparent,
- double borderWidth = 2.0,
- SelectionBehavior? selectionBehavior,
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.seriesType,
- String? legendItemText,
- double opacity = 1.0,
- double animationDelay = 0,
- List<
double> ? dashArray, - double? binInterval,
- bool showNormalDistributionCurve = false,
- Color curveColor = Colors.blue,
- double curveWidth = 2.0,
- List<
double> ? curveDashArray, - SeriesRendererCreatedCallback<
T, D> ? onRendererCreated, - ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- 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,
});