CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2012
    Posts
    18

    Question 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?

  2. #2
    Join Date
    Jun 2011
    Location
    Buenos Aires, Argentina
    Posts
    130

    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.

  3. #3
    Join Date
    Jan 2012
    Posts
    18

    Re: How to Dynamically create a graph?

    I have 2 arraysne 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured