d3fc

d3 synchronizing 2 separate zoom behaviors

懵懂的女人 提交于 2021-02-07 04:45:08
问题 I have the following d3/d3fc chart https://codepen.io/parliament718/pen/BaNQPXx The chart has a zoom behavior for the main area and a separate zoom behavior for the y-axis. The y-axis can be dragged to rescale. The problem I'm having trouble solving is that after dragging the y-axis to rescale and then subsequently panning the chart, there is a "jump" in the chart. Obviously the 2 zoom behaviors have a disconnect and need to be synchronized but I'm racking my brain trying to fix this. const