option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisLabel:{
interval:1 // x轴标签隔一个显示一个 0全显示 2隔两个
// 注:有时候重叠了会自动隐藏,可以设置0强制显示
}
},
yAxis: {
type: 'value',
splitLine:{
show:true,
lineStyle:{
color:['pink'],
width:3, // 粗细
type:'dashed' // solid实线 dashed虚线 dotted点状
}
}
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}
]
};

1144

被折叠的 条评论
为什么被折叠?



