Code for D3 tutorial in SIGMIS