diff --git a/nezha-fronted/src/components/chart/chart.vue b/nezha-fronted/src/components/chart/chart.vue index b4ebaf6c7..041f3d777 100644 --- a/nezha-fronted/src/components/chart/chart.vue +++ b/nezha-fronted/src/components/chart/chart.vue @@ -17,7 +17,7 @@ :showAllData="showAllData" @chartIsNoData="chartIsNoData" > - + > --> + +
+
+
+
+ {{ tooltip.title }} +
+
+
value
+
+
+ +
+
{{ tooltip.value }}
+
+
+
+
+ + + + + diff --git a/nezha-fronted/src/components/chart/chart/tools.js b/nezha-fronted/src/components/chart/chart/tools.js index cd425d4a1..8151966d1 100644 --- a/nezha-fronted/src/components/chart/chart/tools.js +++ b/nezha-fronted/src/components/chart/chart/tools.js @@ -65,6 +65,9 @@ export function isTimeSeries (type) { export function isHexagon (type) { return type === chartType.hexagon } +export function isPieD3 (type) { + return type === chartType.PieD3 +} export function isChartPie (type) { return type === chartType.pie } diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index 8b863410f..e16a52a04 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -420,6 +420,7 @@ export const chartType = { topology: 'topology', map: 'map', hexagon: 'hexagon', + PieD3: 'pie', topologyLink: 'topologyLink' }