Jump to content
Software FX Community

Problem scrolling the legend in Realtime chart


User (Legacy)

Recommended Posts

I am having trouble get the legend to scroll properly in my realtime chart. 

Everything works great if I add one point at a time...

m_pChart->OpenDataEx( (CfxCod) (COD_VALUES | COD_ADDPOINTS), 1, 1 );

m_pChart->ValueEx[0][0] = newValue;

m_pChart->CloseData( (CfxCod) (COD_VALUES | COD_REALTIMESCROLL |

COD_SCROLLLEGEND));

but if i add multiple points like this ...

m_pChart->OpenDataEx( (CfxCod) (COD_VALUES | COD_ADDPOINTS), 1, 10 );

for( i=0; i<10; i++ ) {

m_pChart->ValueEx[0][i] = newValue;

}

m_pChart->CloseData( (CfxCod) (COD_VALUES | COD_REALTIMESCROLL |

COD_SCROLLLEGEND));

then the legends and grid seem to still scroll one point and now the data

and grid are no longer in sync. What is the trick here? Also, is there

some example code someplace that shows how to create and scroll categorical

legends. The help file was not to clear on how to do this.

Thank you,

David Cleveland

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...