From 4d88f1a85c5495f45638940e52c72399104fca7a Mon Sep 17 00:00:00 2001 From: pa Date: Sun, 14 Dec 2025 18:27:02 +0900 Subject: [PATCH] remove mutual graph edge tooltip and tweak echarts config --- .../Charts/composables/useMutualGraphChart.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/views/Charts/composables/useMutualGraphChart.js b/src/views/Charts/composables/useMutualGraphChart.js index ead80ddc..9c72e0c7 100644 --- a/src/views/Charts/composables/useMutualGraphChart.js +++ b/src/views/Charts/composables/useMutualGraphChart.js @@ -218,17 +218,6 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) { ); 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: [ @@ -249,14 +238,9 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) { symbol: 'circle', emphasis: { focus: 'adjacency', - scale: true, itemStyle: { borderWidth: 3, opacity: 1 - }, - lineStyle: { - width: 5, - opacity: 0.5 } }, force: resolvedForce, @@ -270,9 +254,6 @@ export function useMutualGraphChart({ cachedUsers, graphPayload }) { curveness: 0.18, width: 0.5, opacity: 0.4 - }, - labelLayout: { - hideOverlap: true } } ]