如何防止酒吧在Highcharts重叠海誓山盟? [英] How to prevent bars overlapping eachother in Highcharts?

查看:165
本文介绍了如何防止酒吧在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屋!

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