Skip to content

Global config seems to be ignored #482

@MichalBryxi

Description

@MichalBryxi

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:

// app/highcharts-configs/application.js

export default function (defaultOptions) {
  defaultOptions.credits.href = null;
  defaultOptions.credits.text = null;
  defaultOptions.credits.enabled = false;

  return defaultOptions;
}

I can see that it's loaded:

Screenshot 2024-09-04 at 11 11 22

But the Highchart(stock) does not honour credits.enabled = false (see the highcharts link in bottom right):

Screenshot 2024-09-04 at 11 11 33

If I just pass

    credits: {
      enabled: false,
    },

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions