How to place x axis labels on top of horizontal bar chart

旧街凉风 提交于 2019-12-01 23:49:57

问题


Current Chart

Desired Chart

Does anyone know to accomplish this? I really don't want to go back to divs.

Thank you!


回答1:


You can set the offset for x axis label by using the following options of xAxis property.

labels: {            x : 25,            y : -25,            align: 'left'         } 

Working fiddle created here - http://jsfiddle.net/sherin81/dtcLn8sm/



来源:https://stackoverflow.com/questions/30631983/how-to-place-x-axis-labels-on-top-of-horizontal-bar-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!