Class CartesianLinearAxes

java.lang.Object
org.primefaces.model.charts.axes.cartesian.CartesianAxes
org.primefaces.model.charts.axes.cartesian.linear.CartesianLinearAxes
All Implemented Interfaces:
Serializable

public class CartesianLinearAxes extends CartesianAxes
The linear scale is use to chart numerical data. It can be placed on either the x or y axis. The scatter chart type automatically configures a line chart to use one of these scales for the x axis. As the name suggests, linear interpolation is used to determine where a value lies on the axis.
See Also:
  • Constructor Details

    • CartesianLinearAxes

      public CartesianLinearAxes()
  • Method Details

    • getTicks

      public CartesianLinearTicks getTicks()
      Gets the ticks
      Returns:
      ticks
    • setTicks

      public void setTicks(CartesianLinearTicks ticks)
      Sets the ticks
      Parameters:
      ticks - the CartesianLinearTicks object
    • isBeginAtZero

      public boolean isBeginAtZero()
      Gets the beginAtZero
      Returns:
      beginAtZero
    • setBeginAtZero

      public void setBeginAtZero(boolean beginAtZero)
      Sets the beginAtZero
      Parameters:
      beginAtZero - if true, scale will include 0 if it is not already included.
    • getType

      public String getType()
      Gets the type
      Returns:
      type of cartesian axes
    • setType

      public void setType(String type)
      Sets the type
      Parameters:
      type - the type of cartesian axes
    • getTime

      public CartesianTime getTime()
    • setTime

      public void setTime(CartesianTime time)
    • encode

      public String encode() throws IOException
      Write the options of cartesian category axes
      Overrides:
      encode in class CartesianAxes
      Returns:
      options as JSON object
      Throws:
      IOException - If an I/O error occurs