SimpleHexbinChart constructor
const
SimpleHexbinChart({
- Key? key,
- required List<
SimpleHexbinPoint> points, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minX,
- double? maxX,
- double? minY,
- double? maxY,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- String? xAxisLabel,
- String? yAxisLabel,
- Color? binColor,
- Color? emptyBinColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- List<
Color> ? palette, - TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showValues = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveBin = true,
- bool showAxisLabels = true,
- bool showOutlines = true,
- bool showEmptyBins = false,
- bool useLogScale = false,
- int gridLineCount = 4,
- double? cellRadius,
- double minOpacity = 0.28,
- double maxOpacity = 0.92,
- SimpleHexbinValueFormatter? valueFormatter,
- SimpleHexbinValueFormatter? xValueFormatter,
- SimpleHexbinValueFormatter? yValueFormatter,
- SimpleHexbinBinTapCallback? onBinTap,
- SimpleHexbinTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleHexbinChart({
super.key,
required this.points,
this.style = SimpleBarChartStyle.elegant,
this.minX,
this.maxX,
this.minY,
this.maxY,
this.height = 260,
this.padding = _defaultPadding,
this.xAxisLabel,
this.yAxisLabel,
this.binColor,
this.emptyBinColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.palette,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showValues = false,
this.showLegend = true,
this.showTooltip = true,
this.showActiveBin = true,
this.showAxisLabels = true,
this.showOutlines = true,
this.showEmptyBins = false,
this.useLogScale = false,
this.gridLineCount = 4,
this.cellRadius,
this.minOpacity = 0.28,
this.maxOpacity = 0.92,
this.valueFormatter,
this.xValueFormatter,
this.yValueFormatter,
this.onBinTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(cellRadius == null || cellRadius > 0),
assert(minOpacity >= 0 && minOpacity <= 1),
assert(maxOpacity >= 0 && maxOpacity <= 1),
assert(minOpacity <= maxOpacity);