我必须给两个图表赋予一些对称性。右边的图表下面有一个很大的空间,我想摆脱它。
可能是配置中yAxis的一个易于更改的参数,但我很遗憾。我在官方文档或网站上找不到任何内容。 我已经尝试过Barwidth,categorySpacing,barPercentage等
真实例子:https://jsfiddle.net/j1dffbgk/
.
答案 0 :(得分:1)
The reason why that space is appearing, is because, you have an empty label in your labels
array.
labels: [
["aaa", ' ff'],
["aa", " ddd"], "ee eeee", ""
^^
],
Remove that empty label (if not necessary) and you will be good to go.
Here is the working code on jsFiddle