RadarChart constructor

const RadarChart({
  1. Key? key,
  2. required List<RadarDimension> dimensions,
  3. required List<RadarSeries> series,
  4. double radius = 72,
  5. int levels = 5,
  6. RadarGridShape gridShape = RadarGridShape.polygon,
  7. double startAngle = -90,
  8. bool clockwise = true,
  9. Paint? axisLinePaint,
  10. Paint? gridLinePaint,
  11. Paint? gridFillPaint,
  12. RadarLabelMode labelMode = RadarLabelMode.outerBadge,
  13. bool showInnerLabelBg = true,
  14. RadarOuterLabelStyle outerLabelStyle = RadarOuterLabelStyle.radial,
  15. bool showScore = true,
  16. double badgeRadius = 18,
  17. double titlePadding = 10,
  18. double titleMargin = 10,
  19. LabelPositioner? customLabelPosition,
  20. bool animate = true,
  21. Duration animationDuration = const Duration(milliseconds: 900),
  22. Curve animationCurve = Curves.easeOutCubic,
  23. TextStyle legendTextStyle = const TextStyle(fontSize: 12, color: Colors.black87),
  24. double legendSpacing = 12,
  25. double legendDotSize = 10,
  26. bool showLegend = true,
  27. 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);