Page 1 of 1

Arrow Series Optimization

Posted: Fri Jun 01, 2018 1:54 pm
by 9526439
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

Re: Arrow Series Optimization

Posted: Mon Jun 04, 2018 11:54 am
by yeray
Hello Bhanu,

Are you disabling AutoRepaint before that loop and reenabling it after it?
It would avoid repainting the chart for every arrow added.