Draw histograms and pie charts