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

Setting MajorUnit = 0 causes an infinite loop

1 Answer 38 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Bill Wagner
Top achievements
Rank 1
Bill Wagner asked on 29 Jan 2013, 02:57 AM
I found a bug where you set the "majorUnit" in an axis to 0, which causes an endless loop in the internals of the kendoChart() which will eventually end in a memory exception while creating an infinite number of labels.
To recreate it, I've attached the object that I passed into kendoChart() to make it happen, but it is yAxis[0].majorUnit = 0 that causes the issue.
The workaround is to not use zero as a "majorUnit". Does anyone have a better solution, or is there a fix coming?
{"theme":"default","title":{"text":"","visible":true},"chartArea":{"height":150,"width":600},"legend":{"position":"bottom","visible":true},"series":[{"type":"scatterLine","stack":false,"name":"","data":[]}],"tooltip":{"visible":true,"format":"{0:N0}m: {1:N2}"},"xAxis":[{"title":{"text":"Time (minutes)","visible":true},"labels":{"format":"{0}m"},"visible":true}],"yAxis":[{"title":{"text":"Solution","visible":true},"majorUnit":0,"visible":true}]}


Bill Wagner
Bill.wagner@srtsolutions.com

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 29 Jan 2013, 08:03 AM
Hello Bill,

This is a known issue and we will definitely consider to fix it for our future releases.

I have update your points.

Kind regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Bill Wagner
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or