Tengo una imagen SVG y quiero adjuntar círculos junto a las rutas con id attach .
Aquí está mi código:
const svg = d3.select('#svgImage').attr('width', 500).attr('height', 500) svg .select('#attach') .append('svg:circle') .attr('cx', 100) .attr('cy', 100) .attr('r', 500) .style('fill', '#69b3a2') .attr('stroke', 'black') .attr('stroke-width', 2)Problema: el círculo se agrega como elemento secundario de la ruta y, si lo agrego manualmente junto a la ruta, se muestra al final de la imagen SVG.