地图图表上的 AmCharts 动画线
AmCharts animated line on map chart
我想使用 amCharts 创建连接图。
我拿这个演示:https://www.amcharts.com/demos/animations-along-lines
但是,我想要一条不断增长的线而不是一个平面。可以实现吗?
var planeImage = plane.createChild(am4core.Sprite);
planeImage.scale = 0.08;
planeImage.horizontalCenter = "middle";
planeImage.verticalCenter = "middle";
planeImage.path = "m2,106h28l24,30h72l-44,-133h35l80,132h98c21,0 21,34 0,34l-98,0 -80,134h-35l43,-133h-71l-24,30h-28l15,-47";
planeImage.fill = chart.colors.getIndex(2).brighten(-0.2);
planeImage.strokeOpacity = 0;
问题可以关闭了。
我从文档中找到了解决方案:https://www.amcharts.com/docs/v4/tutorials/animating-map-lines-with-css/
我想使用 amCharts 创建连接图。
我拿这个演示:https://www.amcharts.com/demos/animations-along-lines
但是,我想要一条不断增长的线而不是一个平面。可以实现吗?
var planeImage = plane.createChild(am4core.Sprite);
planeImage.scale = 0.08;
planeImage.horizontalCenter = "middle";
planeImage.verticalCenter = "middle";
planeImage.path = "m2,106h28l24,30h72l-44,-133h35l80,132h98c21,0 21,34 0,34l-98,0 -80,134h-35l43,-133h-71l-24,30h-28l15,-47";
planeImage.fill = chart.colors.getIndex(2).brighten(-0.2);
planeImage.strokeOpacity = 0;
问题可以关闭了。 我从文档中找到了解决方案:https://www.amcharts.com/docs/v4/tutorials/animating-map-lines-with-css/