Fix #834. The select_bar bug was due to the barPlot being implicitly made
into a global variable.
Merge pull request #840 from palantir/fix-select-bar

Fix #834. The select_bar bug was due to the barPlot being implicitly mad...