SimpleDotDensityChart constructor
const
SimpleDotDensityChart({
- Key? key,
- required List<
SimpleDotDensityChartData> data, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? totalValue,
- int rows = 5,
- int columns = 10,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- SimpleDotDensityFillDirection fillDirection = SimpleDotDensityFillDirection.bottomToTop,
- List<
Color> ? palette, - Color? dotColor,
- Color? emptyDotColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showLegend = true,
- bool showValues = true,
- bool showTooltip = true,
- bool showActiveDots = true,
- bool showEmptyDots = true,
- double dotGap = 5,
- double dotScale = 0.7,
- SimpleDotDensityValueFormatter? valueFormatter,
- SimpleDotDensityValueFormatter? percentFormatter,
- SimpleDotDensityTapCallback? onDotTap,
- SimpleDotDensityTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleDotDensityChart({
super.key,
required this.data,
this.style = SimpleBarChartStyle.elegant,
this.totalValue,
this.rows = 5,
this.columns = 10,
this.height = 260,
this.padding = _defaultPadding,
this.fillDirection = SimpleDotDensityFillDirection.bottomToTop,
this.palette,
this.dotColor,
this.emptyDotColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showLegend = true,
this.showValues = true,
this.showTooltip = true,
this.showActiveDots = true,
this.showEmptyDots = true,
this.dotGap = 5,
this.dotScale = 0.7,
this.valueFormatter,
this.percentFormatter,
this.onDotTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(rows > 0),
assert(columns > 0),
assert(totalValue == null || totalValue > 0),
assert(dotGap >= 0),
assert(dotScale > 0 && dotScale <= 1);