|
@@ -138,6 +138,39 @@ var lineChartScatter = {
|
|
|
}
|
|
|
},
|
|
|
configOptions (options) {
|
|
|
+ // 面积颜色-渐变
|
|
|
+ Object.assign(options.series[0], {
|
|
|
+ areaStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgba(42, 190, 209, 0.5)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgba(42, 190, 209, 0)'
|
|
|
+ }
|
|
|
+ ], false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ Object.assign(options.series[1], {
|
|
|
+ areaStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: 'rgba(255, 159, 63, 0.5)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: 'rgba(255, 159, 63, 0)'
|
|
|
+ }
|
|
|
+ ], false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
options.tooltip.formatter = params => {
|
|
|
let tip = `<div style="padding-top:2px;color:#9B9CA3;">${params[0].name}</div>`
|
|
|
for (let i = 0; i < params.length; i++) {
|