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

127
Views
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
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!