From 59e9b7bad7b7248cd1e18414a33e07c5cd316cb7 Mon Sep 17 00:00:00 2001 From: Xiang511 Date: Mon, 3 Jun 2024 20:20:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Update=20=E8=A8=AA=E5=AE=A2=E5=9C=96?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/dashboardC3.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/dashboardC3.js b/js/dashboardC3.js index db3c650..2da64d2 100644 --- a/js/dashboardC3.js +++ b/js/dashboardC3.js @@ -19,7 +19,7 @@ const onlineSpan_txt = onlineSpan.textContent; // const onlineSpan_result = onlineSpan_txt.substring(text.length - 4); //即時計算當月人數 -const arr = [188, 571, 213, 132,518,270,255]; +const arr = [188, 571, 213, 132,518,270,255,219]; const Arrresult = arr.reduce((a, b) => a + b); month = result - Arrresult @@ -56,9 +56,9 @@ var chart = c3.generate({ data: { x: 'x', columns: [ - ['x','2023-10-31', '2023-11-30', '2023-12-31', '2024-01-31', '2024-02-29','2024-03-31','2024-04-30','2024-05-31'], - ['每月瀏覽人數', 188, 571, 213, 132, 518, 270,255,`${result - Arrresult}`], - ['瀏覽總數', 188, 759, 912, 1104,1622,1892,2147,result], + ['x','2023-10-31', '2023-11-30', '2023-12-31', '2024-01-31', '2024-02-29','2024-03-31','2024-04-30','2024-05-31','2024-06-30'], + ['每月瀏覽人數', 188, 571, 213, 132, 518, 270,255,219,`${result - Arrresult}`], + ['瀏覽總數', 188, 759, 912, 1104,1622,1892,2147,2366,result], ], type: 'area-spline',