score:1

Hey i have updated your fiddle with some code check out

FIDDLE

 d3.select("#arrow").attr("viewBox", "0 0 10 10")
                            .attr("refX", 27)
                            .attr("refX", function (d) { console.log( d )
                            $('circle').each(function(){
                            if($(this).attr('r')>5)
                            {
                           return d3.select(this).attr("refY",5);
                            }
                            else
                            {
                            //return some value 
                            }
                            });

                                                       })
                            .attr("refY", 5)
                            .attr("markerUnits", "strokeWidth")
                            .attr("markerWidth", 8)
                            .attr("markerHeight", 6)
                            .attr("orient", "auto")
                            .style("stroke", "#ccc")
                            .append("svg:path")
                            .attr("d", "M 0 0 L 10 5 L 0 10 z");

Related Query

More Query from same tag