Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.01 KB

README.md

File metadata and controls

27 lines (17 loc) · 1.01 KB

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.

Avalonia Quickstart

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/

ScottPlot Cookbook

The ScottPlot Cookbook demonstrates how to create line plots, bar charts, pie graphs, scatter plots, and more with just a few lines of code.