Fixed issue with percentages not being available for pie chart legend. Closes #897.