RadarChart constructor
const
RadarChart({
- Key? key,
- required List<
RadarDimension> dimensions, - required List<
RadarSeries> series, - double radius = 72,
- int levels = 5,
- RadarGridShape gridShape = RadarGridShape.polygon,
- double startAngle = -90,
- bool clockwise = true,
- Paint? axisLinePaint,
- Paint? gridLinePaint,
- Paint? gridFillPaint,
- RadarLabelMode labelMode = RadarLabelMode.outerBadge,
- bool showInnerLabelBg = true,
- RadarOuterLabelStyle outerLabelStyle = RadarOuterLabelStyle.radial,
- bool showScore = true,
- double badgeRadius = 18,
- double titlePadding = 10,
- double titleMargin = 10,
- LabelPositioner? customLabelPosition,
- bool animate = true,
- Duration animationDuration = const Duration(milliseconds: 900),
- Curve animationCurve = Curves.easeOutCubic,
- TextStyle legendTextStyle = const TextStyle(fontSize: 12, color: Colors.black87),
- double legendSpacing = 12,
- double legendDotSize = 10,
- bool showLegend = true,
- ValueChanged<
int> ? onDimensionTapped,
Implementation
const RadarChart({
Key? key,
required this.dimensions,
required this.series,
this.radius = 72,
this.levels = 5,
this.gridShape = RadarGridShape.polygon,
this.startAngle = -90,
this.clockwise = true,
this.axisLinePaint,
this.gridLinePaint,
this.gridFillPaint,
this.labelMode = RadarLabelMode.outerBadge,
this.showInnerLabelBg = true,
this.outerLabelStyle = RadarOuterLabelStyle.radial,
this.showScore = true,
this.badgeRadius = 18,
this.titlePadding = 10,
this.titleMargin = 10,
this.customLabelPosition,
this.animate = true,
this.animationDuration = const Duration(milliseconds: 900),
this.animationCurve = Curves.easeOutCubic,
this.legendTextStyle = const TextStyle(fontSize: 12, color: Colors.black87),
this.legendSpacing = 12,
this.legendDotSize = 10,
this.showLegend = true,
this.onDimensionTapped,
}) : assert(dimensions.length >= 3, 'Radar axes must be >= 3'),
super(key: key);