|
@@ -93,9 +93,6 @@
|
|
]
|
|
]
|
|
|
|
|
|
for (const iterator of rawInfo) {
|
|
for (const iterator of rawInfo) {
|
|
- const [color1, color2] = getRandomColorPair()
|
|
|
|
- console.log(color1);
|
|
|
|
- console.log(color2);
|
|
|
|
iterator.color = {
|
|
iterator.color = {
|
|
type: "radial",
|
|
type: "radial",
|
|
x: 0.5,
|
|
x: 0.5,
|
|
@@ -104,15 +101,11 @@
|
|
colorStops: [
|
|
colorStops: [
|
|
{
|
|
{
|
|
offset: 0,
|
|
offset: 0,
|
|
- color: color1
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- offset: 0.4,
|
|
|
|
- color: color1
|
|
|
|
|
|
+ color: 'rgba(51, 175, 202, 0.20)'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
offset: 1,
|
|
offset: 1,
|
|
- color: color2
|
|
|
|
|
|
+ color: 'rgba(0, 157, 191, 0.7)'
|
|
},
|
|
},
|
|
],
|
|
],
|
|
global: false
|
|
global: false
|
|
@@ -124,7 +117,7 @@
|
|
name: "历史回顾",
|
|
name: "历史回顾",
|
|
level: 0,
|
|
level: 0,
|
|
category: null,
|
|
category: null,
|
|
- symbolSize: 100,
|
|
|
|
|
|
+ symbolSize: 76,
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: {
|
|
color: {
|
|
type: "radial",
|
|
type: "radial",
|
|
@@ -134,27 +127,30 @@
|
|
colorStops: [
|
|
colorStops: [
|
|
{
|
|
{
|
|
offset: 0,
|
|
offset: 0,
|
|
- color: "#00c7ef"
|
|
|
|
|
|
+ color: "rgba(223, 201, 145, 0.2)"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- offset: 0.8,
|
|
|
|
- color: "#00c7ef"
|
|
|
|
|
|
+ offset: 0.5,
|
|
|
|
+ color: "rgba(223, 201, 145, 0.5)"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
offset: 1,
|
|
offset: 1,
|
|
- color: "rgba(0, 0, 0, 0.3)"
|
|
|
|
- }
|
|
|
|
|
|
+ color: "rgba(223, 201, 145, 1)"
|
|
|
|
+ },
|
|
],
|
|
],
|
|
global: false
|
|
global: false
|
|
},
|
|
},
|
|
- shadowColor: "rgba(255, 255, 255, 0.5)",
|
|
|
|
|
|
+ borderColor: "rgba(255,236,186,1)",
|
|
|
|
+ borderWidth: 2,
|
|
|
|
+ shadowColor: "rgba(223, 201, 145, 1)",
|
|
shadowBlur: 10
|
|
shadowBlur: 10
|
|
},
|
|
},
|
|
label: {
|
|
label: {
|
|
position: 'inside',
|
|
position: 'inside',
|
|
show: true,
|
|
show: true,
|
|
color: '#fff',
|
|
color: '#fff',
|
|
- fontSize: '18px',
|
|
|
|
|
|
+ fontSize: '16px',
|
|
|
|
+ fontWeight: 'bold',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
]
|
|
]
|
|
@@ -181,24 +177,27 @@
|
|
name: timeInfoItem.name,
|
|
name: timeInfoItem.name,
|
|
level: 1,
|
|
level: 1,
|
|
category: timeInfoItem.name,
|
|
category: timeInfoItem.name,
|
|
- symbolSize: 50,
|
|
|
|
|
|
+ symbolSize: 57,
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: timeInfoItem.color,
|
|
color: timeInfoItem.color,
|
|
- shadowColor: "rgba(255, 255, 255, 0.5)",
|
|
|
|
- shadowBlur: 10
|
|
|
|
|
|
+ borderColor: "rgba(0, 157, 191, 0.6)",
|
|
|
|
+ shadowColor: "rgba(97,170,238,0.5)",
|
|
|
|
+ shadowBlur: 15,
|
|
|
|
+ borderColor: 'rgba(42,174,203,1)',
|
|
|
|
+ borderWidth: 1,
|
|
},
|
|
},
|
|
label: {
|
|
label: {
|
|
- position: 'right',
|
|
|
|
|
|
+ position: 'inside',
|
|
show: true,
|
|
show: true,
|
|
color: '#fff',
|
|
color: '#fff',
|
|
- fontSize: '16px',
|
|
|
|
|
|
+ fontSize: '13px',
|
|
}
|
|
}
|
|
})
|
|
})
|
|
edgesForRender.push({
|
|
edgesForRender.push({
|
|
category: null,
|
|
category: null,
|
|
lineStyle: {
|
|
lineStyle: {
|
|
normal: {
|
|
normal: {
|
|
- color: timeInfoItem.color.colorStops[2].color,
|
|
|
|
|
|
+ color: 'rgba(42, 174, 203, 1)',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
source: '历史回顾',
|
|
source: '历史回顾',
|
|
@@ -210,31 +209,29 @@
|
|
level: 2,
|
|
level: 2,
|
|
idForSend: corpItem.id,
|
|
idForSend: corpItem.id,
|
|
category: timeInfoItem.name,
|
|
category: timeInfoItem.name,
|
|
- symbolSize: 10,
|
|
|
|
|
|
+ symbolSize: 12,
|
|
itemStyle: {
|
|
itemStyle: {
|
|
- borderColor: timeInfoItem.color.colorStops[2].color,
|
|
|
|
|
|
+ borderColor: 'rgba(42, 174, 203, 1)',
|
|
color: 'transparent',
|
|
color: 'transparent',
|
|
- shadowColor: "rgba(255, 255, 255, 0.5)",
|
|
|
|
- shadowBlur: 10
|
|
|
|
},
|
|
},
|
|
select: {
|
|
select: {
|
|
itemStyle: {
|
|
itemStyle: {
|
|
- borderColor: timeInfoItem.color.colorStops[2].color,
|
|
|
|
- color: timeInfoItem.color.colorStops[2].color,
|
|
|
|
|
|
+ borderColor: timeInfoItem.color.colorStops[1].color,
|
|
|
|
+ color: timeInfoItem.color.colorStops[1].color,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
label: {
|
|
label: {
|
|
position: 'right',
|
|
position: 'right',
|
|
show: true,
|
|
show: true,
|
|
color: '#fff',
|
|
color: '#fff',
|
|
- fontSize: '14px',
|
|
|
|
|
|
+ fontSize: '13px',
|
|
}
|
|
}
|
|
})
|
|
})
|
|
edgesForRender.push({
|
|
edgesForRender.push({
|
|
category: timeInfoItem.name,
|
|
category: timeInfoItem.name,
|
|
lineStyle: {
|
|
lineStyle: {
|
|
normal: {
|
|
normal: {
|
|
- color: timeInfoItem.color.colorStops[2].color,
|
|
|
|
|
|
+ color: 'rgba(42, 174, 203, 1)',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
source: timeInfoItem.name,
|
|
source: timeInfoItem.name,
|
|
@@ -335,7 +332,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
edgeSymbol: ["circle", "arrow"],
|
|
edgeSymbol: ["circle", "arrow"],
|
|
- edgeSymbolSize: [4, 8],
|
|
|
|
|
|
+ edgeSymbolSize: [1, 8],
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}, true)
|
|
}, true)
|