ScottPlot.NET
GitHub Repo stars

Scatter DateTime

A scatter plot may use DateTime units but be sure to setup the respective axis to display using DateTime format.

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

DateTime[] xs = Generate.DateTime.Days(100);
double[] ys = Generate.RandomWalk(xs.Length);

myPlot.Add.Scatter(xs, ys);
myPlot.Axes.DateTimeTicksBottom();

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

Edit on GitHub