Skip to content

Instantly share code, notes, and snippets.

0x84E221f131E17bBEdF8EB305f9BF73E6fB7818F8
0x00454cB78098db8a58B0575a9560c16ef859CD58
0x02C52cEeE9671b99152DfF00172a53759D8B081A
0x07cd5d02Ce472766bbe08Aaa333aa23B35987c9F
@nacmonad
nacmonad / README.md
Last active January 8, 2016 20:34
d3longitudinalchoropleth

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 January 8, 2016 19:18
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
nacmonad / index.html
Last active December 9, 2015 23:24
Simple D3 Clock using Arcs & arcTween transitions
<style type="text/css">
svg {
background:#363636 ;
}
.second-tick{
stroke:chartreuse;
stroke-linecap:round;
stroke-width:2.5px;
@nacmonad
nacmonad / document.json
Last active October 8, 2015 04:45
D3 Choropleth map of Hamilton, ON.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.