uPlot icon indicating copy to clipboard operation
uPlot copied to clipboard

Wrong zoomed range on Y axis after hiding/showing curve

Open gerhat opened this issue 3 years ago • 0 comments

I wish the zoomed range on Y axis to be maintained when the curve's visibility is toggled.

The following example demonstrates the issue. https://jsfiddle.net/20sk78Le/13/

If you zoom like the attached image and then hide/show the curve you will notice that the Y axis range is not maintained, while works fine for X axis. Screenshot 2022-09-29 at 17 44 59

The console.log('Y min:', min, 'max:', max); does not get called when zooming.

gerhat avatar Sep 29 '22 14:09 gerhat