This is a bar chart that initially displays a portion of the data in the csv file. It has a legend with one rectangle for each bar in the chart. When the rectangle is clicked, depending on the current state, the bar will be added or removed from the chart, by way of transitions.
https://d3js.org/d3.v3.min.js