CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2001
    Location
    Rhode Island
    Posts
    56

    MSChart with an array - Very Confused!

    I am populating an array and passing the data to the .chartdata property of an MSChart control. I am having a bit of trouble plotting things from the array at this point because I am not sure how the array property populates itself when I set it to my array.

    There is a sample program from Microsoft called chrtsamp.vbp. This program creates an array from an excel spreadsheet and populates the control with the array. When I try this the .chartdata property receives the data differently. Does anyone know why this is? Here's the example:

    ChrtSamp:
    1. Populates myarray
    2. chart.chartdata = myarray
    3. at this point myarray(1,1) = chart.ChartData(1,0); myarray(2,1) = chart.Chartdata(2,0) and so on....

    MyCODE:
    1. Populates myarray
    2. chart.chartdata = myarray
    3. at this point myarray(1,1) = chart.ChartData(0,1); myarray(2,1) = chart.Chartdata(1,1) and so on....

    I know it is a confusing question, but that just about sums it up for me. I am having a very difficult time charting these data points!

    Thanks for ANY help,
    Ron


  2. #2
    Join Date
    Mar 2001
    Location
    Rhode Island
    Posts
    56

    Re: MSChart with an array - Very Confused!

    Also - when it is plotting points with this array, it just seems to be doing it randomly. I have no real idea where the data points are coming from. The data points are supposed to be all under 10, but some are plotting in the 70s and 80s... THANKS AGAIN!!!



  3. #3
    Join Date
    Mar 2001
    Location
    Rhode Island
    Posts
    56

    Re: MSChart with an array - Very Confused!

    Anyone? Please!


  4. #4
    Join Date
    Mar 2001
    Location
    Rhode Island
    Posts
    56

    Re: MSChart with an array - Very Confused!

    Does anyone at least know of any good online resources for MSChart control information?


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