Refactor bar chart

Structure according to [Towards Reusable
Charts](http://bost.ocks.org/mike/chart/)
Refactor chord diagram

Structure according to [Towards Reusable
Charts](http://bost.ocks.org/mike/chart/)