-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.html
157 lines (139 loc) · 3.92 KB
/
dashboard.html
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/dashboard.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.bundle.min.js"></script>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/application.js"></script>
<title>Dashboard</title>
</head>
<body>
<nav class="navbar">
<div class="navbar__sideMenuButton">
<i class="icon icon-ic_menu_48px" id="sideBarBtn"></i>
</div>
<div class="navbar__links">
<a href="#" class="selected">
<i class="icon icon-ic_person_48px"></i>
Mon compte
</a>
<a href="index.html">
<i class="icon icon-ic_subdirectory_arrow_left_48px"></i>
Déconnexion
</a>
</div>
</nav>
<div class="sideBar">
<a href="/dashboard.html" class="sideBar__link selected">
<i class="icon icon-ic_web_48px"></i>
Tableau de bord
</a>
<a href="/object_list.html" class="sideBar__link">
<i class="icon icon-ic_file_download_48px"></i>
Revenus
</a>
<a href="/object_list" class="sideBar__link">
<i class="icon icon-ic_file_upload_48px"></i>
Dépenses
</a>
<a href="/object_list" class="sideBar__link">
<i class="icon icon-ic_folder_open_48px"></i>
Catégories de dépenses
</a>
</div>
<nav class="breadcrumb">
<a class="breadcrumb__link">Tableau de bord</a>
</nav>
<div class="dashboardBoxWrapper">
<div class="dashboardBox">
<h1 class="dashboardBox__title">Balance</h1>
<span class="dashboardBox__value">125$</span>
</div>
<div class="dashboardBox">
<h1 class="dashboardBox__title">Dépenses</h1>
<span class="dashboardBox__value">700$</span>
</div>
<div class="dashboardBox">
<h1 class="dashboardBox__title">Revenus</h1>
<span class="dashboardBox__value">2000$</span>
</div>
<div class="dashboardBox">
<h1 class="dashboardBox__title">Catégorie de dépenses</h1>
<span class="dashboardBox__value">6</span>
</div>
</div>
<div class="graphBoxWrapper">
<div class="graphBox">
<h1 class="graphBox__title">Revenus / Dépenses</h1>
<div class="graphBox__chart">
<canvas id="myChart1"></canvas>
</div>
</div>
<div class="graphBox">
<h1 class="graphBox__title">Répartition des catégories de dépenses</h1>
<div class="graphBox__chart">
<canvas id="myChart2"></canvas>
</div>
</div>
</div>
</body>
<script>
$(document).ready(function () {
var ctx1 = document.getElementById("myChart1");
var myChart1 = new Chart(ctx1, {
type: 'pie',
data: {
labels: ["Dépenses", "Revenus"],
datasets: [{
data: [12, 19],
backgroundColor: [
'#2C3E50',
'#3498DB',
],
borderColor: [
'#2C3E50',
'#3498DB'
],
borderWidth: 1
}]
},
options: {
responsive: true
}
});
var ctx2 = document.getElementById("myChart2");
var myChart2 = new Chart(ctx2, {
type: 'pie',
data: {
labels: ["Catégorie 1", "Catégorie 2", "Catégorie 3", "Catégorie 4"],
datasets: [{
data: [12, 19, 32, 10],
backgroundColor: [
'#2C3E50',
'#3498DB',
'#B0CEFF',
'#849BBF',
],
borderColor: [
'#2C3E50',
'#3498DB',
'#B0CEFF',
'#849BBF',
],
borderWidth: 1
}]
},
options: {
responsive: true,
legend: {
}
}
});
})
</script>
</html>