Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.node = this.d3Graph.append("g")
- .attr("class", "nodes")
- .selectAll("circle")
- .data(Nodes)
- .enter()
- .append("svg:image")
- .attr("xlink:href", 'https://seeklogo.com/images/T/twitter-2012-negative-logo-5C6C1F1521-seeklogo.com.png')
- .attr("height", 50)
- .attr("width", 50)
- .append("text")
- .attr("x", 20)
- .attr("y", 20)
- .attr("fill", "black")
- .text("test text");
- this.force.on('tick', this.tickActions);
- tickActions() {
- this.node
- .attr("transform", function(d) {
- return "translate(" + d.x + "," + d.y + ")";
- })
- this.force
- .restart()
- }
Add Comment
Please, Sign In to add comment