-
Notifications
You must be signed in to change notification settings - Fork 0
/
vector.html
57 lines (42 loc) · 1.33 KB
/
vector.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@5"></script>
<title>A Vega example using vectors</title>
</head>
<body>
<center>
<h4>Hypothesis: Staseis, whether to a greater or lower degree, are related to regions.</h4>
</center>
<center>
<div id="polis_vector" style="padding-bottom: 60px"></div>
</center>
<center>
<div id="polis_histogram"></div>
</center>
<center>
<p style="font-size: 8px"></p>
</center>
<center>
<p style="font-size: 8px"></p>
</center>
<center>
<p style="font-size:8px">
Data can be found at: https://raw.githubusercontent.com/jacobbexten/jacobbexten.github.io/master/data/<a href="https://raw.githubusercontent.com/jacobbexten/jacobbexten.github.io/master/data/"></a>
</p>
</center>
<script>
vega.scheme('custom', [ '#ce474c','#347a4b', '#ffb311', '#38a4f1', '#815b7b']);
const spec = "polis_vector.vg.json";
vegaEmbed("#polis_vector", spec)
.then(result => console.log(result))
.catch(console.warn);
const spec_polis_histo = "polis_histogram.vg.json";
vegaEmbed("#polis_histogram", spec_polis_histo)
.then(result => console.log(result))
.catch(console.warn);
</script>
</body>
</html>