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

Plugin affects all pie and doughnut charts on the page #22

Open
diegomagikal opened this issue May 25, 2021 · 0 comments
Open

Plugin affects all pie and doughnut charts on the page #22

diegomagikal opened this issue May 25, 2021 · 0 comments

Comments

@diegomagikal
Copy link

Hi,

This plugin works as promised, thanks. The problem is as follows:

I have several pages with a lot of Pie and Doughnut chart components in my SPA, built with Quasar Framework. All components extend vue-chartjs like this:

import { Doughnut } from 'vue-chartjs'
import ChartDataLabels from 'chartjs-plugin-datalabels'

export default {
  extends: Doughnut,
...

When I import your lib inside a single component with

import outlabeledPie from 'chartjs-plugin-piechart-outlabels'

export default {
  extends: Doughnut,

the plugin adds outlabels in all components (Pie and Doughnut).

So, how can I change this behavior? Thanks in advance.

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