3Squared / ForgeUI

ForgeUI
https://3squared.github.io/ForgeUI/#
7 stars 1 forks source link

"pie" is not a registered controller #35

Open JakeMinor opened 1 year ago

JakeMinor commented 1 year ago

When trying to use ForgeChart, the following error occurs: '"pie" is not a registered controller.'

Polymeta commented 1 year ago

Seems like this has to do with chart.js using treeshaking and us needing to explicitly register controllers we use, see here https://www.chartjs.org/docs/latest/getting-started/usage.html#tree-shaking

Not sure how we could address this, ideally we don't want to pull in all controllers etc., but we can't predict what is going to get used (or can we?). So maybe we have to leave this to the applications to configure/register controllers they need.

There is also a vue-chartjs integration package, maybe worth checking this out and see if it would help this issue?