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

[StackedAreaChart]: StackedAreaChart y-axis should be always a ValueAxis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u40
    • None
    • javafx

    Description

      The StackedAreaChart contructor accepts any Axis as y-axis. But to support the "stacking" the y-axis must be a ValueAxis (we need numeric values that can be added together). It's already the same in StackedBarChart, which requires one of the axes to be a ValueAxis. In case of StackedBarChart, it's not enforced by the constructor as it allows both horizontal and vertical mode. StackedAreaChart doesn't have these modes.

      So we should either create new constructors with ValueAxis and deprecate the old or do an "instanceof" check in current constructors are throw Exception if y-axis is not a ValueAxis

      Attachments

        Issue Links

          Activity

            People

              msladecek Martin Sládeček
              msladecek Martin Sládeček
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: