Greetings Guys,
How can we draw an X-Y plot of the data from the program?
For now, I am accessing a database programmatically such that the methods give me back, a column of values based on an input of 1 term or id. Currently, i am viewing the output in the comand line.
My goal is to view the data output in ASP page as a table and at the same time, plot that data along side a table output.
Any help?
Plotting graph based in C#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Jun 11, 2007, 6:14 AM EDT
http://www.codeproject.com/vcpp/gdiplus/GDI_.asp
Load the values into the coordinate paremeters and draw lines with GDI+ (Convert them to smaller values if you have to, try to use a bit of math and ratio them down so theyll fit neatly on a graph). It wouldnt be hard, just take a little while but the results would probably be what your looking for.
Good luck!
Brandon
P.S. Dont be afraid to google info on GDI+, its plentiful everywhere with lots of tutorials. The site I gave you was just a googled site with a pretty good introduction to it.
Bob Cat7 pointsPosted Jun 12, 2007, 10:43 AM EDT
Is there an easier way than GDI?
Former memberPosted Jun 12, 2007, 12:03 PM EDT
All you would be doing is drawing a line to certain coordinates that you specify in the parameters of the paint syntax. Those coordinates would come from your database. You could draw the actual graph itself on the form before runtime to maximize draw speed.
Good luck!
Brandon