SimpleQuadrantChart constructor
const
SimpleQuadrantChart({
- Key? key,
- required List<
SimpleQuadrantPoint> points, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minX,
- double? maxX,
- double? minY,
- double? maxY,
- double? xSplit,
- double? ySplit,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- String? xAxisLabel,
- String? yAxisLabel,
- SimpleQuadrantLabels quadrantLabels = const SimpleQuadrantLabels(),
- List<
Color> ? palette, - List<
Color> ? quadrantColors, - Color? pointColor,
- Color? gridColor,
- Color? axisColor,
- Color? splitLineColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showAxisLabels = true,
- bool showQuadrantLabels = true,
- bool showPointLabels = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActivePoint = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - int gridLineCount = 4,
- double? pointRadius,
- double? minPointRadius,
- double? maxPointRadius,
- double quadrantOpacity = 0.08,
- SimpleQuadrantValueFormatter? xValueFormatter,
- SimpleQuadrantValueFormatter? yValueFormatter,
- SimpleQuadrantValueFormatter? sizeFormatter,
- SimpleQuadrantPointTapCallback? onPointTap,
- SimpleQuadrantTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleQuadrantChart({
super.key,
required this.points,
this.style = SimpleBarChartStyle.elegant,
this.minX,
this.maxX,
this.minY,
this.maxY,
this.xSplit,
this.ySplit,
this.height = 260,
this.padding = _defaultPadding,
this.xAxisLabel,
this.yAxisLabel,
this.quadrantLabels = const SimpleQuadrantLabels(),
this.palette,
this.quadrantColors,
this.pointColor,
this.gridColor,
this.axisColor,
this.splitLineColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showAxisLabels = true,
this.showQuadrantLabels = true,
this.showPointLabels = false,
this.showLegend = true,
this.showTooltip = true,
this.showActivePoint = true,
this.referenceLines = const [],
this.gridLineCount = 4,
this.pointRadius,
this.minPointRadius,
this.maxPointRadius,
this.quadrantOpacity = 0.08,
this.xValueFormatter,
this.yValueFormatter,
this.sizeFormatter,
this.onPointTap,
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(pointRadius == null || pointRadius >= 0),
assert(minPointRadius == null || minPointRadius >= 0),
assert(maxPointRadius == null || maxPointRadius >= 0),
assert(quadrantOpacity >= 0 && quadrantOpacity <= 1);