option = {
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
// symbol: 'circle',
// symbolSize: 3,
showSymbol: false,
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0, 0, 0, 1,
[
{ offset: 0, color: 'rgba(104,104,230,1)' }, //区域渐变色
{ offset: 0.43, color: 'rgba(104,104,230,0.00)' },
]
) //改变区域颜色
}
}
}
]
}