Skip to content

Instantly share code, notes, and snippets.

@kcsluis
kcsluis / index.html
Created September 12, 2015 00:14
Basic HTML
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
/*css*/
</style>
@kcsluis
kcsluis / group1.tsv
Last active September 12, 2015 00:44
Core D3 format / Scatterplot
group x y
I 10 8.04
I 8 6.95
I 13 7.58
I 9 8.81
I 11 8.33
I 14 9.96
I 6 7.24
I 4 4.26
I 12 10.84
@kcsluis
kcsluis / group1.tsv
Last active September 12, 2015 00:48
Tooltip
I 10 8.04
I 8 6.95
I 13 7.58
I 9 8.81
I 11 8.33
I 14 9.96
I 6 7.24
I 4 4.26
I 12 10.84
@kcsluis
kcsluis / index.html
Created September 12, 2015 00:20
Buttons, Dropdowns
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
/*css*/
</style>
@kcsluis
kcsluis / barley.tsv
Created September 12, 2015 00:21
Data Manipulation
yield variety year site
27 Manchuria 1931 University Farm
48.86667 Manchuria 1931 Waseca
27.43334 Manchuria 1931 Morris
39.93333 Manchuria 1931 Crookston
32.96667 Manchuria 1931 Grand Rapids
28.96667 Manchuria 1931 Duluth
43.06666 Glabron 1931 University Farm
55.2 Glabron 1931 Waseca
28.76667 Glabron 1931 Morris
@kcsluis
kcsluis / guns_history.csv
Created September 12, 2015 00:23
Dot Map
st county STATE composite fipstxt FIPS count3
AK Aleutians East Alaska ak_aleutians east 02013 2013 0
AK Aleutians West Alaska ak_aleutians west 02016 2016 0
AK Anchorage Alaska ak_anchorage 02020 2020 19
AK Bethel Alaska ak_bethel 02050 2050 1
AK Bristol Bay Alaska ak_bristol bay 02060 2060 0
AK Denali Alaska ak_denali 02068 2068 0
AK Dillingham Alaska ak_dillingham 02070 2070 0
AK Fairbanks North Star Alaska ak_fairbanks north star 02090 2090 4
AK Haines Alaska ak_haines 02100 2100 0
@kcsluis
kcsluis / index.html
Created September 12, 2015 00:28
Mobile, Responsive
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
/*css*/
.content {
width: 840px;
@kcsluis
kcsluis / index.html
Created September 12, 2015 00:40
Choropleth Map
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
/* svg {
border: 1px solid #f0f;
}*/
body {
@kcsluis
kcsluis / group1.tsv
Created September 26, 2015 22:20
Tables
I 10 8.04
I 8 6.95
I 13 7.58
I 9 8.81
I 11 8.33
I 14 9.96
I 6 7.24
I 4 4.26
I 12 10.84
@kcsluis
kcsluis / barley.tsv
Created September 26, 2015 22:20
Nesting
27 Manchuria 1931 University Farm
48.86667 Manchuria 1931 Waseca
27.43334 Manchuria 1931 Morris
39.93333 Manchuria 1931 Crookston
32.96667 Manchuria 1931 Grand Rapids
28.96667 Manchuria 1931 Duluth
43.06666 Glabron 1931 University Farm
55.2 Glabron 1931 Waseca
28.76667 Glabron 1931 Morris