-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhatIDid.html
More file actions
577 lines (577 loc) · 24.6 KB
/
whatIDid.html
File metadata and controls
577 lines (577 loc) · 24.6 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="LibreOffice 3.4 (Linux)">
<META NAME="AUTHOR" CONTENT="Dave Michelson">
<META NAME="CREATED" CONTENT="20121014;9020000">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<META NAME="CHANGED" CONTENT="20121014;21180700">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<META NAME="CHANGEDBY" CONTENT="Dave Michelson">
<STYLE TYPE="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in }
A:link { so-language: zxx }
-->
</STYLE>
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<P STYLE="margin-bottom: 0in">My ODD Sample Hack Directions.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">This hack took me about an hour, here
is how I did it. I would speculate that if several people worked on
the different parts then it would only take a 20 to 30 minutes with
the potential of adding extra goodies.
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Go to the Open Data Asheville Data
Portal at <A HREF="http://opendatacatalog.ashevillenc.gov/">http://opendatacatalog.ashevillenc.gov/</A>
and search for Crime</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_7b4359dc.jpg" NAME="graphics1" ALIGN=LEFT WIDTH=665 HEIGHT=362 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_591085e7.jpg" NAME="graphics2" ALIGN=LEFT WIDTH=665 HEIGHT=362 BORDER=0><BR CLEAR=LEFT>Select
the City of Asheville Crime Mapper Locations. Under the Data area
click on the shapefile link.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Hit back on the browser. Select City
of Asheville Neighborhoods</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Once again click the shapefile link to
download.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Unzip coa_asheville_neighborhoods.zip</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Unzip
coa_crime_mapper_locations_view.zip</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Open QGIS.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Add the layers
coa_asheville_neighborhoods.shp and
coa_crime_mapper_locations_view.shp to QGIS</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Layer – add vector layer – navigate
to where you downloaded and unziped the shapefiles</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Now go to the menu choice vector –
Data Management Tools – Join attributes by location
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Target vector layer:
coa_crime_mapper_locations_view</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Join vector layer:
coa_asheville_neighborhood</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Output is crimeinhoods.shp</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_40b4d21f.jpg" NAME="graphics3" ALIGN=LEFT WIDTH=455 HEIGHT=496 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Click apply. When you are asked to add
the layer to the TOC choose yes.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Then close when finished.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Now it is time to re-project the
shapefile to wgs84 to get latitude and longitude.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Right click the crimeinhoods layer in
the table of contents and click on save as...</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Name it crimeinhoods_4326.shp</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Now browse for a projection wgs84
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_52cb35f1.jpg" NAME="graphics4" ALIGN=LEFT WIDTH=385 HEIGHT=526 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Click OK.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Add the crimeinhoods_4326.shp layer
into QGIS.
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Layer – add vector layer – browse
to crimeinhoods_4326.shp</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Open the attribute table and toggle
editing on.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_568ee472.jpg" NAME="graphics19" ALIGN=LEFT WIDTH=664 HEIGHT=373 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Click the field calculate utility and
create two numeric (12,10) fields. One named lat and one named long.
Calculate lat to $y and long to $x.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_78ed20d0.jpg" NAME="graphics5" ALIGN=LEFT WIDTH=665 HEIGHT=637 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m620b468f.jpg" NAME="graphics20" ALIGN=LEFT WIDTH=664 HEIGHT=636 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_27e68ae5.jpg" NAME="graphics6" ALIGN=LEFT WIDTH=665 HEIGHT=637 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_1697719d.jpg" NAME="graphics21" ALIGN=LEFT WIDTH=664 HEIGHT=636 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Toggle the editing off</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Save the changes.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Right click the crimeinhoods layer and
select save as....</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_14c5a013.jpg" NAME="graphics7" ALIGN=LEFT WIDTH=385 HEIGHT=526 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Change the format to CSV comma
separated value.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Save as crimeinhood.csv.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Next in QGIS select the neighborhood
name = 'DARN ' – in the neighborhood layer.
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Right click the neighborhood layer in
the table of contents and choose select query.</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_4ac419a.jpg" NAME="graphics9" ALIGN=LEFT WIDTH=665 HEIGHT=584 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Then hit okay</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Right click the neighborhood layer and
choose save as...</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Choose the format as kml key markup
language and name it darn.kml</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m204718dc.jpg" NAME="graphics10" ALIGN=LEFT WIDTH=385 HEIGHT=526 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Next you will have to use a Google
account to create a custom map...</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">In the menu of your Google account find
maps and click on the link.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Use the my places button and then
choose create map</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m4f69acab.jpg" NAME="graphics8" ALIGN=LEFT WIDTH=528 HEIGHT=460 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Enter a title so it's meaningful
(Downtown Area is what I choose.)
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Click on the import link and import the
DARN KML file.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m492b64ef.jpg" NAME="graphics11" ALIGN=LEFT WIDTH=665 HEIGHT=476 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in">Click save, then click done.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Click the embed link.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Then click the customize and preview
embedded map link.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_79c16e46.jpg" NAME="graphics12" ALIGN=LEFT WIDTH=660 HEIGHT=245 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Enter a custom width of 1000 and and
height of 350.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m503e2873.jpg" NAME="graphics13" ALIGN=LEFT WIDTH=665 HEIGHT=617 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Copy and paste the HTML at the bottom
into a HTML Editor or blog post.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><iframe width="1000"
height="350" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0"
src="https://maps.google.com/maps/ms?msa=0&amp;msid=210182910501613504435.0004cc0985b00ae884aa5&amp;hl=en&amp;ie=UTF8&amp;t=m&amp;ll=35.593076,-82.552428&amp;spn=0.012214,0.042915&amp;z=15&amp;output=embed"></iframe><br
/><small>View <a
href="https://maps.google.com/maps/ms?msa=0&amp;msid=210182910501613504435.0004cc0985b00ae884aa5&amp;hl=en&amp;ie=UTF8&amp;t=m&amp;ll=35.593076,-82.552428&amp;spn=0.012214,0.042915&amp;z=15&amp;source=embed"
style="color:#0000FF;text-align:left">Darn</a> in
a larger map</small></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Go to your Google account, find the
link for Documents or the link for Google Drive. Add a new fusion
table....</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Fusion tables are under Create, then
more >. (My screen shots refused to capture some of this stuff
sorry.)</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Choose to browse to a file from this
computer. The file should be named crimeinhoods.csv, (you may have
named it differently which is fine) and click next.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_46bf8af2.jpg" NAME="graphics17" ALIGN=LEFT WIDTH=664 HEIGHT=362 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Accept the defaults and click next.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">When the upload has completed click
next again.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Rename the imported file to something
like crimeinhoods_odd_hack</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m4eb2343.jpg" NAME="graphics18" ALIGN=LEFT WIDTH=664 HEIGHT=362 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Click Finish.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">You may have to wait till it uploads to
work with the fusion table...</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">After the import is complete start your
analysis by clicking on the options link</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_me48c56e.jpg" NAME="graphics14" ALIGN=LEFT WIDTH=665 HEIGHT=362 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Add filters for
name(neighborhood) = DARN and agency = APD. Don't forget to click the
apply button!</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_m626b6b8b.jpg" NAME="graphics15" ALIGN=LEFT WIDTH=665 HEIGHT=362 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Next add an
aggregate for offense. Don't forget to click the apply button!</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><IMG SRC="whatIDid_html_6f9a51f0.jpg" NAME="graphics16" ALIGN=LEFT WIDTH=665 HEIGHT=362 BORDER=0><BR CLEAR=LEFT><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">From the fusion
table menu choose visualize pie. Mmmmm Pie.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Click the get
embeddable code button, then the change visibility link, choose
share.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Next choose the
level of sharing you want. Since this is built on Open data you
should lean towards public!</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Click OK.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Go back to the
embeddable code link and change the width to 1000 and height to 350.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Copy and paste
the HTML to a HTML editor and make the HTML look nice. I copied it to
a blog post it was a lot easier.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><SPAN STYLE="text-decoration: none"><iframe
width="1000" height="350" scrolling="no"
frameborder="no"
src="<A HREF="https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=PIE&amp;containerId=gviz_canvas&amp;q=select+col7%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&">https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=PIE&amp;containerId=gviz_canvas&amp;q=select+col7%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&</A>#39;+and+col12+%3D+&#39;APD&#39;&amp;qrs=+and+col7+%3E%3D+&amp;qre=+and+col7+%3C%3D+&amp;qe=+group+by+col7+limit+9&amp;width=1000&amp;height=350"></iframe></SPAN></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Go back to the
visualize and choose bar.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Repeat the
embeddable code process width 1000 and 350 width.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><SPAN STYLE="text-decoration: none"><iframe
width="1000" height="350" scrolling="no"
frameborder="no"
src="<A HREF="https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=BAR&amp;containerId=gviz_canvas&amp;q=select+col7%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&">https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=BAR&amp;containerId=gviz_canvas&amp;q=select+col7%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&</A>#39;+and+col12+%3D+&#39;APD&#39;&amp;qrs=+and+col7+%3E%3D+&amp;qre=+and+col7+%3C%3D+&amp;qe=+group+by+col7+limit+9&amp;att=true&amp;width=1000&amp;height=335"></iframe></SPAN></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">I found that the
bar code did not sort by the count of crime offenses so I hacked it
and added the syntax to sort it. See the addition in red below.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><SPAN STYLE="text-decoration: none"><iframe
width="1000" height="350" scrolling="no"
frameborder="no"
src="<A HREF="https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=BAR&amp;containerId=gviz_canvas&amp;q=select+col7%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&">https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=BAR&amp;containerId=gviz_canvas&amp;q=select+col7%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&</A>#39;+and+col12+%3D+&#39;APD&#39;&amp;qrs=+and+col7+%3E%3D+&amp;qre=+and+col7+%3C%3D+&amp;qe=+group+by+col7+</SPAN><FONT COLOR="#ff0000"><FONT FACE="Consolas, Liberation Mono, Courier, monospace"><FONT SIZE=2 STYLE="font-size: 9pt"><SPAN STYLE="font-style: normal"><B>order+by+count(</B></SPAN></FONT></FONT></FONT><FONT COLOR="#dd1144"><FONT FACE="Consolas, Liberation Mono, Courier, monospace"><FONT SIZE=2 STYLE="font-size: 9pt"><SPAN STYLE="font-style: normal"><SPAN STYLE="font-weight: normal">)+</SPAN></SPAN></FONT></FONT></FONT><SPAN STYLE="text-decoration: none">limit+9&amp;att=true&amp;width=1000&amp;height=335"></iframe></SPAN></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Repeat the copy and paste to the HTML
editor or blog post.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Go to the
aggregate again and change the aggregate from offense to thedate.
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Change visualize
to line and get the embeddable code the same way.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><SPAN STYLE="text-decoration: none"><iframe
width="1000" height="350" scrolling="no"
frameborder="no"
src="<A HREF="https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=LINE&amp;containerId=gviz_canvas&amp;isXyPlot=true&amp;q=select+col5%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&">https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=LINE&amp;containerId=gviz_canvas&amp;isXyPlot=true&amp;q=select+col5%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&</A>#39;+and+col12+%3D+&#39;APD&#39;&amp;qrs=+and+col5+%3E%3D+&amp;qre=+and+col5+%3C%3D+&amp;qe=+group+by+col5+order+by+col5+asc+limit+250&amp;att=true&amp;width=1000&amp;height=335"></iframe></SPAN></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in; text-decoration: none">Again I noticed
that the syntax did some things I did not like - it left out some
months at the end of the graph. I hacked it like below. The hack is
in red.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><iframe width="1000"
height="350" scrolling="no" frameborder="no"
src="https://www.google.com/fusiontables/embedviz?viz=GVIZ&amp;t=LINE&amp;containerId=gviz_canvas&amp;isXyPlot=true&amp;q=select+col5%2C+count()+from+1gPnBv0M53W_O3KBY8SwfSaQaGfS7ohZSkEUFpGE+where+col13+%3D+&#39;DARN&#39;+and+col12+%3D+&#39;APD&#39;&amp;qrs=+and+col5+%3E%3D+&amp;qre=+and+col5+%3C%3D+&amp;qe=+group+by+col5+order+by+col5+asc+limit+<FONT COLOR="#ff0000"><B>10000</B></FONT>&amp;att=true&amp;width=1000&amp;height=335"></iframe></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Repeat the copy and paste to the HTML
editor or blog post.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">Now add a new filter for offense.
Start with Drug Arrest, then Larceny, and then Vandalism. Each one
individually, each time Repeating the copy and paste to the HTML
editor or blog post.
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">In each instance I hacked the limit to
10000 to force the graph to show all dates.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">For the maps remove all aggregates. You
need the lat and long fields, which aggregation leaves off. Fusion
tables auto-magically recognize the field lat and long as a location
so you should be good to go creating the map.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">You will also need to add another
filter for date, to replicate my maps. Dates are formated like
2011/10/29(yyyy/mm/dd) in the data. Then choose visualize and map. It
should be auto-magic, if your points are in Antarctica, you have the
lat and long backwards.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">I followed the same principle for each
map as the charts. I changed the width to 1000 and height to 350. I
copy and pasted the embedded link, then repeated the copy and paste
to the HTML editor or blog post.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">For the heat map notice that there is a
check box that says display as heat map - click it. The embedded link
will use that option. Get the embedded link and repeat the copy and
paste to the HTML editor or blog post.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">For the blog I used the blogger simple
template and removed all the extra stuff. I made the width 1200.
Since this is a hack you should hack it to what you want and not do
exactly what I did!</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">I saved and published the bog post and
- viola, a somewhat simple hack on Open Data from Asheville.</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">My complete HTML that I am using on the
blog post is on github at:</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><A HREF="https://github.com/davecoa/OpenDataDayHack/blob/master/odd_example_hack_post.html">https://github.com/davecoa/OpenDataDayHack/blob/master/odd_example_hack_post.html</A></P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">feel free to use this guide - hack the
settings.
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in">...and Happy Hacking!</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
<P STYLE="margin-bottom: 0in"><BR>
</P>
</BODY>
</HTML>