Created
January 16, 2015 09:54
-
-
Save a-h/d067334b70406cda5799 to your computer and use it in GitHub Desktop.
OxyPlotExtensions Example Usag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var model = new PlotModel { Title = "Test" }; | |
var xseries = new double[] { 1, 2, 3 }; | |
var yseries1 = new double[] { 1, 2, 3 }; | |
var yseries2 = new double[] { 0.5, 1, 1.5 }; | |
model.AddScatterSeries(xseries, yseries1, OxyColors.Red); | |
model.AddHighlightedPoint(2.5, 2.5, OxyColors.Blue); | |
model.AddLineSeries(xseries, yseries2); | |
ShowChart(model); | |
} | |
public static void ShowChart(PlotModel model) | |
{ | |
var chart = new PlotView(); | |
chart.Model = model; | |
chart.Dump(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment