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

valueAxis change direction of Y axis (reverse)

1 Answer 336 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Claudia
Top achievements
Rank 1
Claudia asked on 29 Mar 2012, 04:10 AM
Hi there,

I am trying to make the direction of the values for the Y axis to go from 1 to 15, 1 at the top and 15 at the bottom.

1
2
3
4
5

instead of

5
4
3
2
1

If use

valueAxis: {
       reverse:true,
        max:15,
          min:1,
       },

both X and Y axis get reversed. How can I keep the X axis without a change and only change Y?

Thank you
Claudia

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 29 Mar 2012, 01:59 PM
Hi Claudia,

I am not sure if I understand your question correctly, but if you use reverse:true option for valueAxis this will reverse only the axis direction and will not change the point of intersection for both value and category axis. In case you would like to specify this point you need to set axisCrossingValue. For example:
valueAxis: {
   reverse: true,
   //The categoryAxis crosses valueAxis at point with value 5
   axisCrossingValue: 5  
}

In case I missed something please provide more details about your scenario and the type of Kendo UI Chart that you use.

Regards,
Iliana Nikolova
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
Claudia
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or