-
Notifications
You must be signed in to change notification settings - Fork 21
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
Problem with threshold plugin #20
Comments
Hi, It's complicated, it seems that react-chartist has the same problems. |
I found a quick Vue.use(VueChartist)
Chartist = Vue.chartist
require('chartist-plugin-pointlabels')
Vue.chartist = Chartist
...
options: {
plugins: [
Vue.chartist.plugins.ctPointLabels({
textAnchor: 'middle'
})
]
}, I have managed to run chartist-plugin-pointlabels but not chartist-plugin-threshold 😕 |
I think I've tried this with no success. Let me test again and I'll let you know! Thank you @Yopadd! |
Vue.chartist assignment isnt required imo. You just need to define Chartist on the window object before importing the plugin You can do this in your main/index.js
If you want to use it in a subcomponent, you can import Chartist
|
It doesn't work for me with threshold plugin. |
Hi!
I'm using chartist through vue-chartist. The point is that I want to use the threshold plugin, but if I install it and call into a chart, it said to me
Chartist is not defined
, which is correct, because chartist is inVue.chartist
How can I set
Chartist
value called into the plugin to point toVue-chartist
without modify the threshold plugin?The text was updated successfully, but these errors were encountered: