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