Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8122627

[Charts] A vertical bar chart may not retain the orientation of the x-axis tick labels when the chart is re-sized.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u20
    • javafx
    • Windows 7, JDK 8 Early Access build b120

      This is a follow up of RT-35052, originally written against 7u45.

      Please refer to the second code sample provided in RT-35052, which exhibits the following problems in 8u20:

      1. In this instance, comment out the line xAxis.setTickLabelRotation(90), thus no rotation is called for. Notice that the labels along the x-axis are horizontal. Now start reducing the width of the display and notice that the labels ultimately get vertically oriented (as would be expected because of the size restrictions). Now start increasing the width of the display, but notice that the labels will continue to stay vertical, even when the width is past the original size.

      2. In this instance, set the rotation to 45, as in xAxis.setTickLabelRotation(45). Notice that the labels along the x-axis are at a 45 degree angle. Now observe the same problem as in #1 above on re-sizing the window. That is, if the labels are caused to be rendered vertically due to the reduced display size, they will not revert to 45 degrees even when increased space ought to permit doing so.

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: