我想在C3.js piechart切片内添加一个图标。我想要的是:

发布于 2017-10-28 02:10:32
这应该会使用fontawesome添加图标
d3.selectAll(".c3-chart-arcs text").each(function(d) {
// your update code here as it was in your example
d3.select(this).append('text')
.attr('font-family', 'FontAwesome')
.attr('font-size', function(d) { return '2em'} )
.text(function(d) { return '\uf118' });
});https://stackoverflow.com/questions/46973154
复制相似问题