使用以下模板即可:
using the following template:
vis.select(".需要改變的文字的類") // the class the text to be changed belongs to
.transition()
.style("opacity", 0)
.duration(500)
.transition()
.duration(500)
.style("opacity", 1)
.text("最終需要變成的文字"); // the final text to be
最終效果如下:
Showcase:

ezgif-2-d46559584957.gif
如果不動請點原圖