transitions & update in d3

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

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s