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',