Hi!
I've found a small bug in here:
https://github.com/dandehavilland/mg-line-brushing/blob/master/src/js/hooks.js#L199
I think multiplying by 0.9 and 1.1 does not work with negative values, a part of the graph is cut out of the picture.
How about computing the difference between yBounds[1] and yBounds[0] and adding/subtracting 0.1 times that?
Hi! I've found a small bug in here: https://github.com/dandehavilland/mg-line-brushing/blob/master/src/js/hooks.js#L199 I think multiplying by 0.9 and 1.1 does not work with negative values, a part of the graph is cut out of the picture. How about computing the difference between yBounds[1] and yBounds[0] and adding/subtracting 0.1 times that?