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 CartesianScales
getScales()
Gets the options of cartesian scalesboolean
isShowLines()
Gets the showLinesboolean
isSpanGaps()
Gets the spanGapsvoid
setScales(CartesianScales scales)
Sets the cartesian scalesvoid
setShowLines(boolean showLines)
Sets the showLinesvoid
setSpanGaps(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
- TheCartesianScales
object
-
-