add a new bar chart; fix d3 dependency