Piechart gets the right data