Skip to content
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

Globally register plugins #38

Open
IronCrystal opened this issue Apr 11, 2024 · 0 comments
Open

Globally register plugins #38

IronCrystal opened this issue Apr 11, 2024 · 0 comments

Comments

@IronCrystal
Copy link

I am attempting to use coreui-vue-chartjs with custom plugins, such as the annotation plugin https://github.com/chartjs/chartjs-plugin-annotation

This plugin does not support inline plugin registration and must be globally registered.

I'm not sure how to access the instance of ChartJS that CChart component is using.

This does not seem to be working on my end:

import Chart  from 'chart.js/auto';
import annotationPlugin from 'chartjs-plugin-annotation';

Chart.register(annotationPlugin);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant