Y-axis max value

3 posts, 1 answers
  1. Casper
    Casper avatar
    5 posts
    Member since:
    Feb 2012

    Posted 31 Oct 2013 Link to this post

    Hello

    This is a very simple question. How can I get the max value from the Y-Axis on a bar chart?
    I found a solution on the forum that say I could use chart._plotArea.valueAxis.range().max, but it returns 1.2 and the max value is 14. (See the image)

    -Casper
  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 01 Nov 2013 Link to this post

    Hi Casper,

    As pointed in this forum thread there is no public API fir this scenario, however I tested the solution suggested by T.Tsonev and everything is working as expected (jsBin). Is it possible to modify the example and show me your current implementation - this way I would be able to check what exactly is going wrong and provide concrete recommendations.
     

    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. Casper
    Casper avatar
    5 posts
    Member since:
    Feb 2012

    Posted 06 Nov 2013 Link to this post

    Hi Iliana

    I created a test project and in that process i found the error. I forgot the SetTimout() from the other forum post, so I tries to get the max value of the y-axis before the chart was bound.

    Thank you.

    -Casper
Back to Top