Jump to content
Software FX Community

How to get the data from the data editor.


User (Legacy)

Recommended Posts

Hi,

I use the following code to get the data into the charts. Once the data is

plotted I drag the marker and the values on the data editor change. Do you

know how can I get these changed values from the ChartFX data editor back

to an array.

chart_OpenData(m_hChartWnd, COD_VALUES, MAKELONG(m_iNumSeries,

m_iNumItems));

for(s = 0; s < m_iNumSeries; s++) { // series loop

intrailzero = 1;

for(i = m_iNumItems -1; i >= 0; i--) { // items loop

fValue = *(m_pfDataArray + ((s * m_iNumItems) + i));

if ( intrailzero && fValue != 0.0 )

intrailzero = 0;

if ( !intrailzero ) {

chart_SetValue(m_hChartWnd, s, i, (double)fValue); // set

value

}

else

chart_SetValue(m_hChartWnd, s, i, CHART_HIDDEN);

}

}

chart_CloseData(m_hChartWnd, COD_VALUES);

Thanks

Artan Dimnaku

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...