2014-12-10 83 views
0

我一直无法让我的地图显示任何数据;它只是呈现空白,并在控制台中有一个错误“Uncaught TypeError:无法读取未定义的属性长度”。我相信我使用的Highstock和Highmaps版本是兼容的,所以我不认为这是问题,但我可能是错的。Highstock + Highmaps无法渲染

Click here for the fiddle

JS(geo_data与AJAX正在取出)

$('#map').highcharts('Map', { 
    title: { 
     text: 'Installs Map' 
    }, 
    colorAxis: { 
     min: 0 
    }, 
    series: [{ 
     data: geo_data, 
     mapData: Highcharts.maps['custom/world'], 
     joinBy: ['hc-key', 'country_id'], 
     name: 'Installs', 
     states: { 
      hover: { 
       color: '#BADA55' 
      } 
     } 
    }], 
    credits: { 
     enabled: false 
    } 
}); 

回答