chartjs-plugin-piechart-outlabels icon indicating copy to clipboard operation
chartjs-plugin-piechart-outlabels copied to clipboard

Plugin affects all pie and doughnut charts on the page

Open diegomagikal opened this issue 3 years ago • 0 comments

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.

diegomagikal avatar May 25 '21 18:05 diegomagikal