-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscatter2.html
38 lines (35 loc) · 1.08 KB
/
scatter2.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--This is a test pad-->
<meta charset="UTF-8">
<title>Title</title>
<!--The regression js must come b4 d3-->
<!--https://observablehq.com/@harrystevens/introducing-d3-regression#linear-->
<!--https://github.com/harrystevens/d3-regression-->
<!--https://stackoverflow.com/questions/56478304/plot-regression-line-on-a-scatter-plot-from-regression-coefficients-->
<script src="https://unpkg.com/[email protected]/dist/d3-regression.min.js"></script>
<script src="..\..\lib\d3.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="..\..\js\legend.js"></script>
<script src="..\..\js\mkPlots.js"></script>
<style>
:root {
--graphBG: #fdf6e3;
}
body {
background: #2b2b2b;
}
</style>
</head>
<body>
<div id="thing">
<script >
mkScattery("CL","#thing")
// mkLineGraph("CL","#thing")
// mkRegression("US","#thing")
// mkScatterH("US","#thing")
</script>
</div>
</body>
</html>