-
Notifications
You must be signed in to change notification settings - Fork 0
/
raster.html
46 lines (36 loc) · 1.47 KB
/
raster.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
<!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 Montana American Native Indian Data.</title>
</head>
<body>
<center>
<h4>The American Indian population percentage in Montana correlates with relativity to reservations.</h4>
</center>
<div id="raster"></div>
<center>
<div id="raster_montana"></div>
</center>
<center>
<p style="font-size: 8px">The U.S. Census Grids (Summary File 1), 2010 data set contains grids of demographic and socioeconomic data from the year 2010 in ASCII and GeoTIFF formats. The grids have a resolution of 30 arc-seconds (0.0083 decimal degrees),</p>
</center>
<center>
<p style="font-size: 8px"> or approximately 1 square km. The gridded variables are based on census block geography from Census 2010 TIGER/Line Files and census variables (population, households, and housing variables).</p>
</center>
<center>
<p style="font-size:8px">
Data can be found at: <a href="https://sedac.ciesin.columbia.edu/data/set/usgrid-summary-file1-2010">https://sedac.ciesin.columbia.edu/data/set/usgrid-summary-file1-2010</a>
</p>
</center>
<script>
vega.scheme('custom', ['#FFE485', '#FFB399','#B35656', '#780235']);
const spec2 = "raster_montana.vg.json";
vegaEmbed("#raster_montana", spec2)
.then(result => console.log(result))
.catch(console.warn);
</script>
</body>
</html>