SimpleBinnedDotPlotChart constructor
const
SimpleBinnedDotPlotChart({
- Key? key,
- List<
double> values = const [], - List<
SimpleBinnedDotPlotBin> bins = const [], - int binCount = 8,
- SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 250,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? dotColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeDotColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showValues = true,
- bool showAxisLabels = true,
- bool showTooltip = true,
- bool showActiveBin = true,
- int gridLineCount = 4,
- double? dotRadius,
- double dotGap = 2,
- double dotOpacity = 0.84,
- double dotValue = 1,
- SimpleBinnedDotPlotValueFormatter? valueFormatter,
- SimpleBinnedDotPlotValueFormatter? countFormatter,
- SimpleBinnedDotPlotTapCallback? onBinTap,
- SimpleBinnedDotPlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 650),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleBinnedDotPlotChart({
super.key,
this.values = const [],
this.bins = const [],
this.binCount = 8,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 250,
this.padding = _defaultPadding,
this.palette,
this.dotColor,
this.gridColor,
this.axisColor,
this.activeDotColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showValues = true,
this.showAxisLabels = true,
this.showTooltip = true,
this.showActiveBin = true,
this.gridLineCount = 4,
this.dotRadius,
this.dotGap = 2,
this.dotOpacity = 0.84,
this.dotValue = 1,
this.valueFormatter,
this.countFormatter,
this.onBinTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 650),
this.animationCurve = Curves.easeOutCubic,
}) : assert(binCount > 0),
assert(height > 0),
assert(gridLineCount >= 2),
assert(dotRadius == null || dotRadius > 0),
assert(dotGap >= 0),
assert(dotOpacity >= 0 && dotOpacity <= 1),
assert(dotValue > 0);