I want to know that how to plot a graph in C#? Like i give input in form of coordinates (x,y) and get a graph plotted with these values? (I want to know that where will this graph be plotted, on windows form or any other control?)
-
Are you developing in Winforms, WPF, ASP.net or Silverlight?vc 74– vc 742010-09-20 08:05:27 +00:00Commented Sep 20, 2010 at 8:05
-
He did actually mention windows forms in the question.Ian– Ian2010-09-20 08:06:57 +00:00Commented Sep 20, 2010 at 8:06
-
True, my mistake. Then as suggested you can use the chart control provided in the .net framework with a Point seriesvc 74– vc 742010-09-20 08:13:59 +00:00Commented Sep 20, 2010 at 8:13
Add a comment
|
3 Answers
There are loads of packages for doing this sort of thing out there e.g. Dundas, Microsoft Charts or you can draw your own using GDI.
2 Comments
As lan said, there are many 3rd party controls available for drawing charts. Google for ".NET chart control" and judge for yourself what you like best.
If you're looking for an open source solution, I can recommend ZedGraph or nplot. There doesn't seem to be much recent activity on either of them, but they do support all major 2d chart types, are extensible and easy to use.
1 Comment
Learner
thanks for your answer, I want to ask that how can I use ZedGraph?
