ScottPlot.NET
GitHub Repo stars

Bar Plot Quickstart

Bar plots can be added from a series of values.

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

// add bars
double[] values = { 5, 10, 7, 13 };
myPlot.Add.Bars(values);

// tell the plot to autoscale with no padding beneath the bars
myPlot.Axes.Margins(bottom: 0);

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

Edit on GitHub