如何防止酒吧在Highcharts重叠海誓山盟? [英] How to prevent bars overlapping eachother in Highcharts?
问题描述
HIGH CHARTS
请看 JSFIDDLE 。这里的酒吧互相重叠。如何通过动态调整条宽来防止这种情况发生。如果发生是因为您使用固定值设置条宽度。如果您想要酒吧将所有可用位置设为宽度,而不是使用 pointWidth
,请将 pointPadding
设置为0, groupPadding
设置为0并且 borderWidth
设置为0
API参考:
http://api.highcharts.com/highcharts/plotOptions .bar.pointPadding
http:// api .highcharts.com / highcharts / plotOptions.bar.groupPadding
http://api.highcharts.com/highcharts/plotOptions.bar.borderWidth
示例:
http://jsfiddle.net/yek6g5vy/
HIGH CHARTS
Please look at JSFIDDLE. Here the bars overlap each other. How to prevent this by resizing the bar width dynamically.
If happens because you set bar width with fixed value. If you want bars to take all available place for width, instead of using pointWidth
, set pointPadding
to 0, groupPadding
to 0 and borderWidth
to 0.
API Reference:
http://api.highcharts.com/highcharts/plotOptions.bar.pointPadding
http://api.highcharts.com/highcharts/plotOptions.bar.groupPadding
http://api.highcharts.com/highcharts/plotOptions.bar.borderWidth
Example:
http://jsfiddle.net/yek6g5vy/
这篇关于如何防止酒吧在Highcharts重叠海誓山盟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!