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

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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved:
              Imported: