高图地图: mapbubble为同一国家的气泡系列设置自定义x,y坐标。

问题描述 投票:0回答:1

I am working ona highchart mapbubble project, where I am plotting 2 different series with data for same countries as in the image below.The problem is the bubbles for both are overlapping on eachother as in the marked section.I tried changing the x,y position values for one series but its not working.Is there any particular property of mapbubble will be helpful in achieving this.Please help!!!I am using angular 6 and highcharts 6.

先谢谢你。

enter image description here

angular typescript highcharts
1个回答
0
投票

您可以通过以下方法设置重新定位气泡 attr 方法,例如。

events: {
  load: function() {
    var point = this.series[2].points[0];

    point.graphic.attr({
      translateX: 20
    });
  }
}

现场演示。 https:/jsfiddle.netBlackLabelfobekgrx。

API参考。

https:/api.highcharts.comhighmapschart.event.load。

https:/api.highcharts.comclass-referenceHighcharts.SVGElement#attr。

© www.soinside.com 2019 - 2024. All rights reserved.