d3.chart is a framework for building reusable charts with d3.js.

D3 is by far the most common visualization library, and yet it does not provide any guidelines for how one creates reusable charts (except for Towards Reusable Charts by Mike Bostock.)

What does it mean to create reusable charts? A reusable chart is:

  • repeatable - can be instantiated multiple times for different data on the same page
  • configurable - can be customized during runtime through a consistent API
  • extensible - new charts can be defined on top of the existing chart
  • composable - charts can be combined to form new chart types

d3.chart is a small framework that allows one to define reusable charts that follow the above criteria using d3.js.

Follow along for releases & announcements at @themisoproject

You can edit the code in this block and rerun it.