From f19b69d050ab852163e430d6311437885115395f Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Thu, 6 Jan 2022 16:10:15 +0800 Subject: [PATCH] fix: render graphs --- src/components/Graph.vue | 1 - src/store/modules/data.ts | 2 +- .../dashboard/configuration/ConfigEdit.vue | 2 +- src/views/dashboard/graphs/Bar.vue | 6 +- src/views/dashboard/graphs/HeatMap.vue | 2 +- src/views/dashboard/graphs/Line.vue | 4 +- src/views/dashboard/graphs/Pie.vue | 2 +- src/views/dashboard/panel/Widget.vue | 86 +++++++++++-------- 8 files changed, 56 insertions(+), 49 deletions(-) diff --git a/src/components/Graph.vue b/src/components/Graph.vue index 44fcd781..8734626d 100644 --- a/src/components/Graph.vue +++ b/src/components/Graph.vue @@ -43,7 +43,6 @@ const props = defineProps({ onMounted(() => { setTimeout(() => { - console.log(chart.value); drawEcharts(); window.addEventListener("resize", state.instanceChart.resize); }, 50); diff --git a/src/store/modules/data.ts b/src/store/modules/data.ts index fe88ade2..143f5599 100644 --- a/src/store/modules/data.ts +++ b/src/store/modules/data.ts @@ -23,7 +23,7 @@ export const ConfigData: LayoutConfig = { i: "0", metrics: ["service_resp_time"], queryMetricType: "readMetricsValues", - visualization: "Line", + visualization: "Bar", widget: { title: "Title", tips: "Tooltip", diff --git a/src/views/dashboard/configuration/ConfigEdit.vue b/src/views/dashboard/configuration/ConfigEdit.vue index c367bde4..652cf5fe 100644 --- a/src/views/dashboard/configuration/ConfigEdit.vue +++ b/src/views/dashboard/configuration/ConfigEdit.vue @@ -86,7 +86,7 @@ limitations under the License. -->