Added the init function of the Bar chart