fix pie chart logic
Merge pull request #44 from just-boris/features

Fix pie chart logic