Poor performance when there are a lot of barseries.

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Poor performance when there are a lot of barseries.

Post by vifani » Wed Jun 04, 2014 9:14 am

Hi,

my software application shows a chart that has 5 barseries each one with 150 bars.
After that when I try to zoom or pan the chart, the rendering is very slow. If I reduce
the number of the bars, for example to 20 bars, the rendering of the chart is very fast.

I also tried to modify the example provided with the libraries in order to show 300 bars
and also there I have the same problem of performance.

To Have a so high number of bars in our application is important for a critical functionality.

So my question is: is there a way to increase the performance of the barseries rendering
when there are a lot of bars?

Thanks in advance.
Kind regards.

Antonio Pinnelli

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Poor performance when there are a lot of barseries.

Post by ArctionPasi » Wed Jun 04, 2014 10:49 am

Hi Antonio,

please replace your bar series with LineCollections. One SegmentLine for each bar. They use simplified rendering and is very fast. Would it be a suitable solution?
LightningChart Support Team, PT

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: Poor performance when there are a lot of barseries.

Post by vifani » Wed Jun 04, 2014 12:35 pm

Hi,

thank you for quickly response, anyway the suggested solution is not suitable for our goals. First of all linecollection doesn't have label object that is useful to display some aggregated information, then there is not a gradient for color.

Please could you give me any other suggestion?

Kind regards

ap

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Poor performance when there are a lot of barseries.

Post by ArctionPasi » Wed Jun 04, 2014 1:03 pm

Understood. Now it gets difficult. Especially text rendering is expensive.

Could you post a screenshot of your current bars (goal), and I'll try to think ways to reduce the rendering time.
LightningChart Support Team, PT

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: Poor performance when there are a lot of barseries.

Post by vifani » Wed Jun 04, 2014 1:45 pm

Hi,

I attached a screenshot of our chart.

Kind regards

ap
Attachments
SurveyChart_ID1_Primary.png
SurveyChart_ID1_Primary.png (64.72 KiB) Viewed 13942 times

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: Poor performance when there are a lot of barseries.

Post by vifani » Fri Jun 06, 2014 12:56 pm

Hi Mr. Pasi

Do you have any news for me?

Regards

ap

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Poor performance when there are a lot of barseries.

Post by ArctionPasi » Mon Jun 09, 2014 10:12 am

We are working with the optimizations and hopefully can release a new version later today.
LightningChart Support Team, PT

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Poor performance when there are a lot of barseries.

Post by ArctionPasi » Mon Jun 09, 2014 5:03 pm

We optimized the bars rendering today in v.6.0.5, related to zoomed views of bars.

Furthermore, you can improve the rendering efficiency by setting:

barSeries.Shadow.Visible = false.
barSeries.LabelStyle.Shadow.Style = Off
LightningChart Support Team, PT

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: Poor performance when there are a lot of barseries.

Post by vifani » Thu Jun 12, 2014 1:17 pm

Hi,

Thank you very much for your quickly response.

Post Reply