public class ScatterOptions extends ConfigurationOptions
Constructor and Description |
---|
ScatterOptions(AbstractChart<?,?> chart,
ChartOptions defaultValues)
Builds the object storing the chart instance and default values.
|
Modifier and Type | Method and Description |
---|---|
AbstractChart<?,?> |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
Scales |
getScales()
Returns the scales element.
|
boolean |
isShowLines()
If false, the lines between points are not drawn.
|
boolean |
isSpanGaps()
If false, NaN data causes a break in the line.
|
protected void |
setConfiguration(T configuration) |
void |
setShowLines(boolean showLine)
If false, the lines between points are not drawn.
|
void |
setSpanGaps(boolean spanGaps)
If false, NaN data causes a break in the line.
|
String |
toJSON()
Returns the JSON representation of the object.
|
addHandler, getAnimation, getAspectRatio, getDevicePixelRatio, getElements, getEvents, getHover, getLayout, getLegend, getLegendCallback, getPlugins, getResponsiveAnimationDuration, getTitle, getTooltips, hasDatasetSelectionHandlers, isMaintainAspectRatio, isResponsive, load, removeHandler, setAspectRatio, setDevicePixelRatio, setEvents, setLegendCallback, setMaintainAspectRatio, setResponsive, setResponsiveAnimationDuration
onAdd, onRemove
public ScatterOptions(AbstractChart<?,?> chart, ChartOptions defaultValues)
chart
- chart instancedefaultValues
- defaults options of scatter chartpublic void setShowLines(boolean showLine)
showLine
- If false, the lines between points are not drawn.public boolean isShowLines()
public void setSpanGaps(boolean spanGaps)
spanGaps
- If false, NaN data causes a break in the line.public boolean isSpanGaps()
public Scales getScales()
protected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final String toJSON()
public final AbstractChart<?,?> getChart()