Highcharts错误加载地图插件

时间:2015-06-14 17:58:41

标签: javascript jquery highcharts highmaps

  1. 加载jQuery
  2. 加载Highcharts 4.0.1
  3. 加载Highmaps 1.1.6(表示它与4.0.x兼容)
  4. 看到这个错误:

    Uncaught TypeError: HighchartsAdapter.addAnimSetter is not a function
    

    ===

    <html>
      <head>
        <script type='text/javascript' src='https://code.jquery.com/jquery-1.11.2.min.js'></script>
        <script type='text/javascript' src='https://code.highcharts.com/4.0.1/highcharts.js'></script>
        <script type='text/javascript' src='https://code.highcharts.com/maps/1.1.6/modules/map.js'></script>
      </head>
    </html>
    

    小提琴:http://jsfiddle.net/93ukkqoh/(请参阅javascript控制台中的错误)

    我错过了一些明显的东西吗?

1 个答案:

答案 0 :(得分:2)

按以下顺序使用以下库

 <script type='text/javascript' src='https://code.jquery.com/jquery-1.11.2.min.js'></script>

<script src="http://code.highcharts.com/highcharts.js"></script>

<script type='text/javascript' src='https://code.highcharts.com/maps/1.1.6/modules/map.js'></script>