有没有办法在直线上对齐这些x轴标签?
X轴代码;
> f(mean, mean, list(x = 1:10), list(x = 2:9))
[1] TRUE
> f(mean, mean, list(x = 1:10), list(y = 2:9))
# ERROR
答案 0 :(得分:1)
检查wheather staggerLines属性是否设置为任何数字,如果是,则删除它。它将在xAxis下面如下
xAxis: {
labels: {
staggerLines: 2 //remove this
}
}