forked from kaifaty/Fast-Canvas-Candles-Chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (35 loc) · 780 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fast Canvas Candles Chart</title>
<script src="chart.min.js"></script>
<script src="data.js"></script>
<style>
#canvas-wrapper{
position: relative;
top: 50%;
margin-top: -225px;
width: 100%;
height: 450px;
}
section{
width: 600px;
height: 100vh;
margin: 0 auto;
}
</style>
</head>
<body>
<section>
<div id = "canvas-wrapper">
<canvas id = "canvas"></canvas>
</div>
</section>
</body>
</html>
<script>
let chart = new Chart(document.getElementById("canvas"));
chart.loading_spinner();
chart.update(data, ["ETH","STE"]);
</script>