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

Charts: autoRanging axis calculates different margins for upper and lower bounds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      8u20-dev, Hudson build #675.
      Tested on Mac, but should be platform independent.

      Description

      1. Run Ensemble8 and open the Line Chart demo.
      2. Edit the data so that the (2.9, 0.5) point becomes (2.9, -4.0) instead.
      3. Switch back to the Properties tab and check the autoRanging checkbox for yAxis.
      4. The chart seem to display all the data. The new bounds for the yAxis are now (-5...3). However, notice that the upper-most point (1.4, 3.0) is displayed at the very-very top of the chart so that there's no room above it - this is because the upper bound is equal to 3.0. But the lower-most data point (2.9, -4.0) actually has some room below because the lower bound is -5.

      Both lower and upper bounds should be calculated symmetrically. I.e. they should be either (-5...4), or (-4...3), so that upper and lower margins are equal.

        Attachments

          Activity

            People

            Assignee:
            msladecek Martin Sládeček
            Reporter:
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: