option = {
title: {
text: 'Awesome Chart'
},
legend:{
data:['系列1','系列2']
},
xAxis: {
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
tooltip:{
show:true ,
trigger: 'axis'
},
yAxis: {},
series: [{
name:'系列1',
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310],
itemStyle:{
color:'#ffcc00'
}
},{
name:'系列2',
type: 'line',
data:[223, 12, 11, 24, 20, 30, 31],
symbol : 'none',
lineStyle:{
type: 'dotted',
},
itemStyle:{
color:'#ff00CC'
}
}]
};