Today’s goal was to respond to events in d3.
My bible for this is Scott Murray’s fantastic book: “interactive Visualization on the Web”, particularly chapter 9 here. The goal was to make a box and click on something to make that box change color.
Nothing spectacular, but here it is! link It is pretty remarkable how easy d3 makes this.
Bonus points included making it happen more than once (bigger & smaller, loop through a color list) and figuring out the div IDs to respond differently to clicking on different parts of the text.
[edit] – and wow, responding to mouse events is so easy & awesome! link