score:2

Accepted answer

Finally, I have solved the problem by merging all Highcharts files I needed to draw my Bubble map chart, as suggested by @PawełFus, and enclosed the code with a condition on Highcharts variable :

if (typeof Highcharts == 'undefined') {

/* Optimized merge files containing both highstock.js, highcharts-more.js and map.js */

}

Then I use this file for all Highcharts charts I want to build.

That works great. Thanks all, and particularly @PawełFus.

score:2

See my comment on this question. You need to only load the "base" highstock.js and then any other modules you want to load after that:

<script src="code.highcharts.com/stock/highstock.js"></script>
<script src="code.highcharts.com/stock/modules/map.js"></script>
<script src="code.highcharts.com/stock/modules/ANOTHERMODULEYOUNEED.js"></script>

Depending on what you need you could possibly just load highmaps.js as it also contains a bunch of other chart types.


Related Query

More Query from same tag