我设法使用此添加自定义标记图像:
pointSeries.bullets.push(function() {
return am5.Bullet.new(root, {
sprite: am5.Picture.new(root, {
templateField: "pictureSettings"
})
})
})
pointSeries.data.setAll([{
geometry: { type: "Point", coordinates: [20.703790, 40.416775] },
pictureSettings: {
src: "/validators/example0.png",
width: 50,
height: 50,
centerX: am5.p50,
centerY: am5.p50
}
}])
但我找不到一种方法使图像圆润为圆形。我尝试了“半径”属性,但它似乎不起作用。有什么想法吗?