Basic Gauge
This web site builds the control from code behind but you could also grab it from the toolbox.
Code behind
using System.Windows.Forms;
using LiveChartsCore.SkiaSharpView.Extensions;
using LiveChartsCore.SkiaSharpView.WinForms;
namespace WinFormsSample.Pies.Gauge1;
public partial class View : UserControl
{
private readonly PieChart pieChart;
public View()
{
InitializeComponent();
Size = new System.Drawing.Size(50, 50);
pieChart = new PieChart
{
Series = GaugeGenerator.BuildSolidGauge(
new GaugeItem(
30, // the gauge value
series => // the series style
{
series.MaxRadialColumnWidth = 50;
series.DataLabelsSize = 50;
})),
InitialRotation = -90,
MinValue = 0,
MaxValue = 100,
Location = new System.Drawing.Point(0, 0),
Size = new System.Drawing.Size(50, 50),
Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom
};
Controls.Add(pieChart);
}
}