SimpleHeatmapChart constructor
const
SimpleHeatmapChart({
- Key? key,
- List<
String> xLabels = const [], - List<
String> yLabels = const [], - required List<
SimpleHeatmapCell> cells, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 250,
- EdgeInsets padding = _defaultPadding,
- Color? lowColor,
- Color? highColor,
- Color? emptyColor,
- Color? gridColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showXLabels = true,
- bool showYLabels = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveCell = true,
- double cellGap = 3,
- double cellRadius = 5,
- SimpleHeatmapValueFormatter? valueFormatter,
- SimpleHeatmapCellTapCallback? onCellTap,
- SimpleHeatmapTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 650),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleHeatmapChart({
super.key,
this.xLabels = const [],
this.yLabels = const [],
required this.cells,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 250,
this.padding = _defaultPadding,
this.lowColor,
this.highColor,
this.emptyColor,
this.gridColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showXLabels = true,
this.showYLabels = true,
this.showValues = true,
this.showLegend = true,
this.showTooltip = true,
this.showActiveCell = true,
this.cellGap = 3,
this.cellRadius = 5,
this.valueFormatter,
this.onCellTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 650),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(cellGap >= 0),
assert(cellRadius >= 0);