Setting MajorUnit = 0 causes an infinite loop

2 posts, 0 answers
  1. Bill Wagner
    Bill Wagner avatar
    1 posts
    Member since:
    Apr 2010

    Posted 28 Jan 2013 Link to this post

    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

  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 29 Jan 2013 Link to this post

    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!
Back to Top