Simple D3 bar chart as a component