Page 1 of 1

Performance for loading a lot of TBarSeries object on chart

Posted: Fri Jul 03, 2020 1:15 pm
by 16588932
Hi,
I am trying to add a huge amount (around 100.000) of TBarSeries plot objects to a chart, and it works too slow for my application (around 10 s for 10000 and increasing as the amount grows). That is my test result for just a chart without other plot objects and settings that I usually have. It is a requirement that each bar series has multiple colors (in other words: colored layers).

When I try to pan, zoom or rescale performance is also a problem.

I attached a simple project. If anybody have some ideas to help, tnx in advance.

Re: Performance for loading a lot of TBarSeries object on chart

Posted: Mon Jul 06, 2020 9:50 am
by yeray
Hello,

Obviously TeeChart needs some time time to draw points (rectangles in the case of TBarSeries values) and the performance of the app directly depends on factors like the number of shapes to draw, the complexity of the brushes to be used (gradients, dash lines,...) and the specifications of the target machine.

We use to recommend trying to avoid drawing more points than the actual screen/app resolution, since most of them won't be shown anyway and will be wasting cpu. In the app you attached there are 10.000 bar series created, with 25 points each, which means 250.000 rectangles being drawn in 1383px window (at least by default).