option = { title: {
text: '社区服务评分月趋势',
textStyle:{color:'#FEFEFF',
fontSize:'18'}
}, legend: {
data:['2019','2020'],
selected:{'2019':true,'2020':true},
textStyle:{color:'#FEFEFF',
fontSize:'18'}},
backgroundColor: '#081A40',
xAxis: {name:'月份',
type: 'category',
axisLabel:{show: true,
textStyle:{color:'#FEFEFF',
fontSize:'18'}},
data: [1,2,3,4,5,6,7,8,9,10,11,12]},
yAxis: {name:'评分',
type: 'value',
min : '4',
max : '5',
splitLine:{show:false},
axisLabel:{show: true,
textStyle:{color:'#FEFEFF',
fontSize:'18'}}
},
series: [{name:'2020',
type:'line',
data: [4.5, 4.35, 4.62, 4.45, 4.27, 4.38, 4.43],
smooth: true
},
{name:'2019',
type:'line',
data: [4.15, 4.25, 4.22, 4.25, 4.77, 4.28, 4.43, 4.88, 4.43, 4.28, 4.43, 4.28],
smooth: true}]
};
echart折线图
最新推荐文章于 2024-06-07 10:49:07 发布