-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreports.html
More file actions
72 lines (53 loc) · 1.82 KB
/
Copy pathreports.html
File metadata and controls
72 lines (53 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ExpenseFlow - Reports</title>
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
<link rel="stylesheet" href="style.css?v=9">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="reports.js" defer></script>
</head>
<body>
<header>
<h1>ExpenseFlow</h1>
<nav aria-label="Primary navigation">
<a href="index.html">Home</a>
<a href="filters.html">Filters</a>
<a href="reports.html" aria-current="page">Reports</a>
<a href="about.html">About</a>
</nav>
</header>
<main>
<h2>Reports</h2>
<p>
View your expenses by category and by month.
You can also export the report to PDF or CSV.
</p>
<form>
<label for="reportYear">Year</label>
<select id="reportYear" name="reportYear">
<option value="">All Years</option>
</select>
<button type="button" id="pdfBtn">Export PDF</button>
<button type="button" id="csvBtn">Export CSV</button>
</form>
<p id="reportMessage"></p>
<section>
<h3>Expenses By Category</h3>
<div>
<canvas id="pieChart"></canvas>
<div>
<p id="reportTotal"></p>
</div>
</div>
</section>
<section>
<h3>Expenses By Month</h3>
<canvas id="barChart"></canvas>
</section>
</main>
</body>
</html>