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

Y-axis max value

2 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Casper
Top achievements
Rank 1
Casper asked on 31 Oct 2013, 10:55 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 01 Nov 2013, 12:27 PM
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!
0
Casper
Top achievements
Rank 1
answered on 06 Nov 2013, 12:00 PM
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
Tags
General Discussions
Asked by
Casper
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Casper
Top achievements
Rank 1
Share this question
or