From f5b5fdf52ed94f08919de2fe04d86f0ee04b17a7 Mon Sep 17 00:00:00 2001 From: jinna Date: Tue, 31 Jan 2023 14:28:57 +0800 Subject: [PATCH] =?UTF-8?q?3d=E5=9C=B0=E5=9B=BE=E6=B7=BB=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/home.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/home.vue b/src/views/dashboard/home.vue index 9fa3c93..662e20b 100644 --- a/src/views/dashboard/home.vue +++ b/src/views/dashboard/home.vue @@ -810,7 +810,7 @@ export default { return ret; }); })(Highcharts); - Highcharts.chart("pieChart", { + var option = { chart: { type: "pie", animation: false, @@ -890,7 +890,12 @@ export default { data: data, }, ], + } + Highcharts.chart("pieChart", option); + window.addEventListener("resize", () => { + Highcharts.chart("pieChart", option).reflow() }); + }, // 按照日月更换数据 changeData(val) {