A variation of the DRY Bar Chart to cleanup one more repeated element, the height/y-scale coupling.
A variation of the example bar chart using a slightly more D.R.Y. style. The visual encoding is represented by two functions and their composition:
Inspired by Andrew Winterman’s post, Tooling for the Lazy Programmer: DRYing up D3.
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js