我这本设置过下面区域为渐变色后,怎么设置折线点的颜色?我看了文档,共用一个color 配置项的?
配置项如下
option = {
title: {
text: ''
},
dataZoom: [{
type: 'inside',
throttle: '40',
minValueSpan: 4,
start: 0,
end: 80
}],
tooltip: {
show: false,
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
legend: {
data: ['订单统计']
},
toolbox: {
feature: {
// saveAsImage: {}
}
},
grid: {
left: '6%',
right: '6%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
boundaryGap: false,
data: ['11-4', '11-5', '11-6', '11-7', '11-8', '11-9', '11-10'],
}],
yAxis: [{
type: 'value',
axisLabel: {
show: false
},
show: false
}],
series: [
{
symbol: "emptyCircle",
name: '订单数量',
type: 'line',
symbolSize: 8,
smooth: true,
stack: '总量',
label: {
normal: {
show: true,
position: 'top'
}
},
areaStyle: {
normal: {},
colo: {}
},
data: [2, 1, 3, 0, 7, 8, 8],
itemStyle: {
normal: {
lineStyle: {
color: '#3960FE',
},
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#F2F4FE'
}, {
offset: 0.5,
color: '#F6F8FE'
}, {
offset: 1,
color: '#FBFCFF'
}]),
}
},
}
],
};