implemented bar charts and pie charts