-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart.html
50 lines (50 loc) · 1.26 KB
/
chart.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grafico</title>
<link href="./styles.css" rel="stylesheet">
<link rel="stylesheet" href="./node_modules//bootstrap/dist/css/bootstrap.min.css" />
<script src="./node_modules/bootstrap/dist/js/bootstrap.bundle.js"></script>
<script src="./node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
<script src="./js/index.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js/dist/chart.umd.min.js"></script>
<script src="./js/chart.js" type="module"></script>
<style>
* {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.chartCard {
background: rgba(54, 162, 235, 0.2);
display: flex;
align-items: center;
justify-content: center;
}
.chartBox {
width: 100vw;
height: 100vh;
background: white;
display:grid;
justify-content: center;
align-items:center;
}
.chart{
display:grid;
justify-self: center;
align-self:center;
}
</style>
</head>
<body>
<menu-bar></menu-bar>
<div class="chartCard">
<div class="chartBox">
<canvas id="chart"></canvas>
</div>
</div>
</body>
</html>