This course has been updated! We now recommend you take the Introduction to Data Visualization with d3.js v4 course.

Check out a free preview of the full Interactive Data Visualization with D3.js course:
The "transition() and DOM events" Lesson is part of the full, Interactive Data Visualization with D3.js course featured in this preview video. Here's what you'd learn in this lesson:

Transitions can be added to any selection by chaining the transition() method. Methods like delay() and duration() can also be added to adjust the transition. Using the on() method allows you to handle events like the click event. The handler is passed a reference to the individual element and it's dataset.

Get Unlimited Access Now