Check out a free preview of the full Interactive Data Visualization with D3.js course:
The "Making a Chart Reusable" 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:
While moving the table to an individual component, Ian discusses the process of making a completely reusable chart. The chart's constructor function returns a reference to it to enable chaining.