Waterfall series data number limit
Posted: Tue Sep 16, 2008 2:18 am
Hi,
I tried to plot a waterall series and I set the number of data to be 20000, it can be plotted correctly, but when I changed the data number to be 20010, access violation occured. After some tries, I found the data limit seems to be 20001. Is there any way I can plot more than 2001 data number in a waterfall series? Here is my code where m_nPtNum is the number of data
m_chart1.AddSeries(scWaterfall);
m_chart1.Series(0).GetAsWaterfall().GetPen().SetColor(RGB(0,0,255));
m_chart1.Series(0).GetAsWaterfall().SetWireFrame(TRUE);
m_chart1.Series(0).GetAsWaterfall().GetWaterLines().SetVisible(FALSE);
m_chart1.Series(0).GetAsWaterfall().SetIrregularGrid(TRUE);
COleSafeArray saXValues;
COleSafeArray saYValues;
COleSafeArray saZValues;
saXValues.CreateOneDim(VT_R8,m_nPtNum,m_fXValues);
saYValues.CreateOneDim(VT_R8,m_nPtNum,m_fYValues);
saZValues.CreateOneDim(VT_R8,m_nPtNum,m_fZValues);
m_chart1.Series(index).GetAsWaterfall().AddArrayXYZ(saXValues,saYValues,saZValues);
David
I tried to plot a waterall series and I set the number of data to be 20000, it can be plotted correctly, but when I changed the data number to be 20010, access violation occured. After some tries, I found the data limit seems to be 20001. Is there any way I can plot more than 2001 data number in a waterfall series? Here is my code where m_nPtNum is the number of data
m_chart1.AddSeries(scWaterfall);
m_chart1.Series(0).GetAsWaterfall().GetPen().SetColor(RGB(0,0,255));
m_chart1.Series(0).GetAsWaterfall().SetWireFrame(TRUE);
m_chart1.Series(0).GetAsWaterfall().GetWaterLines().SetVisible(FALSE);
m_chart1.Series(0).GetAsWaterfall().SetIrregularGrid(TRUE);
COleSafeArray saXValues;
COleSafeArray saYValues;
COleSafeArray saZValues;
saXValues.CreateOneDim(VT_R8,m_nPtNum,m_fXValues);
saYValues.CreateOneDim(VT_R8,m_nPtNum,m_fYValues);
saZValues.CreateOneDim(VT_R8,m_nPtNum,m_fZValues);
m_chart1.Series(index).GetAsWaterfall().AddArrayXYZ(saXValues,saYValues,saZValues);
David