You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,7 @@ The format, along with its default values, is as follows (using the recommended
114
114
"highcharts": {
115
115
"version": "latest",
116
116
"cdnURL": "https://code.highcharts.com/",
117
+
"useNpm": false,
117
118
"coreScripts": [
118
119
"highcharts",
119
120
"highcharts-more",
@@ -307,6 +308,7 @@ These variables are set in your environment and take precedence over options fro
307
308
308
309
-`HIGHCHARTS_VERSION`: Highcharts version to use (defaults to `latest`).
309
310
-`HIGHCHARTS_CDN_URL`: Highcharts CDN URL of scripts to be used (defaults to `https://code.highcharts.com/`).
311
+
-`HIGHCHARTS_USE_NPM`: The flag that determines whether to use Highcharts scripts from CDN or NPM package (defaults to `false`).
310
312
-`HIGHCHARTS_CORE_SCRIPTS`: Highcharts core scripts to fetch (defaults to ``).
311
313
-`HIGHCHARTS_MODULE_SCRIPTS`: Highcharts module scripts to fetch (defaults to ``).
312
314
-`HIGHCHARTS_INDICATOR_SCRIPTS`: Highcharts indicator scripts to fetch (defaults to ``).
@@ -412,6 +414,7 @@ To supply command line arguments, add them as flags when running the application
412
414
413
415
_Available options:_
414
416
417
+
-`--useNpm`: The flag that determines whether to use Highcharts scripts from CDN or NPM package (defaults to `false`).
415
418
-`--infile`: The input file should include a name and a type (**.json** or **.svg**) and must be a correctly formatted JSON or SVG file (defaults to `false`).
416
419
-`--instr`: An input in a form of a stringified JSON or SVG file. Overrides the `--infile` option (defaults to `false`).
417
420
-`--options`: An alias for the `--instr` option (defaults to `false`).
This is useful to e.g. upgrade to the latest HC version without downtime.
564
567
568
+
IMPORTANT NOTE:
569
+
570
+
This is not possible when using the Highcharts dependency package directly (by setting the `useNpm` to **true**).
571
+
565
572
# Node.js Module
566
573
567
574
Finally, the Export Server can also be used as a Node.js module to simplify integrations:
@@ -709,6 +716,10 @@ Samples and tests for every mentioned export method can be found in the `./sampl
709
716
710
717
# Tips, Tricks & Notes
711
718
719
+
## Note About Highcharts Version
720
+
721
+
When `useNpm` is set to **true**, Highcharts uses the version specified in `package.json`. The `version` option or switching the Highcharts version on the server at runtime will have no effect. To change the version of local Highcharts scripts, update `package.json` directly.
722
+
712
723
## Note about Deprecated Options
713
724
714
725
At some point during the transition process from the `PhantomJS` solution, certain options were deprecated. Here is a list of options that no longer work with the server based on `Puppeteer`:
0 commit comments