我想更改任何图表气泡图数据。当我更改气泡数据集时,添加新气泡。但不删除地图中的旧气泡。如何将新的气泡数据集设置到地图。这是我的代码示例。我想用旧气泡替换新气泡数据。
/*-------------------------------------------------------*/
var dataSet = anychart.data.set([
{
name: "Colombo",
lat: 6.7768798,
long: 79.9562153,
'size': 10,
desc: "We can even have VERY GOOD waves but the main problem is the very low frequency...."
},
{
name: "Kandy",
lat: 7.302461,
long: 80.6409725,
'size': 4,
desc: "Kandy Sales Updated."
}
]);
var dataSet2 = anychart.data.set([
{
name: "devndara",
lat: 8.277899131156953,
long: 80.57335996768477,
"size": 10,
desc: "New Location Added"
}
]);
/*------------------------------------------------------------------*/
function changebbl() {
map.bubble(dataSet2);
}
<div id="lkmapcontainer"></div>