-
Notifications
You must be signed in to change notification settings - Fork 136
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
Set global options and override defaults #105
Comments
Can you try setting the global Apex.xaxis = {
labels: {
style: {
fontFamily: 'Montserrat'
}
}
} This would override the default settings for the x-axis. |
@Diferno, any luck with @junedchhipa's suggestion? @junedchhipa, are you suggesting that |
Vue.use(VueApexCharts)
window.Apex.xaxis = { ... } After this, when you use |
Oooohhhh! Thank you very much for this insight, @junedchhipa! This will be beneficial for app light/dark theming! |
@junedchhipa, |
@sajaddp options = {
chart: {
fontFamily: 'Courier New', Courier, monospace
}
} |
How can we do it for ng-apexcharts? window.Apex has no data. |
I know this ticket is closed and a bit old - but it was one of the first posts i found, so posting it here in case anyone else runs into this and needs help. For anyone using ng-apexcharts, doing global options is simply...
|
Hi!
I'm trying to override the default options of the charts (to set the fontfamily for all the legends, axis, etc...) but can't find the correct way to do so.
I have my plugin registered as:
And have tryed to override like:
And even trying to set the defaults as I do with axios through
VueApexCharts.props.options
Any tips?
Thx in advance!
The text was updated successfully, but these errors were encountered: