AddRealTime vs AddXY
Posted: Wed Apr 19, 2006 2:21 am
Hi, there,
I manually set the x-axis range as
m_chart.GetAxis().GetBottom().SetAutomatic(FALSE);
m_chart.GetAxis().GetBottom().SetMaximum(100.0);
m_chart.GetAxis().GetBottom().SetMinimum(0.0);
And if I use AddRealTime to add data continuously, the display can automatically extend the maxim x value while keeping the range be 100, but AddXY can't do it. Is there any way the AddXY can do the same thing automatically?
Another question is that I want to manually set an initial x range but the range can be extended if the data number exceed the preset maxim x while keeping the display starting from the preset minimum x. As the sample code above, if the data number exceed 100, the chart can display from 0 to final data number. How can I do that?
Thank you very much!
David
I manually set the x-axis range as
m_chart.GetAxis().GetBottom().SetAutomatic(FALSE);
m_chart.GetAxis().GetBottom().SetMaximum(100.0);
m_chart.GetAxis().GetBottom().SetMinimum(0.0);
And if I use AddRealTime to add data continuously, the display can automatically extend the maxim x value while keeping the range be 100, but AddXY can't do it. Is there any way the AddXY can do the same thing automatically?
Another question is that I want to manually set an initial x range but the range can be extended if the data number exceed the preset maxim x while keeping the display starting from the preset minimum x. As the sample code above, if the data number exceed 100, the chart can display from 0 to final data number. How can I do that?
Thank you very much!
David