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

kendoChart crashes browser

1 Answer 83 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 01 Aug 2014, 04:18 PM
Ran into a problem on our site where creating the kendoChart on the page will cause the browser window to hang and then crash.

I can reproduce it in the jsFiddle below by setting the "chartData" items "Value" property to zero (Line 11).  If it is "i" or "1" or anything other than zero, it works fine.  Zero will crash the browser.

http://jsfiddle.net/qrNGy/1/

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 04 Aug 2014, 11:13 AM
Hello,

The crash seems to be a result of setting valueAxis.majorUnit to 0.
We'll add a validation on our side to prevent such hangs, but for the moment you can fix this in the code:
      var axisSpacing = Math.ceil(distance / maxUnits);
      if (axisSpacing === 0) {
        axisSpacing = 1;
      }


-- Updated jsFiddle --

I hope this helps.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Mark
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or