[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 461
  • Last Modified:

MSChart Control

I am trying to use the MSChart control that
Dev Studio happily supplies a wrapper for.
It will not display the data that I am
attempting to display.  I put a call in
to setdata(string) and loop through the
info I need at each column.  Any hints?? it
just doesn't display any data at all!
1 Solution
First you have to select the row and column in which you have to set the data. Here is an example:

for(short i = 1; i <= m_chart.GetRowCount(); i++)
      for(short j = 1; j <= m_chart.GetColumnCount(); j++)
            strValue.Format("%d", j * 5);

m_chart is the member variable for the chart control.
pfauxAuthor Commented:
thanks for the help.  I was doing this stuff,(kind of) your sample program shed somelight on what the problems with my code were (ie.  rows are what I think of as columns (vertical)...I think that was the kicker)  thanks again!

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now