Ian Johnson is the author of Tributary - an open source live-coding environment designed for prototyping data visualizations with D3. He also co-organizes the SF Bay Area d3 Meetup and makes educational D3 videos.
Data Visualization with D3
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.