未捕获的TypeError:无法设置未定义的属性'custom / world'

时间:2015-12-05 14:25:28

标签: highcharts highmaps

我收到错误,“Uncaught TypeError:无法设置未定义的属性'custom / world'”,在更改我的代码后

<script src="https://code.highcharts.com/maps/highmaps.js"></script>
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/highmaps.js"></script>
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>

我认为与custom / world,js同时使用highcharts和highmaps存在一些冲突。有谁知道如何解决这个问题?

提前致谢。

1 个答案:

答案 0 :(得分:0)

确保你的highcharts.js版本等于highmaps.js版本,建议使用最新版本。