[Webinar] Streamline your web hosting managementRegister Today

x
  • 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!
0
pfaux
Asked:
pfaux
1 Solution
 
V_BapatCommented:
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++)
      {
            m_chart.SetRow(i);
            m_chart.SetColumn(j);
            strValue.Format("%d", j * 5);
            m_chart.SetData(strValue);
      }
}

m_chart is the member variable for the chart control.
0
 
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!
0

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