Pie chart is created using data from firebase