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

[StackedAreaChart] Auto-ranging in Y does not compute correct range

    XMLWordPrintable

    Details

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

      Description

      1. Run Ensemble8
      2. Click on the "StackedAreaChart" sample
      3. Scroll the properties pane down to the "yAxis" section
      4. Uncheck forceZeroInRange
      5. Check autoRanging

      The range will incorrectly be computed as [25, 27] (so no chart data is drawn); it should be [1,23] assuming a padding of one to ensure the whole chart is shown.

      If you then do the following, the chart is displayed, but the upper bound of the range is too large:

      6. Uncheck autoRanging
      7. Check forceZeroInRange
      8. Check autoRanging

      The computed range will be [0,30]

      Note also that if you manually set the lower bound of the range to something greater than 0 -- even as little as 0.001 -- The chart data is completely messed up.jfx-8

      This is not a regression (at least not a recent one...it fails in FX 8 the same way).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              msladecek Martin Sládeček
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: