Bar chart - bars are now generated dinamically on the click of the button