echarts让X轴或者Y轴完全显示

 1  yAxis: {
 2       type: 'category',
 3       data: days,
 4       boundaryGap: false,
 5       splitLine: {
 6         show: true,
 7         lineStyle: {
 8           color: 'rgba(204,204,204,0.30)',
 9           type: 'solid'
10         }
11       },
12       // 字体样式
13       axisLabel: {
14         show: true,
15         textStyle: {
16           color: '#333333'
17           // fontWeight: 'bold'
18         },
19         // 让字体完全显示
20         interval: 0
21       },

如下所示:使用 interval: 0

猜你喜欢

转载自www.cnblogs.com/niepan/p/9330141.html