Radar diagrams are available in Mermaid v11.6.0+. Use the
radar-beta keyword.When to use radar charts
Radar charts are particularly useful for:- Comparing multiple entities across several dimensions
- Displaying performance metrics
- Showing skill assessments
- Visualizing survey results
- Comparing product features
- Analyzing competitive positioning
Basic radar chart
This example compares student grades across multiple subjects:Syntax overview
Basic structure
Title
Add a title using thetitle keyword:
Defining axes
Axes represent the dimensions being measured. Each axis needs an ID and optional label:Single axis per line
Multiple axes per line
Defining curves
Curves represent the data for each entity being compared:Positional values
Values correspond to axes in the order they were defined:Key-value pairs
Explicitly map values to specific axes:Multiple curves per line
Configuration options
Display options
Display options
Complete examples
Restaurant comparison
Skills assessment
Product features
Advanced configuration
Configuration parameters
Configuration parameters
| Parameter | Description | Default |
|---|---|---|
| width | Width of the radar diagram | 600 |
| height | Height of the radar diagram | 600 |
| marginTop | Top margin | 50 |
| marginBottom | Bottom margin | 50 |
| marginLeft | Left margin | 50 |
| marginRight | Right margin | 50 |
| axisScaleFactor | Scale factor for the axis | 1 |
| axisLabelFactor | Axis label position adjustment | 1.05 |
| curveTension | Tension for rounded curves | 0.17 |
Theme customization
Theme variables
Theme variables
Global variables
cScale${i} where i is 0 to max colors (usually 12).Radar-specific variables
| Property | Description | Default |
|---|---|---|
| axisColor | Color of axis lines | black |
| axisStrokeWidth | Width of axis lines | 1 |
| axisLabelFontSize | Font size of axis labels | 12px |
| curveOpacity | Opacity of curves | 0.7 |
| curveStrokeWidth | Width of curves | 2 |
| graticuleColor | Color of graticule | black |
| graticuleOpacity | Opacity of graticule | 0.5 |
| graticuleStrokeWidth | Width of graticule | 1 |
| legendBoxSize | Size of legend box | 10 |
| legendFontSize | Font size of legend | 14px |
Styled example
Best practices
Common use cases
Performance reviews
Market analysis
Radar charts are most effective when comparing entities with similar characteristics across the same set of dimensions. They work best with normalized or similarly-scaled data.