User (Legacy) Posted September 23, 2003 Report Share Posted September 23, 2003 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 More sharing options...
Software FX Posted September 25, 2003 Report Share Posted September 25, 2003 To get the values back use: chart_GetEx (hChart,nSerie,nPoint,CHART_GVALUES) -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.