-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
29 lines (24 loc) · 769 Bytes
/
page.html
File metadata and controls
29 lines (24 loc) · 769 Bytes
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
<h1>
Graph!
</h1>
<!-- Preset vis display areas -->
<center>
<svg class="graph"></svg>
<!-- Load basic D3 and helper scripts -->
<script src="https://d3js.org/d3.v5.js"></script>
<!-- Load drawing JS -->
<script type="text/javascript" src="./tempgraph.js"></script>
<script>
// Global chart standards
var stdTotalWidth = 500,
stdTotalHeight = 400;
var stdMargin = { top: 40, right: 40, bottom: 40, left: 40 },
stdWidth = stdTotalWidth - stdMargin.left - stdMargin.right,
stdHeight = stdTotalHeight - stdMargin.top - stdMargin.bottom,
stdMaxBuffer = 1.07;
var stdDotRadius = 4,
stdLgndDotRadius = 5,
stdLgndSpacing = 20;
// Call draw functions
draw_line_Temperature('graph');
</script>