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
Used to set options to Line chart component.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the options of cartesian scalesboolean
Gets the showLinesboolean
Gets the spanGapsvoid
setScales
(CartesianScales scales) Sets the cartesian scalesvoid
setShowLines
(boolean showLines) Sets the showLinesvoid
setSpanGaps
(boolean spanGaps) Sets the spanGapsMethods inherited from class org.primefaces.model.charts.ChartOptions
getAnimation, getAspectRatio, getElements, getLegend, getSubtitle, getTitle, getTooltip, isMaintainAspectRatio, isResponsive, setAnimation, setAspectRatio, setElements, setLegend, setMaintainAspectRatio, setResponsive, setSubtitle, setTitle, setTooltip
-
Constructor Details
-
LineChartOptions
public LineChartOptions()
-
-
Method Details
-
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
Gets the options of cartesian scales- Returns:
- scales
-
setScales
Sets the cartesian scales- Parameters:
scales
- TheCartesianScales
object
-