How to Plot from an XML or Database

Oystein Bjorke 10 років тому 0
This discussion was imported from CodePlex

UNTEngineer wrote at 2012-07-22 22:52:

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?


ckoo wrote at 2012-07-23 00:45:

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.


UNTEngineer wrote at 2012-07-23 04:55:

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.


objo wrote at 2012-08-09 00:34:

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.