Class CartesianCategoryAxes
java.lang.Object
org.primefaces.model.charts.axes.cartesian.CartesianAxes
org.primefaces.model.charts.axes.cartesian.category.CartesianCategoryAxes
- All Implemented Interfaces:
Serializable
If global configuration is used, labels are drawn from one of the label arrays included in the chart data.
If only data.labels is defined, this will be used. If data.xLabels is defined and the axis is horizontal, this will be used.
Similarly, if data.yLabels is defined and the axis is vertical, this property will be used.
Using both xLabels and yLabels together can create a chart that uses strings for both the X and Y axes. CartesianCategoryAxes extends
CartesianAxes.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of cartesian category axesGets the labelsgetTicks()Gets the ticksgetType()Gets the typevoidSets the labelsvoidsetTicks(CartesianCategoryTicks ticks) Sets the ticksvoidSets the typeMethods inherited from class org.primefaces.model.charts.axes.cartesian.CartesianAxes
getGrid, getId, getMax, getMin, getPosition, getScaleTitle, getSuggestedMax, getSuggestedMin, isOffset, isReverse, isStacked, setGrid, setId, setMax, setMin, setOffset, setPosition, setReverse, setScaleTitle, setStacked, setSuggestedMax, setSuggestedMin
-
Constructor Details
-
CartesianCategoryAxes
public CartesianCategoryAxes()
-
-
Method Details
-
getTicks
Gets the ticks- Returns:
- ticks
-
setTicks
Sets the ticks- Parameters:
ticks- theCartesianCategoryTicksobject
-
getType
Gets the type- Returns:
- type of cartesian axes
-
setType
Sets the type- Parameters:
type- the type of cartesian axes
-
getLabels
Gets the labels- Returns:
- labels
-
setLabels
Sets the labels- Parameters:
labels- List<String> list of labels to display.
-
encode
Write the options of cartesian category axes- Overrides:
encodein classCartesianAxes- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-