SimpleRadarChart constructor
const
SimpleRadarChart({
- Key? key,
- required List<
SimpleRadarAxis> axes, - required List<
SimpleRadarSeries> series, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showLabels = true,
- bool showValues = false,
- bool showDots = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveAxis = true,
- int gridLevels = 4,
- double? strokeWidth,
- double? dotRadius,
- double fillOpacity = 0.18,
- double startAngle = -math.pi / 2,
- SimpleRadarValueFormatter? valueFormatter,
- SimpleRadarAxisTapCallback? onAxisTap,
- SimpleRadarTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 750),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleRadarChart({
super.key,
required this.axes,
required this.series,
this.style = SimpleBarChartStyle.elegant,
this.height = 260,
this.padding = _defaultPadding,
this.palette,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showLabels = true,
this.showValues = false,
this.showDots = true,
this.showLegend = true,
this.showTooltip = true,
this.showActiveAxis = true,
this.gridLevels = 4,
this.strokeWidth,
this.dotRadius,
this.fillOpacity = 0.18,
this.startAngle = -math.pi / 2,
this.valueFormatter,
this.onAxisTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 750),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLevels >= 2),
assert(strokeWidth == null || strokeWidth > 0),
assert(dotRadius == null || dotRadius >= 0),
assert(fillOpacity >= 0 && fillOpacity <= 1);