Package org.primefaces.model.charts.line
Class LineChartOptions
- java.lang.Object
-
- org.primefaces.model.charts.ChartOptions
-
- org.primefaces.model.charts.line.LineChartOptions
-
- All Implemented Interfaces:
Serializable
public class LineChartOptions extends ChartOptions
Used to set options to Line chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineChartOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartesianScalesgetScales()Gets the options of cartesian scalesbooleanisShowLines()Gets the showLinesbooleanisSpanGaps()Gets the spanGapsvoidsetScales(CartesianScales scales)Sets the cartesian scalesvoidsetShowLines(boolean showLines)Sets the showLinesvoidsetSpanGaps(boolean spanGaps)Sets the spanGaps-
Methods inherited from class org.primefaces.model.charts.ChartOptions
getAnimation, getElements, getLegend, getTitle, getTooltip, setAnimation, setElements, setLegend, setTitle, setTooltip
-
-
-
-
Method Detail
-
isShowLines
public boolean isShowLines()
Gets the showLines- Returns:
- showLines
-
setShowLines
public void setShowLines(boolean showLines)
Sets the showLines- Parameters:
showLines- If false, the lines between points are not drawn.
-
isSpanGaps
public boolean isSpanGaps()
Gets the spanGaps- Returns:
- spanGaps
-
setSpanGaps
public void setSpanGaps(boolean spanGaps)
Sets the spanGaps- Parameters:
spanGaps- If false, NaN data causes a break in the line.
-
getScales
public CartesianScales getScales()
Gets the options of cartesian scales- Returns:
- scales
-
setScales
public void setScales(CartesianScales scales)
Sets the cartesian scales- Parameters:
scales- TheCartesianScalesobject
-
-