Rapid increase in time taken to update chart with shapes

TeeChart for ActiveX, COM and ASP
Post Reply
jacques
Newbie
Newbie
Posts: 30
Joined: Thu Nov 20, 2008 12:00 am
Location: South Africa
Contact:

Rapid increase in time taken to update chart with shapes

Post by jacques » Thu Jan 08, 2009 2:41 pm

Dear Sir/Madam

I am using Visual Studio 2008 the C++ component in developing my application. The application calls for the addition of a large amount of shapes. I have witnessed a non linear increase in the time taken to draw shapes on the chart.

For 500 shapes approx 1 second.
For 1000 shapes approx 10 seconds.

I would expect it to take 2 seconds. I imagine that I might be calling functions incorrectly.

The code I am using is as follows:

mChart.AddSeries(scShape); // Add a shape
seriesCount = m_Chart.GetSeriesCount() - 1; // Obtain the number of shape entries


// Place the shapes at specific coordinates
mChart.Series(seriesCount).GetAsShape().SetX0(symbCoords.x0 - m_scaleFreq);
mChart.Series(seriesCount).GetAsShape().SetX1(symbCoords.x1 + m_scaleFreq);
mChart.Series(seriesCount).GetAsShape().SetY0(symbCoords.y0 - m_scaleTime);
mChart.Series(seriesCount).GetAsShape().SetY1(symbCoords.y1 + m_scaleTime);

// Set shape
mChart.Series(seriesCount).GetAsShape().SetStyle(chasTriangle);

// Set color
mChart.Series(seriesCount).SetColor(m_colorAed);

I would greatly appreciate any advice in solving this problem.

Regards
Jacques

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 08, 2009 3:25 pm

Hi Jacques,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 14, 2009 11:51 am

Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply