ScottPlot is a free and open-source plotting library for .NET that makes it easy to interactively display large datasets. This package provides an Avalonia control for interactive manipulation of ScottPlot plots.
Add an AvaPlot
to your window and give it a unique name:
<ScottPlot:AvaPlot Name="AvaPlot1"/>
Add the following to your start-up sequence:
double[] dataX = new double[] { 1, 2, 3, 4, 5 };
double[] dataY = new double[] { 1, 4, 9, 16, 25 };
AvaPlot avaPlot1 = this.Find<AvaPlot>("AvaPlot1");
avaPlot1.Plot.AddScatter(dataX, dataY);
Additional quickstart information can be found at https://scottplot.net/quickstart/avalonia/
The ScottPlot Cookbook demonstrates how to create line plots, bar charts, pie graphs, scatter plots, and more with just a few lines of code.