From 67572b70f070e297d6c99c7e8ba37bf7d4e821b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Bryx=C3=AD?= Date: Fri, 4 Oct 2024 15:52:24 +0200 Subject: [PATCH] docs: Remove global config reference (#487) --- README.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/README.md b/README.md index 768d651..f37537a 100644 --- a/README.md +++ b/README.md @@ -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.