Just encountered an issue with javafx.scene.chart.LineChart. When populating the chart data with Double values above 5E13 or so the series happen to disapear (see screenshot).
Before

After

Just in case: I'm adding data with the folowing code
chart.getData().clear();
chart.getData().add(new XYChart.Series<>("Simulation name", sim.getDataAsList()));
It appeared to be that upperBound property of y axis sets to NaN
NumberAxis axis = (NumberAxis) chart.getYAxis();
axis.upperBoundProperty().addListener(new ChangeListener<Number>() {
@Override
public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
if(Double.isNaN(newValue.doubleValue())){
System.out.println("upperBound is NaN");
}
}
});
Please, help anyone!