小编Mar*_*ius的帖子

D3.JS为每个国家添加课程

我正在使用它进行简单的可视化.

http://bl.ocks.org/KoGor/5994804

我想在每个国家的路径上添加他的名字.我试图遍布各国,但我不知道与SVG联系.

var world = svg.selectAll("path.land")
            .data(countries)
            .enter().append("path")
            .attr("class", "land")
            .attr("d", path)
Run Code Online (Sandbox Code Playgroud)

javascript svg d3.js

4
推荐指数
1
解决办法
6577
查看次数

标签 统计

d3.js ×1

javascript ×1

svg ×1