Arrow Series Optimization

TeeChart for ActiveX, COM and ASP
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Arrow Series Optimization

Post by amol » Fri Jun 01, 2018 1:54 pm

Hi,

We are currently working with Arrow Series and in our case we have around 20,000 points for which arrow needs to be displayed. We are using the following statement for adding the arrows in a loop:

for (const auto &val : SLData)
{
m_Chart.Series(SLSer).GetAsArrow().AddArrow(val[0], val[1], val[2], val[3], "", val[4]);
}

Is there an optimized way of adding the arrows as the above approach takes around 2 mins which is quite huge for our software.

Regards,
Bhanu

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Arrow Series Optimization

Post by Yeray » Mon Jun 04, 2018 11:54 am

Hello Bhanu,

Are you disabling AutoRepaint before that loop and reenabling it after it?
It would avoid repainting the chart for every arrow added.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply