Skip to content

Commit

Permalink
docs: Remove global config reference (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalBryxi authored Oct 4, 2024
1 parent f720f3e commit 67572b7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,6 @@ Check out more chart examples in the [test-app/app/components](test-app/app/comp

We now use dynamic imports to import the Highcharts packages you need based on the `mode` argument passed.

### Global Highcharts Config Options

Ember-highcharts provides its own set of default configurations in `addon/utils/option-loader.js`.
At runtime you can optionally configure custom styles by providing a `app/highcharts-configs/application.js` file.
This file should provide a hook that returns the final configuration.

```js
// app/highcharts-configs/application.js

export default function (defaultOptions) {
defaultOptions.credits.href = 'http://www.my-great-chart.com';
defaultOptions.credits.text = 'great charts made cheap';
defaultOptions.credits.enabled = true;

return defaultOptions;
}
```

### Generating Chart Components

Ember-highcharts also provides blueprints to easily create sub-classes of the default high-charts component.
Expand Down

0 comments on commit 67572b7

Please sign in to comment.