EDIT: I've now created a much more intuitive version of this chart. View version IV for a non-updating x axis and version V for a updating x axis. So you can basically ignore this one :)
For a bit more background, you can read my mini-blog about it Brushable & interactive bar chart in d3.js
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This brushable horizontal bar chart is another version of the Brushable Horizontal Bar Chart - II where the x-axis now also updates on a brush change to always have the largest bar fill the entire width.
forked from nbremer's block: Brushable Horizontal Bar Chart - III
https://d3js.org/d3.v3.min.js