Highmaps - 更改为 mapbubble

Highmaps - Change to mapbubble

我一直在尝试通过添加
将 Highmaps 图表更改为气泡 输入:'mapbubble',如下所示但失败 有什么办法吗?不知道哪里错了

series: [{
  type: 'mapbubble',
  data: data,

如果有人可以帮助我根据下面的代码做到这一点,我将不胜感激

Link 到 jsfiddle

   mapChart = Highcharts.mapChart('mapchart', {

        title: {
            text: 'Population history by country'
        },

        subtitle: {
            text: 'Source: <a href="http://data.worldbank.org/indicator/SP.POP.TOTL/countries/1W?display=default">The World Bank</a>'
        },

        mapNavigation: {
            enabled: true,
            buttonOptions: {
                verticalAlign: 'bottom'
            }
        },

        colorAxis: {
         //  type: 'logarithmic',
            endOnTick: false,
            startOnTick: false,
            min: 50000
        },

        tooltip: {
            footerFormat: '<span style="font-size: 10px">(Click for details)</span>'
        },

        series: [{
            data: data,
            mapData: mapData,
            joinBy: ['iso-a3', 'code3'],
            name: 'Current population',
            allowPointSelect: true,
            cursor: 'pointer',
            states: {
                select: {
                    color: '#a4edba',
                    borderColor: 'black',
                    dashStyle: 'shortdot'
                }
            }
        }]
    });
  1. point.value替换为point.z

    data.push({
      name: countries[code3].name,
      code3: code3,
      z: value,
      year: year
    });
    
  2. chart.map 属性设置为 mapData:

    chart: {
      map: mapData
    },
    
  3. 创建一个新系列作为气泡的背景层。

    series: [{
      name: 'Countries',
      color: '#E0E0E0',
      enableMouseTracking: false
    },
    
  4. 设置主系列类型为mapbubble

    {
      data: data,
      type: 'mapbubble',
      ...
    

实例:https://jsfiddle.net/xf4tkec1/