SimpleRadarChart constructor

const SimpleRadarChart({
  1. Key? key,
  2. required List<SimpleRadarAxis> axes,
  3. required List<SimpleRadarSeries> series,
  4. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  5. double height = 260,
  6. EdgeInsets padding = _defaultPadding,
  7. List<Color>? palette,
  8. Color? gridColor,
  9. Color? axisColor,
  10. Color? activeColor,
  11. TextStyle? labelStyle,
  12. TextStyle? valueStyle,
  13. bool showGrid = true,
  14. bool showLabels = true,
  15. bool showValues = false,
  16. bool showDots = true,
  17. bool showLegend = true,
  18. bool showTooltip = true,
  19. bool showActiveAxis = true,
  20. int gridLevels = 4,
  21. double? strokeWidth,
  22. double? dotRadius,
  23. double fillOpacity = 0.18,
  24. double startAngle = -math.pi / 2,
  25. SimpleRadarValueFormatter? valueFormatter,
  26. SimpleRadarAxisTapCallback? onAxisTap,
  27. SimpleRadarTooltipBuilder? tooltipBuilder,
  28. WidgetBuilder? emptyBuilder,
  29. String? semanticLabel,
  30. bool excludeFromSemantics = false,
  31. Duration animationDuration = const Duration(milliseconds: 750),
  32. 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);