[Chartjs]-ChartJS pie chart with simple parsing options doesn't render, only works when set as bar/line chart

2πŸ‘

βœ…

At the moment you cant use object notation for doughnut/pie charts, there is an enchancement issue open currently in their repo for this: https://github.com/chartjs/Chart.js/issues/9440

So you will need to transform your object to the normal labels and data array first if you want to show your data as a pie/doughnut chart

Leave a comment