Enum PlotType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AREAS
      Area.
      BARS
      Horizontal bars.
      BUBBLES
      Bubbles.
      CANDLESTICKS
      Plot that represents typical candlesticks (financial reporting, primarily).
      CLUSTERED_BARS
      Grouped or clustered bars (horizontal bars).
      CLUSTERED_COLUMNS
      Grouped or clustered columns (vertical bars).
      COLUMNS
      Column chart (vertical bars).
      DEFAULT
      Default uninitialized chart.
      GRID
      A "faux" plot that can be placed behind other plots to represent a grid against which other plots can be easily measured.
      INDICATOR
      A "faux" plot that can be placed behind or above other plots to represent a line or multi-line threshold on the chart.
      LINES
      Typical line chart.
      MARKERS
      Line chart with markers.
      MARKERS_ONLY
      Markers only.
      OHLC
      Typical open/high/low/close (financial reporting, primarily).
      PIE
      Pie chart.
      SCATTER
      Scatter chart.
      SPIDER
      Spider chart.
      STACKED
      Like the default plot, stacked sets up lines, areas and markers in a stacked fashion (values on the y axis added to each other) as opposed to a direct one.
      STACKED_AREAS
      Stacked areas.
      STACKED_BARS
      Stacked bar chart (horizontal bars).
      STACKED_COLUMNS
      Stacked column chart (vertical bars).
      STACKED_LINES
      Stacked line chart.
    • Enum Constant Detail

      • AREAS

        public static final PlotType AREAS
        Area.
      • BARS

        public static final PlotType BARS
        Horizontal bars.
      • BUBBLES

        public static final PlotType BUBBLES
        Bubbles. Note that data for Bubbles requires 3 parameters, in the form of: { x, y, size }, where size determines the size of the bubble.
      • CANDLESTICKS

        public static final PlotType CANDLESTICKS
        Plot that represents typical candlesticks (financial reporting, primarily). Unlike most charts, the Candlestick expects data points to be represented by an object of the form { x?, open, close, high, low, mid? }, where both x and mid are optional parameters. If x is not provided, the index of the data array is used.
      • CLUSTERED_BARS

        public static final PlotType CLUSTERED_BARS
        Grouped or clustered bars (horizontal bars).
      • CLUSTERED_COLUMNS

        public static final PlotType CLUSTERED_COLUMNS
        Grouped or clustered columns (vertical bars).
      • COLUMNS

        public static final PlotType COLUMNS
        Column chart (vertical bars).
      • DEFAULT

        public static final PlotType DEFAULT
        Default uninitialized chart.
      • GRID

        public static final PlotType GRID
        A "faux" plot that can be placed behind other plots to represent a grid against which other plots can be easily measured.
      • INDICATOR

        public static final PlotType INDICATOR
        A "faux" plot that can be placed behind or above other plots to represent a line or multi-line threshold on the chart.
      • LINES

        public static final PlotType LINES
        Typical line chart. (A convenience constructor to create a typical line chart). ??
      • MARKERS

        public static final PlotType MARKERS
        Line chart with markers. (A convenience plot to draw a line chart with markers). ??
      • MARKERS_ONLY

        public static final PlotType MARKERS_ONLY
        Markers only. [A convenience object to draw only markers (like a scatter but not quite)].
      • OHLC

        public static final PlotType OHLC
        Typical open/high/low/close (financial reporting, primarily). Unlike most charts, the Candlestick expects data points to be represented by an object of the form { x?, open, close, high, low, mid? }, where both x and mid are optional parameters. If x is not provided, the index of the data array is used.
      • PIE

        public static final PlotType PIE
        Pie chart.
      • SCATTER

        public static final PlotType SCATTER
        Scatter chart.
      • SPIDER

        public static final PlotType SPIDER
        Spider chart.
      • STACKED

        public static final PlotType STACKED
        Like the default plot, stacked sets up lines, areas and markers in a stacked fashion (values on the y axis added to each other) as opposed to a direct one.
      • STACKED_AREAS

        public static final PlotType STACKED_AREAS
        Stacked areas. (A convenience object to set up a stacked area plot).
      • STACKED_BARS

        public static final PlotType STACKED_BARS
        Stacked bar chart (horizontal bars).
      • STACKED_COLUMNS

        public static final PlotType STACKED_COLUMNS
        Stacked column chart (vertical bars).
      • STACKED_LINES

        public static final PlotType STACKED_LINES
        Stacked line chart.
    • Method Detail

      • values

        public static PlotType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PlotType c : PlotType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PlotType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSeriesTypes

        public SeriesType[] getSeriesTypes()
        Gets the possible series type for the plot type.
        Returns:
        An array of series types.