Fixed if condition for pie chart
Finish JARVIS-410