some (ugly) data transformation
add simple D3 bar chart