-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use chartjs-plugin-datalabels #6
Comments
I fixed my issue. (just register datalabels plugin LOCALLY per chart)
ChartDataLabels plugin was registered globally in another chart that I had. instead I register locally and that fixed my issue. Docs basically I just had to remove this line in all my chart definitions
instead I just need it the ChartDataLabels in my plugins object:
|
Here are the steps that worked for me:
Here is the modified working example from the repo.
Diff for just the changes.
|
I am trying to add the chartjs-plugin-datalabels plugin to my charts and I think I've figured out how to add it.
I've created a minimal case here.
The problem is that I get this error:
I did some research and found this but I can't figure out how to implement it. There are also suggestions of downgrading to a 2.7.x version of chartjs but I think I'd have to rebuild coreui/vue-chartjs to even attempt that.
Any suggestions?
The text was updated successfully, but these errors were encountered: