make chartjs handle pie and doughnut