Jump to content
Software FX Community

How to get the data from the data editor.


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...