How to Dynamically create a graph?
I am using Microsoft Visual Studio 2010.
my program dynamically finds names and their total in an entire list by satisfying some conditions.
Now, I want to display a graph of names v/s total(names).
The graph should change dynamically..
How do I create and display such a graph?
Re: How to Dynamically create a graph?
Check this site from MSDN for a very complete set of examples on how to use msChart.
What I would do is to have one msChart and add ChartAreas to it as you add new items. Or you could reuse them if you are going to have a large amount of items. You could then set the chartareas visibility to select the ones you want visible. Check the examples, there's a lot in there.
Re: How to Dynamically create a graph?
I have 2 arrays:one having data for x-axis and the other for y-axis.
I did go through that msdn site but I do not understand as to how to take the input from the arrays and plot the graph.