pie and bar chart update