Skip to content

Instantly share code, notes, and snippets.

nacmonad /
Last active Jan 8, 2016

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 /
Last active Jan 8, 2016
D3 Force Layouts and ForeignObjects

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 / 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 / index.html
Last active Dec 9, 2015
Simple D3 Clock using Arcs & arcTween transitions
View index.html
<style type="text/css">
svg {
background:#363636 ;
You can’t perform that action at this time.