Polar Coordinates

The [ObservableObject], [ObservableProperty] and [ICommand] attributes come from the CommunityToolkit.Mvvm package, you can read more about it here.

This web site wraps every sample using a UserControl instance, but LiveCharts controls can be used inside any container.

sample image

View model

using LiveChartsCore;
using LiveChartsCore.Defaults;
using LiveChartsCore.SkiaSharpView;
using CommunityToolkit.Mvvm.ComponentModel;

namespace ViewModelsSamples.Polar.Coordinates;

[ObservableObject]
public partial class ViewModel
{
    public ISeries[] Series { get; set; } =
    {
        new PolarLineSeries<ObservablePolarPoint>
        {
            Values = new[]
            {
                new ObservablePolarPoint(0, 10),
                new ObservablePolarPoint(45, 15),
                new ObservablePolarPoint(90, 20),
                new ObservablePolarPoint(135, 25),
                new ObservablePolarPoint(180, 30),
                new ObservablePolarPoint(225, 35),
                new ObservablePolarPoint(270, 40),
                new ObservablePolarPoint(315, 45),
                new ObservablePolarPoint(360, 50),
            },
            IsClosed = false,
            Fill = null
        }
    };

    public PolarAxis[] AngleAxes { get; set; } =
    {
        new PolarAxis
        {
            // force the axis to always show 360 degrees.
            MinLimit = 0,
            MaxLimit = 360,
            Labeler = angle => $"{angle}°",
            ForceStepToMin = true,
            MinStep = 30
        }
    };
}

XAML

<UserControl x:Class="AvaloniaSample.Polar.Coordinates.View"
             xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
             xmlns:vms="using:ViewModelsSamples.Polar.Coordinates">
  <UserControl.DataContext>
    <vms:ViewModel/>
  </UserControl.DataContext>
  <lvc:PolarChart Series="{Binding Series}" AngleAxes="{Binding AngleAxes}" />
</UserControl>

Articles you might also find useful: