-
-
Save ccurtsinger/3a5855ec4357ee92e7624cff35ea5812 to your computer and use it in GitHub Desktop.
Supreme Court Timeline Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name | Year | |
---|---|---|
Marbury v. Madison | 1803 | |
McCulloch v. Maryland | 1819 | |
Dred Scott v. Sandford | 1857 | |
Plessy v. Ferguson | 1896 | |
Korematsu v. United States | 1944 | |
Brown v. Board of Education | 1954 | |
Gideon v. Wainwright | 1963 | |
New York Times v. Sullivan | 1964 | |
Miranda v. Arizona | 1966 | |
Loving v. Virginia | 1967 | |
Roe v. Wade | 1973 | |
United States v. Nixon | 1974 | |
Regends of the University of California v. Bakke | 1978 | |
Bush v. Gore | 2000 | |
Lawrence v. Texas | 2003 | |
District of Columbia v. Heller | 2008 | |
Citizens United v. Federal Election Commission | 2010 | |
National Federation of Independent Business v. Sebelius | 2012 | |
Shelby County v. Holder | 2013 | |
United States v. Windsor | 2013 | |
Obergefell v. Hodges | 2015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
start_at_end: true, | |
timenav_height: 500 | |
}; | |
d3.queue() | |
.defer(d3.tsv, 'justices.tsv') | |
.defer(d3.tsv, 'cases.tsv') | |
.await(function(error, justices, cases) { | |
// Set up the data object | |
var data = { | |
title: { | |
text: { | |
headline: 'The US Supreme Court' | |
} | |
}, | |
events: [] | |
}; | |
// Add justices to the data object | |
for(var justice of justices) { | |
var name = justice.Justice; | |
var start = new Date(justice.Start); | |
var end = new Date(); | |
if(justice.End != 'Incumbent') { | |
end = new Date(justice.End); | |
} | |
data.events.push({ | |
text: { | |
headline: name | |
}, | |
start_date: { | |
year: start.getFullYear(), | |
month: start.getMonth() + 1, | |
day: start.getDate() | |
}, | |
end_date: { | |
year: end.getFullYear(), | |
month: end.getMonth() + 1, | |
day: start.getDate() | |
}, | |
background: { | |
color: '#000' | |
}, | |
group: 'Justice' | |
}); | |
} | |
// Add cases to the data object | |
for(var c of cases) { | |
data.events.push({ | |
text: { | |
headline: c.Name | |
}, | |
start_date: { | |
year: c.Year | |
}, | |
group: 'Case' | |
}); | |
} | |
// Make the timeline | |
var timeline = new TL.Timeline('timeline-embed', data, options); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Timeline Example</title> | |
<meta charset="utf-8"> | |
<link title="timeline-styles" rel="stylesheet" href="https://cdn.knightlab.com/libs/timeline3/latest/css/timeline.css"> | |
<script src="https://cdn.knightlab.com/libs/timeline3/latest/js/timeline.js"></script> | |
<script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script> | |
</head> | |
<body> | |
<div id="timeline-embed" style="width: 100%; height: 600px"></div> | |
<script src="demo.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Justice | Term | Start | End | |
---|---|---|---|---|
Neil Gorsuch | 12 | April 10, 2017 | Incumbent | |
Elena Kagan | 2,450 | August 7, 2010 | Incumbent | |
Sonia Sotomayor | 2,814 | August 8, 2009 | Incumbent | |
Samuel Alito | 4,099 | January 31, 2006 | Incumbent | |
John Roberts | 4,223 | September 29, 2005 | Incumbent | |
Stephen Breyer | 8,298 | August 3, 1994 | Incumbent | |
Ruth Bader Ginsburg | 8,656 | August 10, 1993 | Incumbent | |
Clarence Thomas | 9,313 | October 23, 1991 | Incumbent | |
David Souter | 6,838 | October 9, 1990 | June 29, 2009 | |
Anthony Kennedy | 10,656 | February 18, 1988 | Incumbent | |
Antonin Scalia | 10,732 | September 26, 1986 | February 13, 2016 | |
Sandra Day O'Connor | 8,894 | September 25, 1981 | January 31, 2006 | |
John Paul Stevens | 12,611 | December 19, 1975 | June 29, 2010 | |
Lewis Franklin Powell | 5,649 | January 7, 1972 | June 26, 1987 | |
William Rehnquist | 12,293 | January 7, 1972 | September 3, 2005 | |
Harry Blackmun | 8,821 | June 9, 1970 | August 3, 1994 | |
Warren E. Burger | 6,304 | June 23, 1969 | September 26, 1986 | |
Thurgood Marshall | 8,765 | October 2, 1967 | October 1, 1991 | |
Abe Fortas | 1,318 | October 4, 1965 | May 14, 1969 | |
Arthur Goldberg | 1,028 | October 1, 1962 | July 25, 1965 | |
Byron White | 11,396 | April 16, 1962 | June 28, 1993 | |
Potter Stewart | 8,298 | October 14, 1958 | July 3, 1981 | |
Charles Evans Whittaker | 1,832 | March 25, 1957 | March 31, 1962 | |
William J. Brennan, Jr. | 12,330 | October 16, 1956 | July 20, 1990 | |
John Marshall Harlan II | 6,023 | March 28, 1955 | September 23, 1971 | |
Earl Warren | 5,740 | October 5, 1953 | June 23, 1969 | |
Sherman Minton | 2,560 | October 12, 1949 | October 15, 1956 | |
Tom C. Clark | 6,501 | August 24, 1949 | June 12, 1967 | |
Fred M. Vinson | 2,633 | June 24, 1946 | September 8, 1953 | |
Harold Hitz Burton | 4,760 | October 1, 1945 | October 13, 1958 | |
Wiley Blount Rutledge | 2,399 | February 15, 1943 | September 10, 1949 | |
Robert H. Jackson | 4,838 | July 11, 1941 | October 9, 1954 | |
James F. Byrnes | 452 | July 8, 1941 | October 3, 1942 | |
Frank Murphy | 3,452 | February 5, 1940 | July 19, 1949 | |
William O. Douglas | 13,358 | April 17, 1939 | November 12, 1975 | |
Felix Frankfurter | 8,611 | January 30, 1939 | August 28, 1962 | |
Stanley Forman Reed | 6,965 | January 31, 1938 | February 25, 1957 | |
Hugo Black | 12,447 | August 19, 1937 | September 17, 1971 | |
Benjamin N. Cardozo | 2,308 | March 14, 1932 | July 9, 1938 | |
Owen Roberts | 5,538 | June 2, 1930 | July 31, 1945 | |
Harlan F. Stone | 7,721 | March 2, 1925 | April 22, 1946 | |
Edward Terry Sanford | 2,574 | February 19, 1923 | March 8, 1930 | |
Pierce Butler | 6,162 | January 2, 1923 | November 16, 1939 | |
George Sutherland | 5,586 | October 2, 1922 | January 17, 1938 | |
William Howard Taft | 3,129 | July 11, 1921 | February 3, 1930 | |
John Hessin Clarke | 2,170 | October 9, 1916 | September 18, 1922 | |
Louis Brandeis | 8,288 | June 5, 1916 | February 13, 1939 | |
James Clark McReynolds | 9,608 | October 12, 1914 | January 31, 1941 | |
Mahlon Pitney | 3,940 | March 18, 1912 | December 31, 1922 | |
Joseph Rucker Lamar | 1,825 | January 3, 1911 | January 2, 1916 | |
Willis Van Devanter | 9,647 | January 3, 1911 | June 2, 1937 | |
Charles Evans Hughes | 6,214 | October 10, 1910 | June 10, 1916 | |
Charles Evans Hughes | 6,214 | February 24, 1930 | June 30, 1941 | |
Horace Harmon Lurton | 1,651 | January 3, 1910 | July 12, 1914 | |
William Henry Moody | 1,434 | December 17, 1906 | November 20, 1910 | |
William R. Day | 7,196 | March 2, 1903 | November 13, 1922 | |
Oliver Wendell Holmes | 10,627 | December 8, 1902 | January 12, 1932 | |
Joseph McKenna | 9,840 | January 26, 1898 | January 5, 1925 | |
Rufus Wheeler Peckham | 5,039 | January 6, 1896 | October 24, 1909 | |
Edward Douglass White | 9,929 | March 12, 1894 | May 19, 1921 | |
Howell Edmunds Jackson | 887 | March 4, 1893 | August 8, 1895 | |
George Shiras, Jr. | 3,787 | October 10, 1892 | February 23, 1903 | |
Henry Billings Brown | 5,621 | January 5, 1891 | May 28, 1906 | |
David Josiah Brewer | 7,385 | January 6, 1890 | March 28, 1910 | |
Melville Fuller | 7,938 | October 8, 1888 | July 4, 1910 | |
Lucius Quintus Cincinnatus Lamar | 1,832 | January 18, 1888 | January 23, 1893 | |
Samuel Blatchford | 4,113 | April 3, 1882 | July 7, 1893 | |
Horace Gray | 7,553 | January 9, 1882 | September 15, 1902 | |
Stanley Matthews | 2,866 | May 17, 1881 | March 22, 1889 | |
William Burnham Woods | 2,320 | January 5, 1881 | May 14, 1887 | |
John Marshall Harlan | 12,360 | December 10, 1877 | October 14, 1911 | |
Morrison Waite | 5,133 | March 4, 1874 | March 23, 1888 | |
Ward Hunt | 3,305 | January 9, 1873 | January 27, 1882 | |
Joseph P. Bradley | 7,975 | March 23, 1870 | January 22, 1892 | |
William Strong | 3,928 | March 14, 1870 | December 14, 1880 | |
Salmon P. Chase | 3,065 | December 15, 1864 | May 7, 1873 | |
Stephen Johnson Field | 12,614 | May 20, 1863 | December 1, 1897 | |
David Davis | 5,198 | December 10, 1862 | March 4, 1877 | |
Samuel Freeman Miller | 10,311 | July 21, 1862 | October 13, 1890 | |
Noah Haynes Swayne | 6,937 | January 27, 1862 | January 24, 1881 | |
Nathan Clifford | 8,586 | January 21, 1858 | July 25, 1881 | |
John Archibald Campbell | 2,941 | April 11, 1853 | April 30, 1861 | |
Benjamin Robbins Curtis | 2,182 | October 10, 1851 | September 30, 1857 | |
Robert Cooper Grier | 8,575 | August 10, 1846 | January 31, 1870 | |
Levi Woodbury | 2,172 | September 23, 1845 | September 4, 1851 | |
Samuel Nelson | 10,136 | February 27, 1845 | November 28, 1872 | |
Peter Vivian Daniel | 6,716 | January 10, 1842 | May 31, 1860 | |
John McKinley | 5,305 | January 9, 1838 | July 19, 1852 | |
John Catron | 10,256 | May 1, 1837 | May 30, 1865 | |
Philip Pendleton Barbour | 1,750 | May 12, 1836 | February 25, 1841 | |
Roger B. Taney | 10,425 | March 28, 1836 | October 12, 1864 | |
James Moore Wayne | 11,860 | January 14, 1835 | July 5, 1867 | |
Henry Baldwin | 5,207 | January 18, 1830 | April 21, 1844 | |
John McLean | 11,406 | January 11, 1830 | April 4, 1861 | |
Robert Trimble | 801 | June 16, 1826 | August 25, 1828 | |
Smith Thompson | 7,413 | September 1, 1823 | December 18, 1843 | |
Joseph Story | 12,273 | February 3, 1812 | September 10, 1845 | |
Gabriel Duvall | 8,453 | November 23, 1811 | January 14, 1835 | |
Thomas Todd | 6,854 | May 4, 1807 | February 7, 1826 | |
Henry Brockholst Livingston | 5,901 | January 20, 1807 | March 18, 1823 | |
William Johnson | 11,046 | May 7, 1804 | August 4, 1834 | |
John Marshall | 12,570 | February 4, 1801 | July 6, 1835 | |
Alfred Moore | 1,375 | April 21, 1800 | January 26, 1804 | |
Bushrod Washington | 11,252 | February 4, 1799 | November 26, 1829 | |
Oliver Ellsworth | 1,742 | March 8, 1796 | December 15, 1800 | |
Samuel Chase | 5,613 | February 4, 1796 | June 19, 1811 | |
William Paterson | 4,929 | March 11, 1793 | September 9, 1806 | |
Thomas Johnson | 163 | August 6, 1792 | January 16, 1793 | |
James Iredell | 3,448 | May 12, 1790 | October 20, 1799 | |
John Rutledge | 563 | February 15, 1790 | March 5, 1791 | |
John Rutledge | 563 | July 1, 1795 | December 28, 1795 | |
John Blair | 2,091 | February 2, 1790 | October 25, 1795 | |
William Cushing | 7,527 | February 2, 1790 | September 13, 1810 | |
John Jay | 2,079 | October 19, 1789 | June 29, 1795 | |
James Wilson | 3,242 | October 5, 1789 | August 21, 1798 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment