public class LineOptions extends Options<LineOptions>
Constructor and Description |
---|
LineOptions() |
Modifier and Type | Method and Description |
---|---|
LineElements |
getElements() |
LinearScales |
getScales() |
Boolean |
getShowLines() |
Boolean |
getSpanGaps() |
static LinearScales |
scales()
Static factory, constructs a
Scale implementation appropriate
for a LineOptions instance. |
LineOptions |
setElements(LineElements elements) |
LineOptions |
setScales(LinearScales scales)
The linear scale is use to chart numerical data
|
LineOptions |
setShowLines(Boolean showLines)
If false, the lines between points are not drawn
|
LineOptions |
setSpanGaps(Boolean spanGaps)
If true, NaN data does not break the line
|
getAnimation, getEvents, getHover, getLayout, getLegend, getLegendCallback, getMaintainAspectRatio, getOnClick, getOnResize, getResponsive, getResponsiveAnimationDuration, getTitle, getTooltips, setAnimation, setEvents, setHover, setLayout, setLegend, setLegendCallback, setMaintainAspectRatio, setOnClick, setOnResize, setResponsive, setResponsiveAnimationDuration, setTitle, setTooltips
public static LinearScales scales()
Scale
implementation appropriate
for a LineOptions
instance.LinearScales
instancepublic Boolean getShowLines()
setShowLines(Boolean)
public LineOptions setShowLines(Boolean showLines)
If false, the lines between points are not drawn
Default true
public Boolean getSpanGaps()
setSpanGaps(Boolean)
public LineOptions setSpanGaps(Boolean spanGaps)
If true, NaN data does not break the line
Default false
public LinearScales getScales()
setScales(LinearScales)
public LineOptions setScales(LinearScales scales)
public LineElements getElements()
LineElements
instance, or null
if not setpublic LineOptions setElements(LineElements elements)
elements
- an LineElements
instance, or null
Copyright © 2017. All rights reserved.