Surface Series AddXYZ()
Posted: Wed Jul 18, 2007 1:00 pm
I'm using TeeChart ActiveX 7.0.1.4 with VC++. I have multiple charts in a dialog with one chart using using a SurfaceSeries to display a 3D image of a set of 384 x 576 sensor grid values. That's a total of 221,184 Z-values that I am adding to the series. I'm doing that via the AddXYZ() function which takes 1.0 to 1.5 seconds to load that many points. I need to speed that up quite a bit.
I've read the article about realtime charting (VCL version) but some of those function calls aren't available for ActiveX 7.0.1.4 that I can find. Here is a code snippet where I'm loading the values:
How can I speed up the loading of this series in VC++ with the ActiveX version of TeeChart?
Thanks.
I've read the article about realtime charting (VCL version) but some of those function calls aren't available for ActiveX 7.0.1.4 that I can find. Here is a code snippet where I'm loading the values:
Code: Select all
CSurfaceSeries SurfaceSeriesHigh = m_ctrlChart3DHigh.Series(0).GetAsSurface();
SurfaceSeriesHigh.GetPen().SetVisible(FALSE);
SurfaceSeriesHigh.SetNumXValues(HIGHRESWIDTH);
SurfaceSeriesHigh.SetNumZValues(HIGHRESLENGTH);
for(nRow = 0; nRow < 576; nRow++)
{
for(nCol = 0; nCol < 384; nCol++)
{
if(m_byHighResData[nRow][nCol] != 0)
{
SurfaceSeriesHigh.AddXYZ((double)nCol, (double)m_byHighResData[nRow][nCol], (double)nRow, "", m_crefHighResPal[m_byHighResData[nRow][nCol]]);
}
}
}
Thanks.