-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
Description
I try to use the zoomer plugin with an inverted axis. But when zooming (with the mouse wheel), the axis range flickers or jumps, and for some zoom settings the axis labels vanish completely. The displayed data then either jumps according to the axis, or sometimes seems to disappear completely.
Reproduction
This can be reproduced with the ZoomerSample. I simply changed the method getTestChart to
private static Chart getTestChart(final String title, final DataSet testDataSet) {
final Axis xAxis = new DefaultNumericAxis();
xAxis.invertAxis(true);
final Axis yAxis = new DefaultNumericAxis();
yAxis.invertAxis(true);
final var chart = new XYChart(xAxis, yAxis);
chart.setTitle(title);
chart.setLegendVisible(false);
chart.getDatasets().add(testDataSet);
chart.setPrefSize(PREF_WIDTH, PREF_HEIGHT);
return chart;
}
to invert the axes (which for some reason only worked for the y axes, but that was sufficient for me). Then run the sample and zoom, and the bug should be obvious.
Environment:
- OS: Rocky Linux 9
- Java version: 17
- JavaFx version: 16
- ChartFx version: 11.3.1
Metadata
Metadata
Assignees
Labels
No labels