ensuring pie chart values are integers