This commit is contained in:
Qiuxia Fan 2022-07-14 16:18:57 +08:00
parent d240fb5b20
commit 929d0b117b

View File

@ -36,6 +36,10 @@ const option = computed(() => getOption());
function getOption() { function getOption() {
return { return {
tooltip: {
trigger: "item",
confine: true,
},
series: { series: {
type: "sankey", type: "sankey",
left: 40, left: 40,
@ -68,8 +72,6 @@ function getOption() {
opacity: 0.12, opacity: 0.12,
}, },
tooltip: { tooltip: {
trigger: "item",
confine: true,
position: "bottom", position: "bottom",
formatter: (param: { data: any; dataType: string }) => { formatter: (param: { data: any; dataType: string }) => {
if (param.dataType === "edge") { if (param.dataType === "edge") {