Fixing piechart and adding labels and legends