张雄 3 years ago
parent c00154a959
commit 0895db6b80

@ -445,7 +445,7 @@ li.ant-calendar-time-picker-select-option-selected {
} }
.ant-modal-body { .ant-modal-body {
padding: 1.5rem 1.5rem 0rem 1.5rem !important; padding: 1.5rem 1.5rem 0.75rem 1.5rem !important;
font-size: 0.875rem !important; font-size: 0.875rem !important;
line-height: 1.5 !important; line-height: 1.5 !important;
word-wrap: break-word !important; word-wrap: break-word !important;

@ -88,7 +88,7 @@ export function createSideSingleColumn(dx=[], ds=[], color='#51bc91') {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: color+'66'
}, { }, {
offset: 1, offset: 1,
color: color color: color

@ -106,7 +106,7 @@ export function createSingleColumnar(dx=[], ds=[], color='#3373CC', n = 5) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: color ? color+'66' : '#3373CC66', // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -15,7 +15,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -24,7 +24,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -33,7 +33,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -42,7 +42,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -51,7 +51,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -60,7 +60,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]

@ -16,7 +16,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -25,7 +25,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -34,7 +34,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -43,7 +43,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -52,7 +52,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -61,7 +61,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]

@ -47,56 +47,7 @@ export default {
}, },
load: false, load: false,
showData: [], showData: [],
list: [ list: []
{
name: "奥迪",
drawOpt: createSideSingleColumn(
["全屏", "高度", "长度", "空间", "内饰"],
[400, 500, 600, 800, 1000],
"#bd9312"
),
},
{
name: "宝马",
drawOpt: createSideSingleColumn(
["异味", "舒适度", "刹车", "全景", "内容"],
[400, 500, 600, 800, 1000],
"#bd9312"
),
},
{
name: "奔驰",
drawOpt: createSideSingleColumn(
["舒适度", "高度", "宽度", "空间", "内饰"],
[400, 500, 600, 800, 1000],
"#bd9312"
),
},
{
name: "吉利",
drawOpt: createSideSingleColumn(
["底盘", "加速度", "全景", "空间", "内饰"],
[400, 500, 600, 800, 1000],
"#bd9312"
),
},
{
name: "大众",
drawOpt: createSideSingleColumn(
["刹车", "加速度", "大小", "空间", "内饰"],
[400, 500, 600, 800, 1000],
"#bd9312"
),
},
{
name: "别克",
drawOpt: createSideSingleColumn(
["空间", "长度", "高度", "舒适度", "内饰"],
[400, 500, 600, 800, 1000],
"#bd9312"
),
},
],
}; };
}, },
created() { created() {

@ -29,7 +29,7 @@ function createData(obj = {}) {
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变 //给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变 //给第一个设置0第四个设置1就是垂直渐变
offset: 0, offset: 0,
color: 'black' color: color
}, { }, {
offset: 1, offset: 1,
color: color color: color

@ -16,7 +16,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -25,7 +25,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -34,7 +34,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -43,7 +43,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -52,7 +52,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -61,7 +61,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]

@ -72,7 +72,7 @@ export default function createOptD1(dx = [],ds = []) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: '#2f68b466'
}, { }, {
offset: 1, offset: 1,
color: '#2f68b4' color: '#2f68b4'

@ -10,59 +10,59 @@
import * as echarts from "echarts"; import * as echarts from "echarts";
let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: '#3373CC' color: '#3373CC'
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: '#63AECC' color: '#63AECC'
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: '#54BF93' color: '#54BF93'
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: '#CC9D12' color: '#CC9D12'
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: '#CC7733' color: '#CC7733'
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: '#CC5B41' color: '#CC5B41'
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]
function createData(dataList = [], dx = []) { function createData(dataList = [], dx = []) {

@ -29,7 +29,7 @@ function createData(obj = {}) {
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变 //给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变 //给第一个设置0第四个设置1就是垂直渐变
offset: 0, offset: 0,
color: 'black' color: color
}, { }, {
offset: 1, offset: 1,
color: color color: color

@ -14,15 +14,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -14,15 +14,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -72,7 +72,7 @@ export default function createOpt(dy = [], ds = []) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: 'rgba(99,156,181,0.4)'
}, { }, {
offset: 1, offset: 1,
color: '#63AECC' color: '#63AECC'

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "#000", // 0% 处的颜色 color: "rgba(199,156,33,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgba(99,187,143,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -13,15 +13,16 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ // color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变 // //给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变 // //给第一个设置0第四个设置1就是垂直渐变
offset: 0, // offset: 0,
color: 'black' // color: 'black'
}, { // }, {
offset: 1, // offset: 1,
color: colors[i] // color: colors[i]
}]) // }])
color: colors[i]
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[i]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -18,15 +18,16 @@ function createData(arr = []) {
} else { } else {
color = '#b38b14' color = '#b38b14'
} }
let obj = { value: ele.value, name: ele.key, itemStyle: {color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ // let obj = { value: ele.value, name: ele.key, itemStyle: {color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变 // //给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变 // //给第一个设置0第四个设置1就是垂直渐变
offset: 0, // offset: 0,
color: 'black' // color: 'black'
}, { // }, {
offset: 1, // offset: 1,
color: color // color: color
}])} } // }])} }
let obj = { value: ele.value, name: ele.key, itemStyle: {color: color} };
a.push(obj) a.push(obj)
}) })
return a return a

@ -14,15 +14,16 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ // color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变 // //给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变 // //给第一个设置0第四个设置1就是垂直渐变
offset: 0, // offset: 0,
color: 'black' // color: 'black'
}, { // }, {
offset: 1, // offset: 1,
color: colors[index] // color: colors[index]
}]) // }])
color: colors[index]
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.name, name: ele.name,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.name, name: ele.name,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,16 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ // color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变 // //给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变 // //给第一个设置0第四个设置1就是垂直渐变
offset: 0, // offset: 0,
color: 'black' // color: 'black'
}, { // }, {
offset: 1, // offset: 1,
color: colors[index] // color: colors[index]
}]) // }])
color: colors[index]
} }
} }
arr.push(obj) arr.push(obj)

@ -15,7 +15,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -24,7 +24,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -33,7 +33,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -42,7 +42,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -51,7 +51,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -60,7 +60,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]
function createData(dataList = [], dx=[]) { function createData(dataList = [], dx=[]) {

@ -22,15 +22,7 @@ function createData(obj = []) {
let o = { let o = {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: {color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ itemStyle: {color: color}
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])}
} }
arr.push(o) arr.push(o)
}) })

@ -24,15 +24,7 @@ function createData(obj = {}) {
let o = { let o = {
value: obj[key], value: obj[key],
name: key, name: key,
itemStyle: {color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ itemStyle: {color: color}
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])}
} }
arr.push(o) arr.push(o)
} }

@ -15,7 +15,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -24,7 +24,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -33,7 +33,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -42,7 +42,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -51,7 +51,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -60,7 +60,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]
function createData(dataList = [], dx=[]) { function createData(dataList = [], dx=[]) {

@ -65,7 +65,7 @@ export default function createOptD1(dx = [], ds = []) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: '#2f68b466'
}, { }, {
offset: 1, offset: 1,
color: '#2f68b4' color: '#2f68b4'

@ -14,7 +14,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#3373CC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -23,7 +23,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#63AECC66'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -32,7 +32,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#54BF9366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -41,7 +41,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC9D1266'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -50,7 +50,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC773366'
} }
], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [ ], false), new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
@ -59,7 +59,7 @@ let colors = [new echarts.graphic.LinearGradient(0, 0, 0, 1, [
}, },
{ {
offset: 1, offset: 1,
color: '#071a32' color: '#CC5B4166'
} }
], false)] ], false)]
function createData(dataList = []) { function createData(dataList = []) {

@ -25,15 +25,7 @@ function createData(obj = {}) {
value: obj[key], value: obj[key],
name: key, name: key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: color
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])
} }
} }
arr.push(o) arr.push(o)

@ -22,15 +22,7 @@ function dataVal(ds = []) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: color
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])
} }
} }
arr.push(obj); arr.push(obj);

@ -22,15 +22,7 @@ function dataVal(ds = []) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: color
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])
} }
} }
arr.push(obj); arr.push(obj);

@ -72,7 +72,7 @@ export default function createOptD1(dx=[],ds=[]) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: 'rgba(101,190,147,0.4)'
}, { }, {
offset: 1, offset: 1,
color: '#54BF93' color: '#54BF93'

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -72,7 +72,7 @@ export default function createOptD1(dx=[],ds=[]) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: 'rgba(59,106,179,0.4)'
}, { }, {
offset: 1, offset: 1,
color: '#2f68b4' color: '#2f68b4'

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -22,15 +22,7 @@ function createData(ds = []) {
if (ele.value * 1 > 0) { if (ele.value * 1 > 0) {
let obj = { let obj = {
value: ele.value * 1, name: ele.key, itemStyle: { value: ele.value * 1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: color
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])
} }
}; };
arr.push(obj) arr.push(obj)

@ -72,7 +72,7 @@ export default function createOpt(dx = [], ds = []) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: 'rgba(110,174,202,0.4)'
}, { }, {
offset: 1, offset: 1,
color: '#63AECC' color: '#63AECC'

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.name, itemStyle: { let obj = { value: ele.value*1, name: ele.name, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[i]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[i]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -14,15 +14,7 @@ function createData(ds=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -21,15 +21,7 @@ function createData(ds=[]) {
} }
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: color
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -105,7 +105,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -102,7 +102,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "#111", // 0% 处的颜色 color: "#78D3F866", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "#111", // 0% 处的颜色 color: "#54BF9366", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "#111", // 0% 处的颜色 color: "#CC9D1266", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -94,7 +94,7 @@ export default function createOpt(dx,ds) {
[ [
{ {
offset: 0, offset: 0,
color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 color: "rgb(65,117,203,0.4)", // 0% 处的颜色
}, },
{ {
offset: 1, offset: 1,

@ -21,15 +21,7 @@ function createData(ds=[]) {
} }
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: color
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: color
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(true) { if(true) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -13,15 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[i]
}])
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -15,15 +15,7 @@ function createData(ds = [], colors) {
value: ele.value, value: ele.value,
name: ele.key, name: ele.key,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ color: colors[index]
//给颜色设置渐变色 前面4个参数给第一个设置1第四个设置0 ,就是水平渐变
//给第一个设置0第四个设置1就是垂直渐变
offset: 0,
color: 'black'
}, {
offset: 1,
color: colors[index]
}])
} }
} }
arr.push(obj) arr.push(obj)

@ -72,7 +72,7 @@ export default function createOptD1(dx=[],ds=[]) {
data: ds, data: ds,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: '#010B19' color: 'rgba(59,106,179,0.4)'
}, { }, {
offset: 1, offset: 1,
color: '#2f68b4' color: '#2f68b4'

Loading…
Cancel
Save