gave user ability to switch between bar chart and pie chart and generate line graph on click as well