hello i have this code that places a marker and on mouse-over this marker is scaled out and then back to the 'original' scale
this.drawPerson = function () {
self.svg.append("path")
.attr("d", personPath)
.attr("transform", "translate(100,100)scale(0.1)")
.attr("class", "member")
.style("fill", "steelblue")
.on("mouseover", function(){
d3.select(this).transition()
.style("fill", "red")
.attr("transform", "translate(100,100)scale(0.2)")
})
.on("mouseout", function() {
d3.select(this).transition()
.style("fill", "steelblue")
.attr("transform", "translate(100,100)scale(0.1)")
});
}
the x, and y are the coordinates for the position on the canvas.
here is the exapmle: http://jsfiddle.net/SuTZR/8/
any advise much appreciated