remove mutual graph edge tooltip and tweak echarts config

This commit is contained in:
pa
2025-12-14 18:27:02 +09:00
committed by Natsumi
parent 3cd68622d3
commit 4d88f1a85c

View File

@@ -218,17 +218,6 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) {
); );
return `${name}\n${mutualLabel}`; return `${name}\n${mutualLabel}`;
} }
if (params.dataType === 'edge') {
const sourceLabel =
labelMap[params.data.source] || params.data.source;
const targetLabel =
labelMap[params.data.target] || params.data.target;
return t('view.charts.mutual_friend.tooltip.edge', {
source: sourceLabel,
target: targetLabel
});
}
return '';
} }
}, },
series: [ series: [
@@ -249,14 +238,9 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) {
symbol: 'circle', symbol: 'circle',
emphasis: { emphasis: {
focus: 'adjacency', focus: 'adjacency',
scale: true,
itemStyle: { itemStyle: {
borderWidth: 3, borderWidth: 3,
opacity: 1 opacity: 1
},
lineStyle: {
width: 5,
opacity: 0.5
} }
}, },
force: resolvedForce, force: resolvedForce,
@@ -270,9 +254,6 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) {
curveness: 0.18, curveness: 0.18,
width: 0.5, width: 0.5,
opacity: 0.4 opacity: 0.4
},
labelLayout: {
hideOverlap: true
} }
} }
] ]