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

128
Visualizações
d3.js-version7 used scroll event when zooming with custom ratio case of offset problem

I have edited my question in 2021/11/8.

I have a custom scale ratio like [1, 7, 13, 19, 25, 31, 37, 43, 49, 55, 61];

I want to zoom the center of the chart with only the y-axis by scrolling, but the original function does not seem to be able to do this.

So I wrote a transition function to reach this function, but it always makes the data line go down and cannot zoom the center position.

Is there a way to solve the problem?

I just thought maybe I could set the moving position by getting the center position of the current view port, but I can't find how to get the position.

Here's my example, related to line "365".

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