Skip to main content

Polar area chart

info

Charts are available with Avalonia Pro.

Polar area charts (or coxcomb charts) are similar to pie charts but represent values using the radius of segments instead of the angle. Each segment has an equal angle.

Polar area chart with equal-angle segments of varying radius representing seasonal magnitude values in a circular layout.

When to use

  • Cyclical trends: Visualizing seasonal data or wind patterns.
  • Ranking categories: Comparing the magnitude of many categories in a circular layout.
  • Historical analysis: The classic chart type for visualizing causes of mortality over time.

Code example

XAML

<charts:PolarAreaChart Name="PolarAreaChartSample" Title="Skill Levels" Height="300"
ItemsSource="{Binding PolarChartData}"
LabelPath="Label" ValuePath="Value" />

Data model (C#)

public record RadialPoint(string Label, double Value);

public ObservableCollection<RadialPoint> PolarChartData { get; } = new()
{
new("Speed", 85),
new("Strength", 70),
new("Agility", 60),
new("Intellect", 75),
new("Stamina", 90),
new("Spirit", 65)
};

Common properties

PropertyDescriptionDefault
ItemsSourceThe collection of segments.null
ValuePathProperty determining the radius of the slice.null
LabelPathProperty for the slice name.null
ShowLabelsWhether to display labels for segments.true
LabelFontSizeFont size used for segment labels.11.0
LabelForegroundBrush used for segment labels. When null, the chart uses the effective label foreground.null
StartAngleStart angle in degrees for the first segment.-90.0
StrokeOutline brush for the segments. When null, the chart uses a white outline.null (white)
StrokeThicknessThickness of the segment outlines.1.0
IsHighlightEnabledEnables hover highlighting for polar area segments.false