I am a beginner to d3 js. I have a div that contains a object tag having svg file.
I need to create circle with texts over that svg file and bind click functions over them using d3 js.
Thanx in advance. Below is my html code:
<div class="span8 canvasDiv">
<object data="img/floor.svg" type="image/svg+xml" id="floorCanvas"></object>
</div>
JS Code:
var svgContainer = d3.select("#floorCanvas");
var circle = svgContainer.append("circle")
.attr("cx", 30)
.attr("cy", 30)
.attr("r", 20);