From 0b726b63ac851ba02b24d76b382271022d2b7e64 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Fri, 1 Apr 2022 16:29:56 +0800 Subject: [PATCH] update tooltips --- src/views/dashboard/graphs/Bar.vue | 1 + src/views/dashboard/related/topology/components/Sankey.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/views/dashboard/graphs/Bar.vue b/src/views/dashboard/graphs/Bar.vue index 8a7012a2..aed49ef3 100644 --- a/src/views/dashboard/graphs/Bar.vue +++ b/src/views/dashboard/graphs/Bar.vue @@ -140,6 +140,7 @@ function getOption() { zlevel: 1000, z: 60, backgroundColor: "rgb(50,50,50)", + confine: true, textStyle: { fontSize: 13, color: "#ccc", diff --git a/src/views/dashboard/related/topology/components/Sankey.vue b/src/views/dashboard/related/topology/components/Sankey.vue index e92257cd..afa86d1f 100644 --- a/src/views/dashboard/related/topology/components/Sankey.vue +++ b/src/views/dashboard/related/topology/components/Sankey.vue @@ -38,6 +38,7 @@ function getOption() { return { tooltip: { trigger: "item", + confine: true, }, series: { type: "sankey",