microsoft / powercat-code-components

The Power CAT code components are a set of Power Apps component framework (PCF) controls that can be used to enhance power apps.
MIT License
130 stars 53 forks source link

Latest Donut Chart control fails to initialize #347

Open dnnbuddy opened 1 month ago

dnnbuddy commented 1 month ago

After adding a donut chart to the Canvas App screen it shows an "Error loading control" message link. Even though we have done data binding it doesn't function at all. Same error is shown.

Ramakrishnan24689 commented 1 month ago

@dnnbuddy, I would suggest to cross check the data binding collection that you are passing to the Donutchart. DonutChartCollection = Table( { ItemLegend: "Leaders", ItemValue: 20 }, { ItemLegend: "Team", ItemValue: 36 }, { ItemLegend: "Other", ItemValue: 54 } );

An example on how an item collection for a Donutchart should look like

image

dnnbuddy commented 1 month ago

Just after adding the control to the canvas app, it shows this message. It doesn't disappear even after binding data to the control. But other charts like horizontal bar chart works without any issue.

image

image

image

dnnbuddy commented 1 month ago

This is the debug error message.

image