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

137
Vistas
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 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