chart-fx
chart-fx copied to clipboard
Zoom plugin does not appear to correctly scale the y-axis for contour datasets
Describe the bug I noticed while I was implementing my own project, that when I add the zoomer plugin to an XYPlot, that zooming in does not correctly scale the data for a contour dataset. This is easily reproducible by just running the Histogram2DimSample included in this repository. As you can see in the gif attached, when the chart zooms in, the dataset in the y direction appears to compress, even though the range on they y-axis is getting smaller. The x-axis does not appear to have this problem.
Environment:
- OS: Pop!_OS 21.10
- Java version: 11.0.14
- JavaFx version: 13
- ChartFx version: 11.2.6

Most of this seems to be fixed by #519, but if you use the sample for some time, there are over-range warnings, the y projection vanishes and similar zooming issues can be observed. There seems to be some problem with the way the axes are setup in the sample.
The issue with the y-projection in the sample was caused by Histogram::reset calling its super method and therefore clearing both the x and y axis description loosing the information about the bin boundaries.
fixed in #534