我正在尝试限制x轴上的标签数量。但它不起作用。 下面是我的代码。请帮助我
xAxis: { max : 5,
style: {
fontFamily : "Open Sans",
fontweight: 700 ,
},
},`
答案 0 :(得分:0)
max
属性用于设置轴的最大值。要设置有限数量的标签和刻度,请使用tickAmount
选项:
xAxis: {
tickAmount: 5,
style: {
fontFamily: "Open Sans",
fontweight: 700,
}
}
API参考: