Skip to content

Commit

Permalink
feat: 更新每月瀏覽人數和瀏覽總數的數據,新增2024年12月的資料
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiang511 committed Dec 11, 2024
1 parent bbbab2c commit 9951ab5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/dashboardC3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,219,193,70,170,132,84];
const arr = [188, 571, 213, 132,518,270,255,219,193,70,170,132,84,23];
const Arrresult = arr.reduce((a, b) => a + b);
month = result - Arrresult

Expand Down Expand Up @@ -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','2024-06-30','2024-07-31','2024-08-31','2024-09-30','2024-10-31','2024-11-30'],
['每月瀏覽人數', 188, 571, 213, 132, 518, 270,255,219,193,70,170,132,84,`${result - Arrresult}`],
['瀏覽總數', 188, 759, 912, 1104,1622,1892,2147,2366,2559,2629,2849 ,2981,3065,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','2024-07-31','2024-08-31','2024-09-30','2024-10-31','2024-11-30','2024-12-31'],
['每月瀏覽人數', 188, 571, 213, 132, 518, 270,255,219,193,70,170,132,84,23,`${result - Arrresult}`],
['瀏覽總數', 188, 759, 912, 1104,1622,1892,2147,2366,2559,2629,2849 ,2981,3065,3038,result],

],
type: 'area-spline',
Expand Down

0 comments on commit 9951ab5

Please sign in to comment.