ScottPlot.NET
GitHub Repo stars

Pie Chart from Values

A pie chart can be created from a few values.

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

double[] values = { 5, 2, 8, 4, 8 };
var pie = myPlot.Add.Pie(values);
pie.ExplodeFraction = .1;

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub