option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value',
min: 00,
max: 1500,
splitLine: {
show: false
}
},
visualMap: {
top: 10,
right: 10,
pieces: [{
gt: 900,
lte: 1300,
color: '#0000ff'
}],
outOfRange: {
color: 'red'
}
},
series: [
{
data: [830, 732, 921, 934, 1390, 1350, 1320],
type: 'line',
itemStyle : {
normal : {
lineStyle:{
color:'#FFFFFF'
}
}
},
},
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
markLine : {
symbol:'none',
lineStyle: {
normal: {
type: 'solid'
}
},
data : [
{ yAxis: 900 ,name:'min'},
{ yAxis: 1100 ,name:'target'},
{ yAxis: 1300 ,name:'max'},
]
},
},
]
};