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

Seems like there is no way to use chartjs-gauge library with vue-chartjs. Is there a workaround? #1081

Closed
1 task
kostadin-t opened this issue Jan 25, 2024 · 2 comments

Comments

@kostadin-t
Copy link

Would you like to work on this feature?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

What problem are you trying to solve?

Cannot integrate chartjs-gauge with vue-chartjs

Describe the solution you'd like

It would be nice to be able to use chartjs-gauge the same way as the other chartjs components.

Here is the stackoverflow question: https://stackoverflow.com/questions/77880634/how-to-use-chartjs-gauge-with-vue-chartjs

Describe alternatives you've considered

No response

Documentation, Adoption, Migration Strategy

No response

@apertureless
Copy link
Owner

Well chartjs-gauge seems to be deprecated and not maintained anymore. As the last commit is 3 years ago.
So it does not support chartjs v4 it seems. haiiaaa/chartjs-gauge#40

So I would say it wont work.
However as it exports itself https://github.com/haiiaaa/chartjs-gauge/blob/master/src/index.js#L16

You should be able to just import it.

import Gauge from 'chartjs-gauge`

And it should be registered. But like I said I doubt that it will work the the latest vue-chartjs version. As it does not seem to support the current chart.js version

@kostadin-t
Copy link
Author

Thank you for the explanation.

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

2 participants