echarts中,横轴数据如果非常多,会自动隐藏一部分数据,我们可以通过属性interval来进行调整。
如下图,当横轴时间为13天时,echarts会自动隔天显示
如果我们想显示全,则需要在xAxis 属性加上axisLabel:{interval: 0}
1 "xAxis":[{"data":["2015-5-13","2015-5-14","2015-5-15","2015-5-16","2015-5-17","2015-5-18","2015-5-19","2015-5-20","2015-5-21","2015-5-22","2015-5-23","2015-5-24","2015-5-25"], 2 "type":"category", 3 "axisLabel":{ 4 interval: 0 5 } 6 }],
参考:https://www.jb51.net/article/191217.htm
标签:axisLabel,interval,横坐标,自动隐藏,xAxis,2015,echarts From: https://www.cnblogs.com/zqlym/p/16591978.html