parsed data into piechart