pie and bar chart data populate done