Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

241
Vistas
Javascript xlink:href local svg image

I'm having trouble rendering an svg image stored in my local directory via js. when I use a link to a website, the image is displayed correctly. Here is a link to the code of the image : http://jsfiddle.net/am8ZB/

But when I use a local image nothing is displayed.

My code :

 d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);

var g = svg.append("g");

g.append("svg:image")
.attr("xlink:href", "manaz/src/label/flower_blue.svg")
.attr("width", 200)
.attr("height", 200)
.attr("x", 228)
.attr("y",53);

Here is the link where I downloaded it : https://publicdomainvectors.org/fr/gratuitement-des-vecteurs/Image-vectorielle-fleur-bleue/1992.html

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda