在Parallels中运行MacOS 10.13.5和Windows 10。从https://www.highcharts.com/maps/demo/color-axis加载Highcharts样本...地图背景为灰色,并且仅当我将鼠标悬停在其上时,这些状态才会填充。
在MacOS和Windows中都会发生这种情况。屏幕截图来自Highcharts网站。
编辑每个注释后,我将其编辑为如下所示(因为我同时显示了来自同一模块的图表和地图):
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.1.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
<!-- USE MASTER BRANCH OF HIGHCHARTS MAPPING AND NOT RELEASE VERSION **** TEMP *** https://stackoverflow.com/questions/51051239/highcharts-maps-even-samples-dont-work
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js"></script>
-->
<!--
<script src="http://code.highcharts.com/maps/modules/map.js"></script>
<script src="http://code.highcharts.com/maps/modules/data.js"></script>
-->
<script src="https://github.highcharts.com/master/maps/highmaps.js"></script>
<script src="https://github.highcharts.com/master/maps/modules/data.js"></script>
<script src="https://github.highcharts.com/master/maps/modules/exporting.js"></script>
<script src="https://github.highcharts.com/master/maps/modules/offline-exporting.js"></script>
<script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
但是我收到错误16。我认为我应该从github中提取所有库,但是看起来有些名称也已更改?
答案 0 :(得分:1)
似乎该错误已在Highcharts的主分支上已修复:
<script src="https://github.highcharts.com/master/maps/highmaps.js"></script>
<script src="https://github.highcharts.com/master/maps/modules/data.js"></script>
<script src="https://github.highcharts.com/master/maps/modules/exporting.js"></script>
<script src="https://github.highcharts.com/master/maps/modules/offline-exporting.js">
实时演示: https://jsfiddle.net/BlackLabel/teazgj5r/
修复将包含在下一版的Highmaps中。