Discussion in 'Questions (Windows Mobile)' started by Andrew Lindsay, Jul 5, 2007.
Is there an XY graph library or sample code available?
Please be more specific...
What do u mean with xy graph lib?
What should it do, what are u trying to acomplish?
I would like to know if there is a library or component that can be used with B4PPC to create X-Y scatter and line graphs. Ideally it would have autoscaling of the axes. If possible I would like to be able to deal with two or more sets of data with both lines and symbols for the data points.
You could create the graphs yourself, it shouldn't be too difficult.
Here is an example of a pie chart: http://www.basic4ppc.com/forum/showthread.php?t=213
And my Logistic Regression example in the "share"-section.
Here's a little graphing app that I helped one of my friends out with.
I think he'll be OK with me posting this as it's still a work in progress at this stage.
The problem originally encountered was that each point was being drawn close together to create the line, this took a significant amount of time.
I lowered the resolution and drew the points apart but then joined the new point to the previous point to create a continuous line.
Here you will see three waveforms created simultaneously.
RandomCoder, it gives an error on 7-7-7.....
Sorry, the error is related to where I am trying to place the graph labels in relation to the corresponding line.
For this example I have removed that section of code. All works correctly now in the file attached with this reply.
A separate KEY box might work better than trying to draw labels on the graph.
PS. I did say that it was a work in progress