Enum Class AxisType

java.lang.Object
java.lang.Enum<AxisType>
com.vaadin.flow.component.charts.model.AxisType
All Implemented Interfaces:
ChartEnum, Serializable, Comparable<AxisType>, Constable

public enum AxisType extends Enum<AxisType> implements ChartEnum
Enum representing different axis types. Can be one of LINEAR, LOGARITHMIC, CATEGORY or DATETIME. In a DATETIME axis, the numbers are given in milliseconds (or as Dates), and tick marks are placed on appropriate values like full hours or days. The default for new axes is LINEAR. CATEGORY is a convenience mode for where the point names of the first series are used for categories - avoiding the need to call Axis.setCategories(String...).
  • Enum Constant Details

    • LINEAR

      public static final AxisType LINEAR
    • LOGARITHMIC

      public static final AxisType LOGARITHMIC
    • DATETIME

      public static final AxisType DATETIME
      In axis mode, the numbers are given in milliseconds (or as Date s), and tick marks are placed on appropriate values like full hours or days and formatted appropriately.
    • CATEGORY

      public static final AxisType CATEGORY
      a convenience mode for where the point names of the first series are used for categories - avoiding the need to call Axis.setCategories(String...). Note that mode does not affect "x" value, so all series must have same points defined in same order.
  • Method Details

    • values

      public static AxisType[] 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 AxisType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AxisType>