Skip to content

Commit

Permalink
feat: Update 訪客圖表
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiang511 committed Jun 3, 2024
1 parent 1e24e35 commit 59e9b7b
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];
const arr = [188, 571, 213, 132,518,270,255,219];
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'],
['每月瀏覽人數', 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',
Expand Down

0 comments on commit 59e9b7b

Please sign in to comment.