crappy d3 bar chart
js client library, try to re-edit for reuse