如何在高位图中反转条形图? [英] How to reverse a bar chart in highcharts?

查看:74
本文介绍了如何在高位图中反转条形图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想要的是,价值6(最低分)从左边开始,右边是最高分( 1)

所以酒吧标题为1(显示的空间是标记1)



像:

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

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

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

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

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



任何帮助你可以将反转设置为<$ c $

解决方案 c> yAxis ,就像您在 xAxis 上做的一样。



赞这:


$ b $

  xAxis:{
倒转:true
},
yAxis :{
reverse:true
}

这里是 演示


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?

解决方案

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

Like this:

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

Here is a demo

这篇关于如何在高位图中反转条形图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆