pie chart working with right values