Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda