![在这里插入图片描述]()
option = {
xAxis: {
type: 'category',
data: [{value:'1',textStyle:{
color:'#ff0033',
}}, '2/7', '3', '4', '5', '6', '7']
},
yAxis: {
type: 'value',
name:'每日交易量',
nameLocation:'middle',
nameTextStyle:{
color:'#ff0033',
},
nameGap:50,
nameRotate:90,
axisLine:{
lineStyle:{
color:'#ff0000'
},
symbol:['none', 'arrow'],
symbolSize:[8, 12]
},
axisTick:{
inside:false,
},
axisLabel:{
show:true,
inside:false,
formatter: '{value} kg'
},
splitArea:{
show:true,
color:['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)'],
}
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'bar'
}]
};