-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (99 loc) · 4.8 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<title>TransMapper: Transform mapping behavior</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="An OSU Hackathon project.">
<meta name="keywords" content="U.S. Census, GIS, cartogram, NLP">
<meta name="author" content="Wei Chen, Bo Zhao, Zhe Xu">
<script src="./js/natural.js"></script>
<script src="./js/d3.v2.min.js"></script>
<script src="./js/jquery-1.10.2.min.js"></script>
<script src="./js/topojson.js"></script>
<script src="./js/cartogram.js"></script>
<script src="./js/colorbrewer.js"></script>
<script src="./js/removeStopWords.js"></script>
<link rel="stylesheet" type="text/css" href="cartogram.css">
</head>
<body>
<div id="search">
<div>Enter keywords to filter attributes (separate by space)</div>
<form style="margin-bottom:5px; margin-top: 5px;" >
<input id="keywords" type="text" title="enter keywords to filter attributes for mapping">
<input type="button" onclick="search()" value="guess">
<input id="sound" type="checkbox"/> Match sound
</form>
<div id="heading">Score->Attribute (Rank by similarity, up to 20)</div>
<div id="match"></div>
<img id="wordle" src="img/wordle.PNG" height="100%" width="100%" onclick="window.open(this.src)"/>
</div>
<div id="container">
<h1 id="title">TransMapper</h1>
<form>
<p>
<!-- These are the fields from the data table -->
<label>Scale by <select id="field"></select></label>
<label>in
<select
id="year" disabled="disabled">
<option value="2012">2012</option>
</select>
</label>
<br>
<a id="fold" title="Tablet, fold me to full screen">>>></a>
<span id="status" style="margin-top: 10px;"></span>
</p>
</form>
<div id="map-container">
<svg id="map">
<text id="maptitle1" x="5" y="18">Map of the U.S.</text>
<text id="maptitle2" x="70" y="33"></text>
<g id="legend">
<rect x="710" y="410" width="20" height="20" style="fill: #91BFDB; opacity: 0.8;"></rect>
<text x="740" y="426">min</text>
<rect x="710" y="390" width="20" height="20" style="fill: #B5D4D1; opacity: 0.8;"></rect>
<rect x="710" y="370" width="20" height="20" style="fill: #DAE9C8; opacity: 0.8;"></rect>
<rect x="710" y="350" width="20" height="20" style="fill: #FFFFBF; opacity: 0.8;"></rect>
<text x="740" y="366">mean</text>
<rect x="710" y="330" width="20" height="20" style="fill: #FED99D; opacity: 0.8;"></rect>
<rect x="710" y="310" width="20" height="20" style="fill: #FDB37B; opacity: 0.8;"></rect>
<rect x="710" y="290" width="20" height="20" style="fill: #FC8D59; opacity: 0.8;"></rect>
<text x="740" y="306">max</text>
</g>
</svg>
</div>
<div id="about">
<p>
TransMapper, as part of effort in the <a href="library.osu.edu/find/hackathon/" target="_blank">OSUHackathon</a> challenge,
is a light web mapping application targeting 'big' census data.
It is developed by team <i>GeoVis</i> using 6 Javascript libraries:
<a href="d3js.org">d3.v2.min.js</a>
, <a href="https://github.com/shawnbot/d3-cartogram/" target="_blank">cartogram.js</a>
, <a href="https://github.com/amitamb/NaturalJS" target="_blank">natural.js</a>
, <a href="https://github.com/mbostock/topojson" target="_blank">topojson.js</a>
, <a href="http://jquery.com/" target="_blank">jquery-1.10.2.min.js</a>
and <a href="https://github.com/mbostock/d3/tree/master/lib/colorbrewer" target="_blank">colorbrewer.js</a> within 25 hrs.
See our <a href="help.html" target="_blank">HackPage</a> for more details.
Also, the synopsis of census <a href="./meta.htm" target="_blank">data</a>
</p>
<p> TransMapper aims to <i>transform</i> the way of <i>mapping</i> the census
by providing a cartogram-based visualizer and
a simple natural language interface for querying census data.
Based on previous work (shamelessly borrowed from
<a href="https://github.com/shawnbot/d3-cartogram/" target="_blank">d3-carto</a>
by <a href="http://stamen.com/studio/shawn" target="_blank">Shawn Allen</a>),
TransMapper is designed and built by Wei Chen (David) <i>caption</i>, Bo Zhao (Jakob) and Xu Zhe (Lucky).
Long live <a href="d3js.org" >d3.js</a> which does most of the heavy lifting and
<a href="colorbrewer2.org" target="_blank">colorbrewer</a> which delivers blind safe colors for this mapping.
Also, thanks event sponsors <a href="http://library.osu.edu/find/hackathon/" target="_blank">
Hortonworks, Teradata, Google, USG </a> for the opportunity and all the good food!
</p>
</div>
<a href="https://github.com/mystickahuna/geovis" target="_blank"><img
style="position: absolute; top: 0; right: 0; border: 0;"
src="./forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</div>
<script src="./js/main.js"></script>
<div id='tooltip'></div>
</body>
</html>