This is a migrated thread and some comments may be shown as answers.

Kendo charts rendering performance

5 Answers 300 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ollie
Top achievements
Rank 1
Iron
Ollie asked on 06 Mar 2017, 10:31 PM

Hi,

I have a bar chart with 1000+ datapoints and the rendering is really slow in IE and Edge and it even make the browser to not respond, in other browsers (Chrome, FF), it is still slow but manageable. 

I searched for solutions for this and I came across this post: http://www.telerik.com/forums/chart-rendering-performance-dropped-(2015-q3-vs-2014-q3) about not including the categoryAxis labels in the rendering. I tried setting visible to 'false' and it seems to fix the slowness but I have to display the categoryAxis. The poster suggested to use 'step' but my categoryAxis are strings.

Any ideas or suggestions?

Ollie

Neovation

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Mar 2017, 01:57 PM
Hello Ollie,

Even if the categories are strings, the labels.steps property will work as expected and it will render the labels based on the step:

http://dojo.telerik.com/iQaCe

I hope this will help to improve the performance.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ollie
Top achievements
Rank 1
Iron
answered on 08 Mar 2017, 02:11 PM

Hi Stefan,

labels.step won't be feasible as a solution since I am required to display all the categoryAxis?

Any workarounds or suggestions for this? Or is there something in the pipeline that will improve the performance of chart rendering with regards to categoryAxis?

Thank you!

Ollie

Neovation

 

0
Stefan
Telerik team
answered on 10 Mar 2017, 08:36 AM
Hello Ollie,

The specific optimisations can vary depending on the scenario and the requirements. Please have in mind that most of the time the performance can also vary depending on capabilities of the machine and the used browser

If sending us a runnable example is possible, we will be able to inspect it locally and check if any modifications can be made in order to improve the performance in this scenario. 

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ollie
Top achievements
Rank 1
Iron
answered on 10 Mar 2017, 02:50 PM

Hi,

http://dojo.telerik.com/@roldeguz/uSiYOK contains an example of what we're trying to do. The example will generate 1000 data points with two fields (Name and Total). In our implementation, Name is a date that is being generated from a date range where every date can possibly have values and can have over 1000+ data points.

I also added console logs for start time and end time to see how long would it take to render the chart. If you set visible to false in the categoryAxis config, you will see a significant decrease in rendering time. And I also suggest to run the code in IE or Edge.

Thank you and hopefully we can come up with a resolution as I have to present possible solutions to my team next week.

0
Stefan
Telerik team
answered on 13 Mar 2017, 03:20 PM
Hello Ollie,

Thank you for providing a runnable example.

Indeed after testing the rendering in Internet explorer 11 takes around 30 seconds, but in Chrome it takes only 3 seconds on my end.

In general, the Internet explorer 11 is significantly slower browser when it comes to DOM manipulations, and the Kendo UI team does not have a full control over this.

In this scenario, the only other approach can be to render a smaller number of data points and then use pan and zoom to view all of the data points:

http://demos.telerik.com/kendo-ui/bar-charts/pan-and-zoom

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Ollie
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Ollie
Top achievements
Rank 1
Iron
Share this question
or