Skip to main content

Radial line chart

info

Charts are available with Avalonia Pro.

Radial line charts plot data points on a PolarChart and connect them with lines, as defined by a PolarLineSeries. They are ideal for showing how a single variable fluctuates across cyclical categories.

When to use

  • Daily activity: Mapping heart rate or energy levels across 24 hours.
  • Directional data: Visualizing readings from a 360-degree sensor.
  • Symmetry analysis: Checking for patterns and balance in multi-variate profiles.

Code example

XAML

<charts:PolarChart Title="Hourly Activity" Height="350">
<charts:PolarChart.Series>
<charts:PolarLineSeries ItemsSource="{Binding RadialPoints}"
AnglePath="Angle"
RadiusPath="Radius"
ShowMarkers="True" />
</charts:PolarChart.Series>
</charts:PolarChart>

Data model (C#)

public record ActivityPoint(double Angle, double Radius);

public ObservableCollection<ActivityPoint> RadialPoints { get; } = new()
{
new(0, 10),
new(60, 25),
new(120, 45),
new(180, 30),
new(240, 60),
new(300, 15)
};

Common properties: PolarLineSeries

PropertyDescriptionDefault
ItemsSourceThe collection of points to connect.null
AnglePathPath of the angle (X).null
RadiusPathPath of the radius (Y).null
ShowMarkersWhether to show markers at each data point.false
MarkerSizeSize of the markers.8.0
IsClosedWhether the first and last data points are connected.false