Skip to content Skip to sidebar Skip to footer

D3 Zoom Resets Scales Selected Via Brushing.

I've made zooming and brushing working together. The only problem is, when I've set the particular period on X axis via brushing and then trying to use zoom (on mouse drag or mouse

Solution 1:

Solved the problem by adding the following lines on brush:

zoom.x(xScale)
zoom.translate()  

Working example is here.

Post a Comment for "D3 Zoom Resets Scales Selected Via Brushing."