Dynamicly render chart on button press
Refactor BarChart render to extract additional methods