Pie Chart Reporting Modual

This should help you out. As an extra bit of information, the underlying dataset in a report query would be

data['keyname'].getCoreResults()