adding pie chart statistics