Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

240
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!