实现效果:
option = {
"tooltip": {
"show": true,
"trigger": "axis",
"axisPointer": {
"type": "cross",
"axis": "x"
}
},
"color": ["#ffff00", "#00ff00", "#ff0000"],
"axisPointer": {
"link": {
"xAxisIndex": "all"
},
"label": {
"backgroundColor": "#777"
}
},
legend:{
},
"grid": [{
"left": 120,
"right": 30,
"top&