|
|
|
@ -1,12 +1,13 @@
|
|
|
|
|
/*
|
|
|
|
|
* @Author: your name
|
|
|
|
|
* @Date: 2021-10-12 10:11:24
|
|
|
|
|
* @LastEditTime: 2021-10-29 11:10:30
|
|
|
|
|
* @LastEditTime: 2021-10-29 11:55:53
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
|
* @FilePath: /data-show/src/views/BrandInsight/titsopo/opt.js
|
|
|
|
|
*/
|
|
|
|
|
// import * as echarts from "echarts";
|
|
|
|
|
import * as echarts from "echarts";
|
|
|
|
|
let colors = ['#546fc5', '#91cb74', '#f9c857', '#ed6565', '#72bfde', '#3aa272', '#fb8351'];
|
|
|
|
|
function createData(ds = []) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
for (let i = 0; i < ds.length; i++) {
|
|
|
|
@ -23,9 +24,14 @@ function createData(ds = []) {
|
|
|
|
|
symbol: 'none',
|
|
|
|
|
areaStyle: {
|
|
|
|
|
normal: {
|
|
|
|
|
opacity: 0.2
|
|
|
|
|
opacity: 0.4,
|
|
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
|
|
offset: 0, color: colors[j] // 0% 处的颜色
|
|
|
|
|
}, {
|
|
|
|
|
offset: 1, color: '#000' // 100% 处的颜色
|
|
|
|
|
}]
|
|
|
|
|
),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
focus: 'series'
|
|
|
|
|