taskId:282,remark:'commit'
This commit is contained in:
@@ -1163,6 +1163,8 @@
|
||||
let chartInstance: echarts.ECharts | null = null;
|
||||
const drawEcharts = () => {
|
||||
chartInstance = echarts.init(tplxChart.value);
|
||||
let listData = datalist.value;
|
||||
let linkDatas = linksData.value;
|
||||
let Color = [
|
||||
'#61FEFF',
|
||||
'#937FE6',
|
||||
@@ -1180,6 +1182,8 @@
|
||||
'#bbc951',
|
||||
'#FFC14B',
|
||||
'#b785a6',
|
||||
'#c23531',
|
||||
'#2f4554',
|
||||
];
|
||||
let Color1 = [
|
||||
'#04E0F3',
|
||||
@@ -1198,6 +1202,8 @@
|
||||
'#bbc951',
|
||||
'#FFC14B',
|
||||
'#b785a6',
|
||||
'#c23531',
|
||||
'#2f4554',
|
||||
];
|
||||
let sourceLabel = [
|
||||
'right',
|
||||
@@ -1219,16 +1225,16 @@
|
||||
];
|
||||
let itemStyleColor = [];
|
||||
let labelSource = [];
|
||||
for (let i = 0; i < datalist.value.length; i++) {
|
||||
datalist.value[i].label = {
|
||||
for (let i = 0; i < listData.length; i++) {
|
||||
listData[i].label = {
|
||||
normal: {
|
||||
position: sourceLabel[i],
|
||||
},
|
||||
};
|
||||
labelSource.push(sourceLabel[i]);
|
||||
}
|
||||
for (let d = 0; d < datalist.value.length; d++) {
|
||||
datalist.value[d].itemStyle = {
|
||||
for (let d = 0; d < listData.length; d++) {
|
||||
listData[d].itemStyle = {
|
||||
normal: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
@@ -1250,7 +1256,7 @@
|
||||
},
|
||||
},
|
||||
};
|
||||
itemStyleColor.push(datalist.value[d]);
|
||||
itemStyleColor.push(listData[d]);
|
||||
}
|
||||
const option = {
|
||||
backgroundColor: 'transparent',
|
||||
@@ -1270,7 +1276,7 @@
|
||||
nodeWidth: 25,
|
||||
focusNodeAdjacency: 'allEdges',
|
||||
data: itemStyleColor,
|
||||
links: linksData.value,
|
||||
links: linkDatas,
|
||||
label: {
|
||||
normal: {
|
||||
color: '#fff',
|
||||
|
Reference in New Issue
Block a user