How to calculate zooming scale with y position

31 views
Skip to first unread message

湯詠筌

unread,
Nov 2, 2021, 11:55:01 PM11/2/21
to d3-js
I have a custom ratio array, like [1, 7, 13, 19, 25, 31, 37, 43, 49, 55, 61].
When I used wheel to zooming  in line chart, how can I get the  current offset of y.

Best Regards,

Tom

湯詠筌

unread,
Nov 3, 2021, 2:17:33 AM11/3/21
to d3-js
https://codepen.io/Yung6/pen/ZEJBKPj 
It's my example used version 7
湯詠筌 在 2021年11月3日 星期三上午11:55:01 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages