How to Plot from an XML or Database

Jul 22, 2012 at 8:52 PM

Im trying to plot some data points saved in an XML file. Can someone direct me to how to do that? Is there an example in the source code that covers this?

Jul 22, 2012 at 10:45 PM

You would have to read the XML file first to get the data you are interested in. Once you have the data you can use it to plot. There is no inbuilt function that will do that for you automatically.

There is a WorldStatisticsDemo project in the DemoApplications folder, that shows you how to import csv files and plot their data, which you could inspire yourself from.

Jul 23, 2012 at 2:55 AM
Edited Jul 24, 2012 at 5:10 AM
ckoo wrote:There is a WorldStatisticsDemo project in the DemoApplications folder, that shows you how to import csv files and plot their data, which you could inspire yourself from.

Thanks a lot for that. Its helped a bit.

Coordinator
Aug 8, 2012 at 10:34 PM

oxyplot does not support XPath bindings (as wpf). But you can use binding to properties (reflection, not very fast), or create a collection of data points from the contents of the xml file.

See also http://oxyplot.codeplex.com/wikipage?title=Performance&referringTitle=Documentation

Will add more documentation later.