I've integrated HighCharts into a website using vanilla JS, utilizing webpack/npm for module loading and importing. While Spline and Column charts are working perfectly fine, I encountered an issue when trying to add the standard Gauge chart (seen here), resulting in the following error:
Uncaught Error: Highcharts error #17: www.highcharts.com/errors/17/?missingModuleFor=gauge
Upon searching the node_modules/highcarts/modules
folder, the gauge module seemed to be missing.
This is how I'm currently importing HighCharts:
var Highcharts = require('highcharts');
And here's how I'm calling the chart:
$('#speedometerContainer').highcharts({
chart: {
type: 'gauge',
plotBackgroundColor: null,
plotBackgroundImage: null,
plotBorderWidth: 0,
plotShadow: false
},...
While this setup works flawlessly for column and spline chart types.