pie chart initial working