Fixed pie chart bug by generating special JSON for it