Pie-chart legends working properly now