SimpleMosaicPlotChart constructor
const
SimpleMosaicPlotChart({
- Key? key,
- List<
String> xLabels = const [], - List<
String> yLabels = const [], - required List<
SimpleMosaicPlotCell> cells, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? cellColor,
- Color? borderColor,
- Color? gridColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showValues = true,
- bool showPercentages = true,
- bool showCellLabels = true,
- bool showXLabels = true,
- bool showColumnTotals = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveCell = true,
- double columnGap = 5,
- double cellGap = 2,
- double cellRadius = 4,
- SimpleMosaicPlotValueFormatter? valueFormatter,
- SimpleMosaicPlotTapCallback? onCellTap,
- SimpleMosaicPlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 750),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleMosaicPlotChart({
super.key,
this.xLabels = const [],
this.yLabels = const [],
required this.cells,
this.style = SimpleBarChartStyle.elegant,
this.height = 260,
this.padding = _defaultPadding,
this.palette,
this.cellColor,
this.borderColor,
this.gridColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showValues = true,
this.showPercentages = true,
this.showCellLabels = true,
this.showXLabels = true,
this.showColumnTotals = true,
this.showLegend = true,
this.showTooltip = true,
this.showActiveCell = true,
this.columnGap = 5,
this.cellGap = 2,
this.cellRadius = 4,
this.valueFormatter,
this.shareFormatter,
this.onCellTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 750),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(columnGap >= 0),
assert(cellGap >= 0),
assert(cellRadius >= 0);