Skip to content

Instantly share code, notes, and snippets.

@lazarogamio
Last active February 23, 2017 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazarogamio/46eb927278b78a31542aca5d70b16420 to your computer and use it in GitHub Desktop.
Save lazarogamio/46eb927278b78a31542aca5d70b16420 to your computer and use it in GitHub Desktop.
Maryland's 3rd District, 1789-2017
license: mit
border: no
scrolling: no
height: 600
html, body {
font-family: sans-serif
}
#start {
display: block;
}
.ticker-sub, .ticker-year {
text-anchor: middle;
}
.ticker-year {
font-size: 75px;
}
.ticker-sub {
text-transform: uppercase;
font-size: 20px;
fill: #666;
}
.state-backdrop {
fill: none;
stroke: #999;
stroke-linejoin: round;
stroke-linecap: round;
}
.district {
transition: all .3s;
fill-opacity: 0.05;
fill: #667c84;
}
.district.current {
fill: #a00;
fill-opacity: 1;
}
<html>
<head>
<link href="base.css" rel="stylesheet" />
</head>
<body>
<svg id="map"></svg>
<button id="start">Start</button>
<script src="maryland.js" type="text/javascript"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="md-chart.js" type="text/javascript"></script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment