This is exactly the same as version IV of the brushable horizontal bar chart, but this one has a x scale that updates to fit the largest visible bar in the available width.
For a bit more background, you can read my mini-blog about it Brushable & interactive bar chart in d3.js
forked from nbremer's block: Brushable Horizontal Bar Chart - V
https://d3js.org/d3.v3.min.js