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

Option to generate 3rd party chart types in vue2 #783

Closed
DRoet opened this issue Mar 28, 2022 · 0 comments · Fixed by #784
Closed

Option to generate 3rd party chart types in vue2 #783

DRoet opened this issue Mar 28, 2022 · 0 comments · Fixed by #784

Comments

@DRoet
Copy link

DRoet commented Mar 28, 2022

I assumed the code below would work for 3rd party charts, but generateChart() is not exposed inside vue-chartjs/legacy

Expected Behavior

<script>
import { generateChart } from 'vue-chartjs/legacy'
import { WordCloudController } from 'chartjs-chart-wordcloud'

components: {
   WordCloud: generateChart('WordCloud', 'wordCloud', WordCloudController),
},
</script>

Actual Behavior

import { generateChart } from 'vue-chartjs/legacy'
                 ^---- generateChart not exposed

Environment

  • vue.js version: 2.6.x
  • vue-chart.js version: 4.0.1
  • chart.js version: 3.x
  • npm version: 8.x
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

Successfully merging a pull request may close this issue.

1 participant