Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reverse a bar chart in highcharts?

Tags:

highcharts

Are there some highcharts pros out there?

What i want is, that value 6 (lowest score) starts left and on the right there is the highest score (1)

so the bars heading to 1 (showing the space to be mark 1)

like:

|------------------------(1.9)

|--------------------(2.3)

|----------------------------(1.4)

6..............3................1

http://jsfiddle.net/aCz2s/1/

Any help with that?

like image 271
Jurudocs Avatar asked Dec 08 '22 19:12

Jurudocs


1 Answers

You can set reversed to yAxis too, like you did on xAxis.

Like this:

xAxis: {
    reversed: true
},
yAxis: {
    reversed: true
}

Here is a demo

like image 192
Ricardo Alvaro Lohmann Avatar answered Dec 11 '22 12:12

Ricardo Alvaro Lohmann