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
Use chartjs-plugin-datalabels with vue-chartjs #10
Comments
I'm not familiar with Vue.js or vue-chartjs, did that thread help? You will probably need <!-- index.html -->
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@0.1.0"></script> It may be better to ask this question on the vue-chartjs project and link to that ticket. |
@HenriSup did you progress on that integration? |
Yes sorry for the silence it was actually pretty simple just installed it via npm and imported it the way you import component in vue.js and it was on all my charts, just had to add some parameters via the data.plugin.etc.... but I'm not at work this week I'm only telling this by memory. Should I close the topic or would it be better if I add more precision and a clear way to explain how I did when I'll be back at my workplace? |
Sounds great! It's a good idea to document more precisely the way you get it working, that could help other Vue.js users who want to use this plugin. |
Ok, sorry for the wait i finally managed to get some time to explain how i did it (it's actually pretty simple)
-import it as a component in your vue: import ChartJsPluginDataLabels from 'chartjs-plugin-datalabels';
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
},
components: {
ChartJsPluginDataLabels,
},
}) and there it is, you should have datalabels on your vue-chartjs :) |
Thanks @HenriSup for the follow up! |
I've added it to |
Hi, i am actually trying to add this plugin to a vue.js project using vue-chartjs and i have no idea how to do it. I installed chartjs-plugin-datalabels using node but then what should i do?
The text was updated successfully, but these errors were encountered: