Enum Class PlotStyle

java.lang.Object
java.lang.Enum<PlotStyle>
io.deephaven.plot.PlotStyle
All Implemented Interfaces:
Serializable, Comparable<PlotStyle>, java.lang.constant.Constable

public enum PlotStyle extends Enum<PlotStyle>
The style of a plot (e.g. line, bar, etc.).
  • Enum Constant Details

    • BAR

      public static final PlotStyle BAR
      A bar chart.
    • STACKED_BAR

      public static final PlotStyle STACKED_BAR
      A stacked bar chart.
    • LINE

      public static final PlotStyle LINE
      A line chart. Does not display shapes at data points by default.
    • AREA

      public static final PlotStyle AREA
      An area chart. Does not display shapes at data points by default.
    • STACKED_AREA

      public static final PlotStyle STACKED_AREA
      A stacked area chart. Does not display shapes at data points by default.
    • PIE

      public static final PlotStyle PIE
      A pie chart.
    • HISTOGRAM

      public static final PlotStyle HISTOGRAM
      A histogram chart.
    • OHLC

      public static final PlotStyle OHLC
      An open-high-low-close chart.
    • SCATTER

      public static final PlotStyle SCATTER
      A scatter plot. Lines are not displayed by default.
    • STEP

      public static final PlotStyle STEP
      A step plot.
    • ERROR_BAR

      public static final PlotStyle ERROR_BAR
      An error bar plot. Points are not displayed by default.
    • TREEMAP

      public static final PlotStyle TREEMAP
      A treemap plot.
  • Method Details

    • values

      public static PlotStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlotStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • plotStyle

      public static PlotStyle plotStyle(String style)
      Returns the requested plot style.
      Parameters:
      style - case insensitive style name
      Returns:
      PlotStyle with the given name
      Throws:
      IllegalArgumentException - style must not be null
    • plotStyleNames

      public static String[] plotStyleNames()
      Returns the names of available plot styles.
      Returns:
      array of the PlotStyle names