-
Notifications
You must be signed in to change notification settings - Fork 86
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
Global config seems to be ignored #482
Comments
I think global config is tricky now that we are dynamically importing only the pieces you need. It means we don't have one giant global Highcharts to set options on and even when we do, it might point to a different type. |
If we'd go in non-breaking way, I would guess that just taking the
// app/highcharts-configs/application.js
export default function (defaultOptions) {
defaultOptions['StockChart'].credits.href = null;
defaultOptions['StockChart'].credits.text = null;
defaultOptions['StockChart'].credits.enabled = false;
return defaultOptions;
}
|
This issue relates to my confusion in this issue, but the problem remains unresolved: No matter what I do I can't set global config for highcharts.
I created a file:
I can see that it's loaded:
But the Highchart(stock) does not honour
credits.enabled = false
(see the highcharts link in bottom right):If I just pass
To the option of given chart, it works ok. Just not globally.
Maybe this stems from the addon calling Highcharts.setOptions() which might work only for HighCharts, but does not for HighStock?
The text was updated successfully, but these errors were encountered: