Thanks for stopping by. Quick question:
I have a simple network diagram here . And I have assigned mouse over effects on the circle. So when You hover it the circle is 'highlighted' by increasing its radius, multiplying it by 3.
function mouseoverC() {
d3.select(this).select("circle").transition()
.duration(750)
.attr("r", d3.select(this).select("circle").attr("r") * 3);
}
function mouseoutC() {
d3.select(this).select("circle").transition()
.duration(750)
.attr("r", d3.select(this).select("circle").attr("r") / 3);
}
And when the mouse is out/away it divides it to bring it back to its original radius. The reason for doing this way is because the circle radius wont be the same for all, it will be different. Now it works if You do it neatly, but if one doesn't wait for animation to finish and takes the mouse out and quickly puts it back on again the circle increases continuously, of course vice versa if you quickly move your mouse over when its being brought back to its original state it gets supper small.
What would be the best way to troubleshoot this problem ?