JDK-8092997 : [XYChart] when labels rotated, free space is estimated icorrectly, when decision about label hiding is done.
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-04-04
  • Updated: 2015-06-12
  • Resolved: 2014-05-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u20Resolved
Related Reports
Duplicate :  
Description
Look at the attached movie.

I change height, and label "blue" disappears, but there is still enough place for its allocation

Code: 

    @Override
    public void start(Stage stage) {
        VBox content = new VBox();
        Series s1 = new Series( FXCollections.observableArrayList(
                    new XYChart.Data("First", "Green"),
                    new XYChart.Data("Second", "Blue"),
                    new XYChart.Data("Fourth", "Red")
                ));
        s1.setName("Set 1");
        Series s2 = new Series( FXCollections.observableArrayList(
                    new XYChart.Data("First", "Red"),
                    new XYChart.Data("Second", "Green"),
                    new XYChart.Data("Fourth", "Blue")
                ));
        s2.setName("Set 2");
        Series s3 = new Series( FXCollections.observableArrayList(
                    new XYChart.Data("First", "Blue"),
                    new XYChart.Data("Second", "Red"),
                    new XYChart.Data("Third", "Green")
                ));
        s3.setName("Set 3");
        ObservableList data = FXCollections.observableArrayList(s1, s2, s3);
        Axis y_axis = new CategoryAxis();
        Axis x_axis = new CategoryAxis(FXCollections.<String>observableArrayList("First", "Second", "Third", "Fourth"));
        Chart chart = new ScatterChart(x_axis, y_axis, data);
        content.getChildren().add(chart);
        stage.setScene(new Scene(content, 400, 400));
        stage.show();
        x_axis.setTickLabelRotation(45);
        y_axis.setTickLabelRotation(45);
    }
Comments
Fixed with RT-36998. Marking as duplicate of the bug
20-05-2014

Affected tests: ControlsAutomatedTestSuite/javafx/scene/control/test/chart/CategoryAxisTest/tickLabelRotationTest
04-04-2013