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".