Code for a D3 bar chart that reads data from a csv.  Can switch between stacked and grouped. Can change the time scale.  Can swap out displayed bars.