option = {
backgroundColor: '#1b1b1b',
title: {
textStyle: {
fontWeight: 'bold',
color: '#319DF5'
},
x: 'center',
text: '实现坐标轴红绿灯'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
xAxis: [
{
type: 'category',
data: ['2020年7月', '2020年8月', '2020年9月', '2020年10月', '2020年11月', '2020年12月', '2021年1月', '2021年2月', '2021年3月', '2021年4月', '2021年5月', '2021年6月'],
axisLabel: {
rotate: -