【发布时间】:2016-10-11 23:10:10
【问题描述】:
我正在使用 D3 创建包含 <image> svg 元素行的可视化。
如果图片文件不可用,谁能知道我如何上传替换图片?
var images= imageGroup.append('svg:image')
.attr("xlink:href",function(d,i){
//lines of code to process filename
return "/img/" + filename + ".jpg"
})
【问题讨论】: