随笔分类 - D3
摘要:var arc_generator = d3.svg.arc() .innerRadius(width*3 / 6.5) .outerRadius(width*3 / 4) var angle_data = d3.layout.pie() .value(function (d) { return d
阅读全文
摘要:function deleteNode(d){ var deletelinks = links.select(function(x) { return x['source'].id==d.id||x['target'].id==d.id?this:null; }) deletelinks.remov
阅读全文
摘要:首先在<body>添加图片对象 <svg id="mySvg_ac" width="0" height="0" > <defs id="mdef"> <!-- 图片1 --> <pattern id="img_ac" x="0" y="0" height="128" width="128"> <im
阅读全文
摘要:<script type="text/javascript"> const width = 1200, height = 1000; const tooltip = d3.select('body') .append("div") .style("position", "absolute") .st
阅读全文