-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
How to access Chart.defaults.global #234
Comments
The If you want to overwrite the global settings, just import Chartjs before. import Chart from 'chart.js'
Chart.defaults.global.defaultFontColor = 'red'; |
So this.$chart._chart is instance of vue chart.js ? |
@urvi2429 No. Like I said and mentioned in the docs http://vue-chartjs.org/#/home?id=chart-js-object You can access the chart instance over |
@apertureless Hi! I'm trying something and I want to know if it is possible. I want to change my doughnut chart when the user make a click over it i.e, I want to show the detail about some region, is it possible? |
Hello Jakub.
First of all, thanks a lot for such handy package. I appreciate your work a lot!
I easily integrated it to my project, but unfortunately faced one problem (didn't find an answer in docs/created issues).
I want to set up global settings that can change all of the fonts on the chart (http://www.chartjs.org/docs/latest/general/fonts.html).
I tried to do it with Chart.js object (http://vue-chartjs.org/#/home?id=chart-js-object), but didn't success.
Could you please clarify if it's possible to do using your package?
Many thanks in advance.
The text was updated successfully, but these errors were encountered: