block by Golodhros 2af6e6e47935190936b1

TDD Bar Chart

Full Screen

This chart takes as a base the simple bar chart by Mike Bostock and refactors that example using the reusable API, making it responsive and configurable.

It also uses the Data Manager API from the Developing a D3.js Edge Book.

It includes tests and was conceived on a TDD basis for the talk Better D3 Charts with the Reusable API.

From the original Block:

This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:

index.html

data.tsv

dataManager.js

src.js

src.spec.js

style.css

test_runner.html