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

106
Views
Appending svg solved the issue

In my d3 plot, this is the code and the rendered plot.

enter image description here

enter image description here

As you can see the lines go into the y axis. I was looking for a solution and by chance I appended an svg making the code look like this:

enter image description here

enter image description here

Now the lines are not overlapping the y axis. Why is that exactly?

Note: I changed the width of the appended svg but still the box fits perfectly.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your paths start at an x position of -25.334... rather than 0, so if translate them horizontally by 30, they will start at 4.666..., which overlaps with your axis. If you put them inside that inner svg element, they will get clipped at the bounds of the svg element and will start at 30 (after translation).

You can disable the clipping by setting an overflow attribute: <svg width="1096" height="160" overflow="visible">.

about 4 years ago · Juan Pablo Isaza Report
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!