Skip to content

Commit 3f2b99d

Browse files
committed
Update test.html
1 parent f115455 commit 3f2b99d

File tree

1 file changed

+4
-278
lines changed

1 file changed

+4
-278
lines changed

test.html

Lines changed: 4 additions & 278 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
<section class="page-header">
109109
<h1 class="project-name">GeoDa</h1>
110-
<h2 class="project-tagline">Download GeoDa Software</h2>
110+
<h2 class="project-tagline">GeoDa Cheat Sheet</h2>
111111
<a href="//geodacenter.github.io/" class="btn">Homepage</a>
112112
<a href="//geodacenter.github.io/download.html" class="btn">Download</a>
113113
<a href="https://github.com/GeoDaCenter/geoda/" class="btn">View on GitHub</a>
@@ -121,283 +121,9 @@ <h2 class="project-tagline">Download GeoDa Software</h2>
121121

122122
<section class="main-content">
123123

124-
<h3>GeoDa Release</h3>
125-
126-
<div style="float:right; margin-left:25px; height: 250px;">
127-
<a href="https://giving.uchicago.edu/site/Donation2?1838.donation=form1&df_id=1838&mfc_pref=T&set.Designee=1901"><img src="images/donate.png"></a>
128-
</div>
129-
<div "style: clear:both;"></div>
130-
131-
<p>
132-
Help us keep GeoDa free by contributing
133-
<a href="https://giving.uchicago.edu/site/Donation2?1838.donation=form1&df_id=1838&mfc_pref=T&set.Designee=1901">here</a>.
134-
Thank you for supporting free and open-source spatial software! <br/><br/>
135-
GeoDa is continuously updated. The most current version is GeoDa 1.14 with <a href="//geodacenter.github.io/">new features</a>. We found it to be stable but if you encounter a bug, <a href="mailto:[email protected]">please let us know</a>. You can also report bugs and issues on <a href="https://github.com/GeoDaCenter/geoda/issues">our Github site</a>. The source code for GeoDa is available <a href="https://github.com/GeoDaCenter/geoda/">here</a> and is released under the <a href="http://www.gnu.org/licenses/gpl-3.0.html">GPL v3.0 license</a>.
136-
</p>
137-
138-
<br/>
139-
<p style="text-align:center">
140-
<a href="download_windows.html" class="btn download-btn">Download For Windows</a>
141-
<a href="download_mac.html" class="btn download-btn">Download For Mac</a>
142-
<a href="download_linux.html" class="btn download-btn">Download For Linux</a>
143-
<a href="download_nightly.html" class="btn nightly-btn">Nightly build</a>
144-
</p>
145-
<p>
146-
Help us to translate GeoDa into your language:
147-
</p>
148-
<iframe src="https://docs.google.com/spreadsheets/d/1iZa4wCIyTDlIRYoW7229YoZWKZ0lmIiOFsCJG3ZVw-s" width="100%" height="800"></iframe>
149-
<br/><br/>
150-
<p>Latest GeoDa release: (<a href="http://github.com/GeoDaCenter/geoda/releases">release notes</a>)
151-
<br/>
152-
9/26/2018 subversion 1.12.1.161
153-
<br/>
154-
4/26/2018 subversion 1.12.1.129
155-
<br/>
156-
11/13/2017 subversion 1.12.1.47
157-
<br/>
158-
10/01/2017 subversion 1.12
159-
<br/>
160-
06/01/2017 subversion 1.10
161-
<br/>
162-
03/07/2017 subversion 1.8.16.4
163-
<br/>
164-
03/05/2017 subversion 1.8.16
165-
<br/>
166-
11/08/2016 subversion 1.8.14
167-
<br/>
168-
09/01/2016 subversion 1.8.12
169-
<br/>
170-
07/14/2016 subversion 1.8.10
171-
<br/>
172-
06/11/2016 subversion 1.8.8
173-
</p>
174-
175-
176-
<p><a href="lab_install.html" class="btn lab-btn">Lab Installation Guide</a>
177-
</p>
178-
179-
180-
<h3>Live Update of GeoDa Users Across the Globe</h3>
181-
<p>
182-
<!--<iframe width="100%" height="520" frameborder="0" src="https://lixun910.cartodb.com/viz/d1b90530-3fbd-11e6-93d2-0e3a376473ab/embed_map" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>-->
183-
<div id="geoda_map" style="width: 50%; height: 500px;border: 0px solid red; "> </div>
184-
</p>
185-
<p>
186-
<div id="visualization" style="width: 75%; height: 400px;"> </div>
187-
188-
</p>
189-
<script type="text/javascript">
190-
google.load('visualization', '1', {packages: ['areachart']});
191-
function drawVisualization() {
192-
193-
var data = google.visualization.arrayToDataTable(
194-
[['Month', 'Downloads'], ['Apr2005', 391], ['May2005', 765], ['Jun2005', 1074], ['Jul2005', 1322], ['Aug2005', 1530], ['Sep2005', 1828], ['Oct2005', 2205], ['Nov2005', 2646], ['Dec2005', 3007],
195-
['Jan2006', 3379], ['Feb2006', 3818], ['Mar2006', 4333], ['Apr2006', 4876], ['May2006', 5360], ['Jun2006', 5831], ['Jul2006', 6270], ['Aug2006', 6702], ['Sep2006', 7249], ['Oct2006', 7961], ['Nov2006', 8671], ['Dec2006', 9312],
196-
['Jan2007', 9917], ['Feb2007', 10552], ['Mar2007', 11309], ['Apr2007', 12217], ['May2007', 12945], ['Jun2007', 13585], ['Jul2007', 14133], ['Aug2007', 14643], ['Sep2007', 15270], ['Oct2007', 16169], ['Nov2007', 17155], ['Dec2007', 17805],
197-
['Jan2008', 18527], ['Feb2008', 19445], ['Mar2008', 20447], ['Apr2008', 21614], ['May2008', 22621], ['Jun2008', 23423], ['Jul2008', 24108], ['Aug2008', 24788], ['Sep2008', 25632], ['Oct2008', 26751], ['Nov2008', 27885], ['Dec2008', 28130],
198-
['Jan2009', 28517], ['Feb2009', 29343], ['Mar2009', 30453], ['Apr2009', 31487], ['May2009', 32435], ['Jun2009', 33531], ['Jul2009', 34491], ['Aug2009', 35446], ['Sep2009', 36725], ['Oct2009', 38405], ['Nov2009', 39935], ['Dec2009', 41056],
199-
['Jan2010', 42247], ['Feb2010', 43398], ['Mar2010', 45375], ['Apr2010', 46458], ['May2010', 47197], ['Jun2010', 47719], ['Jul2010', 48236], ['Aug2010', 48764], ['Sep2010', 49439], ['Oct2010', 50869], ['Nov2010', 52215], ['Dec2010', 53208],
200-
['Jan2011', 54245], ['Feb2011', 55422], ['Mar2011', 56945], ['Apr2011', 58236], ['May2011', 59499], ['Jun2011', 60638], ['Jul2011', 61506], ['Aug2011', 62404], ['Sep2011', 63495], ['Oct2011', 65051], ['Nov2011', 66449], ['Dec2011', 67667],
201-
['Jan2012', 68773], ['Feb2012', 69992], ['Mar2012', 71550], ['Apr2012', 73058], ['May2012', 73980], ['Jun2012', 75184], ['Jul2012', 76329], ['Aug2012', 77621], ['Sep2012', 79128], ['Oct2012', 80879], ['Nov2012', 82661], ['Dec2012', 84100],
202-
['Jan2013', 85483], ['Feb2013', 86806], ['Mar2013', 88315], ['Apr2013', 88782], ['May2013', 89026], ['Jul2013', 89365], ['Aug2013', 90442], ['Sep2013', 91865], ['Oct2013', 93555], ['Nov2013', 95281], ['Dec2013', 96594],
203-
['Jan2014', 98048],['Feb2014', 99426],['Mar2014', 101095],['Apr2014', 102594], ['May2014', 104009], ['Jun2014', 105240], ['Jul2014', 106729], ['Aug2014', 108225], ['Sep2014', 110184], ['Oct2014', 112683], ['Nov2014', 115345], ['Dec2014', 117266],
204-
['Jan2015', 119497],['Feb2015', 121582],['Mar2015', 124170],['Apr2015', 126774], ['May2015', 129296], ['Jun2015', 131481], ['Jul2015', 133346], ['Aug2015', 135256], ['Sep2015', 137328], ['Oct2015', 140082], ['Nov2015', 143026], ['Dec2015', 145470],
205-
['Jan2016', 147718],['Feb2016', 149990],['Mar2016',152987],['Apr2016', 155496],['May2016', 158123],['Jun2016', 160438],['Jul2016', 162966],['Aug2016', 165436],['Sep2016', 168354],['Oct2016', 171932],['Nov2016', 175930],['Dec2016', 178863],
206-
['Jan2017', 181475],['Feb2017', 185109],['Mar2017',190522],['Apr2017', 194911],['May2017', 199368],['Jun2017', 200467],['Jul2017', 203952],['Aug2017', 206605],['Sep2017', 210116],['Oct2017', 214504],['Nov2017', 218816],['Dec2017', 222210],
207-
['Jan2018', 225540],['Feb2018', 228931],['Mar2018',234120],['Apr2018', 239567],['May2018', 245422],['Jun2018', 249603],['Jul2018', 253620],['Aug2018', 256976],['Sep2018', 260824],['Oct2018', 266230],['Nov2018', 271503],['Dec2018', 275720],
208-
['Jan2019', 279503],['Feb2019', 283426],['Mar2019',288692]]
209-
);
210-
// Create and draw the visualization.
211-
new google.visualization.AreaChart(document.getElementById('visualization')).
212-
draw(data,
213-
{//width: 100%,
214-
height: 300,
215-
title: 'More than '+data.getValue(data.getNumberOfRows()-1,1)+' GeoDa Software users ('+
216-
data.getValue(data.getNumberOfRows()-1,0)+')',
217-
colors:['#AAAAFC'],
218-
legend:'none',
219-
backgroundColor: {stroke:'none', fill:'#eee', strokeSize: 1}
220-
});
221-
}
222-
google.setOnLoadCallback(drawVisualization);
223-
</script>
224-
225-
<script>
226-
227-
var width = 600,
228-
height = 500,
229-
sens = 0.25,
230-
focused;
231-
232-
var interrupt = false;
233-
var scales = {};
234-
235-
//Setting projection
236-
237-
var projection = d3.geo.orthographic()
238-
.scale(245)
239-
.rotate([0, 0])
240-
.translate([width / 2, height / 2])
241-
.clipAngle(90);
242-
243-
var path = d3.geo.path()
244-
.projection(projection);
245-
246-
//SVG container
247-
248-
var svg = d3.select("#geoda_map").append("svg")
249-
.attr("width", width)
250-
.attr("height", height);
251-
252-
//Adding water
253-
254-
svg.append("path")
255-
.datum({type: "Sphere"})
256-
.attr("class", "water")
257-
.attr("d", path)
258-
//Drag event
259-
.call(d3.behavior.drag()
260-
.origin(function() {
261-
interrupt = true;
262-
var r = projection.rotate();
263-
return {x: r[0] / sens, y: -r[1] / sens};
264-
})
265-
.on("drag", function() {
266-
267-
var rotate = projection.rotate();
268-
projection.rotate([d3.event.x * sens, -d3.event.y * sens, rotate[2]]);
269-
svg.selectAll("path.land").attr("d", path);
270-
svg.selectAll(".focused").classed("focused", focused = false);
271-
})
272-
);
273-
274-
275-
var countryTooltip = d3.select("body").append("div").attr("class", "countryTooltip");
276-
277-
278-
queue()
279-
.defer(d3.json, "./data/world-110m.json")
280-
.defer(d3.tsv, "./data/world-110m-country-names.tsv")
281-
.defer(d3.csv, "./data/down_by_country.csv")
282-
.await(ready);
283-
284-
//Main function
285-
286-
function ready(error, world, countryData, countryDownloads) {
287-
288-
var origin = [71, -42],
289-
velocity = [.010, -.002],
290-
t0 = Date.now();
291-
292-
var countryById = {},
293-
downloadById = {},
294-
countries = topojson.feature(world, world.objects.countries).features;
295-
296-
countryData.forEach(function(d) {
297-
countryById[d.id] = d.name;
298-
downloadById[d.id] = 0;
299-
});
300-
301-
var sum_down = 0;
302-
countryDownloads.forEach(function(d) {
303-
if (d.id >= 0) {
304-
downloadById[d.id] = parseInt(d.count);
305-
sum_down += parseInt(d.count);
306-
}
307-
});
308-
309-
var down_data = [];
310-
for (var id in downloadById) {
311-
if (downloadById[id] > 0)
312-
down_data.push(downloadById[id]);
313-
}
314-
var down_cat = ss.jenks(down_data, 9);
315-
316-
scales.jenks9 = d3.scale.threshold()
317-
.domain(down_cat)
318-
.range(d3.range(11).map(function(i) { return "q" + i + "-11"; }));
319-
320-
scales.quantize = d3.scale.quantize()
321-
.domain([0, sum_down])
322-
.range(d3.range(11).map(function(i) { return "q" + i + "-11"; }));
323-
324-
325-
326-
//Drawing countries on the globe
327-
var world = svg.selectAll("path.land")
328-
.data(countries)
329-
.enter().append("path")
330-
.attr("class", function(d) {
331-
var down = 0;
332-
if (d.id in downloadById) {
333-
down = downloadById[d.id];
334-
}
335-
var clr = scales["jenks9"](down);
336-
if (clr == undefined) {
337-
console.log(d.id);
338-
}
339-
return "land " + clr;
340-
})
341-
.attr("d", path)
342-
//Drag event
343-
.call(d3.behavior.drag()
344-
.origin(function() {
345-
interrupt = true;
346-
var r = projection.rotate();
347-
return {x: r[0] / sens, y: -r[1] / sens};
348-
})
349-
.on("drag", function() {
350-
var rotate = projection.rotate();
351-
projection.rotate([d3.event.x * sens, -d3.event.y * sens, rotate[2]]);
352-
svg.selectAll("path.land").attr("d", path);
353-
svg.selectAll(".focused").classed("focused", focused = false);
354-
})
355-
.on("dragend", function () {
356-
//interrupt = false;
357-
})
358-
)
359-
//Mouse events
360-
.on("mouseover", function(d) {
361-
countryTooltip.text(function() {
362-
var cnt = 0;
363-
if (d.id in downloadById) {
364-
cnt = downloadById[d.id];
365-
}
366-
return countryById[d.id] + ": " + cnt;
367-
})
368-
.style("left", (d3.event.pageX + 7) + "px")
369-
.style("top", (d3.event.pageY - 15) + "px")
370-
.style("display", "block")
371-
.style("opacity", 1);
372-
})
373-
.on("mouseout", function(d) {
374-
countryTooltip.style("opacity", 0)
375-
.style("display", "none");
376-
})
377-
.on("mousemove", function(d) {
378-
countryTooltip.style("left", (d3.event.pageX + 7) + "px")
379-
.style("top", (d3.event.pageY - 15) + "px");
380-
});
381-
382-
383-
384-
d3.timer(function() {
385-
if (interrupt == false) {
386-
var dt = Date.now() - t0;
387-
projection.rotate([velocity[0] * dt + origin[0], velocity[1] * dt + origin[1]]);
388-
svg.selectAll("path.land").attr("d", path);
389-
svg.selectAll(".focused").classed("focused", focused = false);
390-
}
391-
392-
});
393-
394-
};
395-
</script>
396-
397-
<h3>
398-
<a id="intro-contact" class="anchor" href="#intro-contact" aria-hidden="true"><span class="octicon octicon-link"></span></a>Contact</h3>
399-
<p>Questions? Contact <a href="mailto:[email protected]">us</a>.</p>
400-
124+
<h3>GeoDa Cheat Sheet</h3>
125+
<p>Please click on </p>
126+
<iframe src="https://docs.google.com/presentation/d/e/2PACX-1vSfER3ejdJ9heJx_6fYcAnNX-RE8x56Ql7LsPUIsseHOi8c4jHUdpJxcy4tatFhJbGOWyB_BraBiamA/embed?start=false&loop=false&delayms=3000" frameborder="0" width="890" height="919" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
401127

402128

403129
<footer class="site-footer">

0 commit comments

Comments
 (0)