User (Legacy) Posted April 9, 2003 Report Share Posted April 9, 2003 I'm using ChartFX Client Server with all the latest service packs and programing in Visual C++. I have come across a problem when I add points to different series in an XY plot chart. I have two series with an unknown number of points. So I open the data with the following line of code.~ m_pGraphDlg->m_ctrlCFX.OpenDataEx(COD_VALUES|COD_ALLOCHIDDEN, COD_UNCHANGE,COD_UNKNOWN); m_pGraphDlg->m_ctrlCFX.OpenDataEx(COD_XVALUES|COD_ALLOCHIDDEN, COD_UNCHANGE,COD_UNKNOWN); And then I start adding my points. Closing the graph with the respective CloseDatas. The problem is when I add another series that has less points than the previous one. After adding the points, the graph simply CHOPS of any points I had MORE than the series I just had. The same thing happens when I add a series that has MORE points than the previous, but in that case, it ADDS points to the other series and sets them to 0. The workaround I found for this is supplying a number of points instead of COD_UNKNOWN, but this is not what I want because I am never sure about the points I am going to have in my graph. Can someone please tell me if I'm doing anything wrong. Thanks Paulo Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.