Chart Value Axis - Changes it's range (not sure why)

3 posts, 0 answers
  1. Mickey
    Mickey avatar
    2 posts
    Member since:
    Sep 2013

    Posted 18 Sep 2013 Link to this post

    If I have a value that is 12.5 and another at 11 the chart displays correctly (it's range is 9.50 to 13.50).  (See Screenshot attached)

    If I have a value that is 8 and another at 5.5 the chart displays incorrectly (it's range is 0 to 10). (See Screenshot attached)

    How can I get it to never show the range all the way down to 0?

    http://i.imgur.com/Arq5arE.png
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 19 Sep 2013 Link to this post

    Hi Mickey,

    Basically the valueAxis range is automatically created depending on the values. In order to force particular range you should set min / max values for the valueAxis. For example:  

    $("#chart").kendoChart({
      //....
      valueAxis: {
         min: 5,
         max: 20
      }
    })
    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Mickey
    Mickey avatar
    2 posts
    Member since:
    Sep 2013

    Posted 19 Sep 2013 Link to this post

    Turns out I didn't have the latest version of Kendo (which fixed the narrowRange bug).

    I didn't have NULL data, but upgrading my Kendo version fixed my problem.

    Thanks!
Back to Top