An updating scatterplot as a demonstration of d3 enter, exit and update functions, based on Mike Bostock's general update patterns.
Cross-national income data is from the Luxembourg Income Study.
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 |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
svg { | |
border: 1px solid #ff00ff; | |
} | |
</style> | |
<body> |
An updating scatterplot as a demonstration of d3 enter, exit and update functions, based on Mike Bostock's general update patterns.
Cross-national income data is from the Luxembourg Income Study.
variety | site | y1931 | y1932 | |
---|---|---|---|---|
Glabron | Crookston | 38.13333 | 26.16667 | |
Manchuria | Crookston | 39.93333 | 32.96667 | |
No. 457 | Crookston | 45.66667 | 34.33333 | |
No. 462 | Crookston | 48.56666 | 30.53333 | |
No. 475 | Crookston | 44.1 | 32.13333 | |
Peatland | Crookston | 41.6 | 25.23333 | |
Svansota | Crookston | 40.46667 | 20.63333 | |
Trebi | Crookston | 46.93333 | 41.83333 | |
Velvet | Crookston | 41.33333 | 32.06666 |
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 |
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 |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
body { | |
font: 10px arial sans; | |
} | |
h1 { |
A short demo of scatterplots with animated transitions, based on this example from the New York Times.
Line charts with circles and labels. A demonstration of the technique for a student.
val | cutoff | year | country | |
---|---|---|---|---|
6910 | cop5 | 1981 | Australia | |
6864 | cop5 | 1985 | Australia | |
6555 | cop5 | 1989 | Australia | |
6551 | cop5 | 1995 | Australia | |
7002 | cop5 | 2001 | Australia | |
7090 | cop5 | 2003 | Australia | |
8818 | cop5 | 1987 | Austria | |
8744 | cop5 | 1994 | Austria | |
5813 | cop5 | 1995 | Austria |