prod
lily.zhang 3 years ago
parent 83335a836a
commit f0c0bd68b9

@ -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'

@ -2,7 +2,7 @@
/*
* @Author: your name
* @Date: 2021-10-09 11:38:06
* @LastEditTime: 2021-10-29 10:53:15
* @LastEditTime: 2021-10-29 11:56:31
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/barometer/opt.js
@ -29,13 +29,13 @@ function createData(ds = []) {
},
areaStyle: {
normal: {
opacity: 0.3,
opacity: 0.4,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0, color: colors[j] // 0% 处的颜色
}, {
offset: 1, color: '#000' // 100% 处的颜色
}]
)
),
}
},
emphasis: {

Loading…
Cancel
Save