I’m using Highcharts in an Aurelia-based application and for the standard graphs it works like a charm. However, when I try to use the boxplot I get an error as described here
The requested series type does not exist
This error happens when setting
series.typeto a series type that isn’t defined in Highcharts. A typical reason may be that the module or extension where the series type is defined isn’t included.
For example in order to create an
highcharts-more.jsfile must be loaded.
The file highcharts-more.js is present in node_modules/highcharts together with a highcharts-more.d file and a highcharts-more.js.map file. According to various other forums like this the correct way to include said file is to import it like so:
import * as Highcharts from 'highcharts'; import HighchartsMore from 'highcharts/highcharts-more';
and then use it as a funtion like so:
If I do this, I get the following (run-time) error:
TypeError: highcharts_more_1.default is not a function but hovering over HighchartsMore (in e.g. VS Code) clearly states that it is indeed a function.
It’s been a long time since I have done any front-end work so I’m completely at loss here. Any help would be highly appreciated.