working pie chart on analytics