Integrate Bar Chart
Refactor pie and bar graph code