adding categories and pie chart