Skip to content
On this page

RadarChart

A radial chart for comparing values across several axes.

RadarChart in FluttyUIRadarChart in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

RadarChart

const RadarChart({
  super.key,
  required this.data,
  required this.labelKey,
  required this.dataKey,
  this.series,
  this.maxValue,
  this.grid = const RadarGrid(),
  this.angleAxis = const RadarAngleAxis(),
  this.radiusAxis,
  this.width,
  this.height,
  this.aspectRatio = 1,
  this.padding = const EdgeInsets.all(16),
  this.animation = const ChartAnimation(),
  this.resetKey,
  this.interaction = const ChartInteraction(),
  this.controller,
  this.onSelectionChanged,
  this.onChartBoundsChange,
  this.emptyBuilder,
  this.semanticsLabel = 'Radar chart',
});
ParameterTypeRequiredDefault
keyKey?Nonull
dataList<ChartDatum>Yes—
labelKeyStringYes—
dataKeyStringYes—
seriesList<RadarSeries>?Nonull
maxValuedouble?Nonull
gridRadarGridNoconst RadarGrid()
angleAxisRadarAngleAxisNoconst RadarAngleAxis()
radiusAxisRadarRadiusAxis?Nonull
widthdouble?Nonull
heightdouble?Nonull
aspectRatiodoubleNo1
paddingEdgeInsetsNoconst EdgeInsets.all(16)
animationChartAnimationNoconst ChartAnimation()
resetKeyObject?Nonull
interactionChartInteractionNoconst ChartInteraction()
controllerChartController?Nonull
onSelectionChangedValueChanged<ChartSelection?>?Nonull
onChartBoundsChangeValueChanged<Rect>?Nonull
emptyBuilderWidgetBuilder?Nonull
semanticsLabelStringNo'Radar chart'

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/charts/radar_chart/radar_chart.dart

This reference is generated from the RadarChart declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI