-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (70 loc) · 1.78 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link type="text/css" href="style.css" />
<title>ChartJS Bar Chart</title>
<style>
.label-hover:hover {
background-color: green;
}
.tooltip {
position: absolute;
margin: 5px;
width: 200px;
height: 50px;
border: 1px solid black;
display: none;
background-color: grey;
}
.tooltip-on {
display: block;
word-wrap: break-word;
}
</style>
</head>
<body style="max-width: 100vw; max-height: 100vh">
<div style="margin-top: 20px; margin-bottom: 20px">
<input
type="number"
id="chart-width"
min="50"
max="100"
value="100"
step="1"
style="height: 40px; width 50px;"
/>
<label
for="volume"
id="width-value"
style="font: 1rem 'Fira Sans', sans-serif"
>Chart width: 50% to 100%</label
>
</div>
<!-- <div style="margin-top: 20px; margin-bottom: 20px">
<input
type="number"
id="legend-width"
min="10"
max="30"
value="10"
step="1"
style="height: 40px; width 50px;"
/> -->
<!-- <label
for="volume"
id="width-value"
style="font: 1rem 'Fira Sans', sans-serif"
>Legend width: 10% to 20%</label
> -->
</div>
<div class="main-container">
<div class="chart-container">
<canvas id="chart"></canvas>
<div class="x-axis-container"></div>
</div>
<!-- <div class="legend-container"></div> -->
</div>
</body>
</html>