Skip to content

Instantly share code, notes, and snippets.

@nacmonad
nacmonad / README.md
Last active Jan 8, 2016
d3longitudinalchoropleth
View README.md

A longitudinal choropleth implemented in d3 -- this one features total homocides per province and territory. It is not per capita homicides.

Please view in new window as there are html elements outside of the existing svg.

TODO: Trying to use CSS iframe { overflow:scroll !important } to enable vertical scrolling within the block viewer frame but not happening yet, any suggestions??

It can be improved by using an update() method for the data, rather than explicitly declaring vars for storing data for each year and using switch statements to cycle between.

@nacmonad
nacmonad / README.md
Last active Jan 8, 2016
D3 Force Layouts and ForeignObjects
View README.md

introductory fun with force layouts

check repo and DL for example with the image files... having issues getting github to serve the png's

@nacmonad
nacmonad / document.json
Last active Oct 8, 2015
D3 Choropleth map of Hamilton, ON.
View document.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nacmonad
nacmonad / index.html
Last active Dec 9, 2015
Simple D3 Clock using Arcs & arcTween transitions
View index.html
<style type="text/css">
svg {
background:#363636 ;
}
.second-tick{
stroke:chartreuse;
stroke-linecap:round;
stroke-width:2.5px;
You can’t perform that action at this time.