SimpleContinuousHeatmapChart constructor
const
SimpleContinuousHeatmapChart({
- Key? key,
- List<
SimpleContinuousHeatmapPoint> points = const [], - List<
SimpleContinuousHeatmapBin> bins = const [], - int xBins = 6,
- int yBins = 5,
- SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minX,
- double? maxX,
- double? minY,
- double? maxY,
- double? minValue,
- double? maxValue,
- double height = 260,
- 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 = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveCell = true,
- double cellGap = 3,
- double cellRadius = 5,
- SimpleContinuousHeatmapValueFormatter? valueFormatter,
- SimpleContinuousHeatmapValueFormatter? rangeFormatter,
- SimpleContinuousHeatmapTapCallback? onBinTap,
- SimpleContinuousHeatmapTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 650),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleContinuousHeatmapChart({
super.key,
this.points = const [],
this.bins = const [],
this.xBins = 6,
this.yBins = 5,
this.style = SimpleBarChartStyle.elegant,
this.minX,
this.maxX,
this.minY,
this.maxY,
this.minValue,
this.maxValue,
this.height = 260,
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 = false,
this.showLegend = true,
this.showTooltip = true,
this.showActiveCell = true,
this.cellGap = 3,
this.cellRadius = 5,
this.valueFormatter,
this.rangeFormatter,
this.onBinTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 650),
this.animationCurve = Curves.easeOutCubic,
}) : assert(xBins > 0),
assert(yBins > 0),
assert(height > 0),
assert(cellGap >= 0),
assert(cellRadius >= 0);