Radial Area

This sample uses C# 12 features, it also uses features from the CommunityToolkit.Mvvm package, you can learn 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.SkiaSharpView;
using LiveChartsCore.SkiaSharpView.Painting;
using SkiaSharp;

namespace ViewModelsSamples.Polar.RadialArea;

public class ViewModel
{
    public ISeries[] Series { get; set; } = [
        new PolarLineSeries<int>
        {
            Values = [7, 5, 7, 5, 6],
            LineSmoothness = 0,
            GeometrySize= 0,
            Fill = new SolidColorPaint(SKColors.Blue.WithAlpha(90))
        },
        new PolarLineSeries<int>
        {
            Values = [2, 7, 5, 9, 7],
            LineSmoothness = 1,
            GeometrySize = 0,
            Fill = new SolidColorPaint(SKColors.Red.WithAlpha(90))
        }
    ];

    public PolarAxis[] AngleAxes { get; set; } = [
        new PolarAxis
        {
            LabelsRotation = LiveCharts.TangentAngle,
            Labels = ["first", "second", "third", "forth", "fifth"]
        }
    ];
}

XAML

<UserControl x:Class="UnoWinUISample.Polar.RadialArea.View"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:lvc="using:LiveChartsCore.SkiaSharpView.WinUI"
        xmlns:vms="using:ViewModelsSamples.Polar.RadialArea"
        mc:Ignorable="d">
    <UserControl.DataContext>
        <vms:ViewModel/>
    </UserControl.DataContext>
    <lvc:PolarChart Series="{Binding Series}" AngleAxes="{Binding AngleAxes}" InitialRotation="-45" />
</UserControl>

Articles you might also find useful: