public class LineDataset extends LiningDataset implements HasDataPoints
Modifier | Constructor and Description |
---|---|
|
LineDataset()
Creates a dataset.
It uses the global options has default. |
|
LineDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
protected |
LineDataset(Type type)
Creates the dataset using chart type related to the dataset.
|
protected |
LineDataset(Type type,
IsDefaultOptions defaultValues)
Creates the dataset using a default and chart type related to the dataset.
|
Modifier and Type | Method and Description |
---|---|
double |
getClip()
Returns how to clip relative to chartArea.
Positive value allows overflow, negative value clips that many pixels inside chartArea. |
Clip |
getClipAsObject()
Returns how to clip relative to chartArea.
Positive value allows overflow, negative value clips that many pixels inside chartArea. |
CubicInterpolationMode |
getCubicInterpolationMode()
Returns algorithm used to interpolate a smooth curve from the discrete data points.
|
CubicInterpolationModeCallback |
getCubicInterpolationModeCallback()
Returns the border join style callback, if set, otherwise
null . |
List<String> |
getDataString()
Returns the data property of a dataset for a chart is specified as an array of strings.
|
List<String> |
getDataString(boolean binding)
Returns the data property of a dataset for a chart is specified as an array of strings.
|
default int |
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
SteppedLine |
getSteppedLine()
Returns if the line is shown as a stepped line.
|
String |
getXAxisID()
Returns the ID of the x axis to plot this dataset on.
|
String |
getYAxisID()
Returns the ID of the y axis to plot this dataset on.
|
boolean |
isShowLine()
Returns if the line is not drawn for this dataset.
|
void |
setClip(Clip clip)
Sets how to clip relative to chartArea, by an object which configures clipping per side.
Positive value allows overflow, negative value clips that many pixels inside chartArea. |
void |
setClip(double clip)
Sets how to clip relative to chartArea.
Positive value allows overflow, negative value clips that many pixels inside chartArea. |
void |
setCubicInterpolationMode(CubicInterpolationMode mode)
Sets algorithm used to interpolate a smooth curve from the discrete data points.
The following interpolation modes are supported: |
void |
setCubicInterpolationMode(CubicInterpolationModeCallback cubicInterpolationModeCallback)
Sets the border join style callback.
|
void |
setDataString(List<String> data)
Sets the data property of a dataset for a chart is specified as an array of strings.
|
void |
setDataString(String... data)
Sets the data property of a dataset for a chart is specified as an array of strings.
|
default void |
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
void |
setShowLine(boolean showLine)
Sets if the line is not drawn for this dataset.
|
void |
setSteppedLine(boolean line)
Sets if the line is shown as a stepped line.
If the steppedLine value is set to anything other than false, lineTension will be ignored. |
void |
setSteppedLine(SteppedLine line)
Sets if the line is shown as a stepped line.
If the steppedLine value is set to anything other than false, lineTension will be ignored. |
void |
setXAxisID(String xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
void |
setYAxisID(String yAxisID)
Sets the ID of the y axis to plot this dataset on.
|
applyGradient, applyPattern, getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPattern, getBackgroundColorAsString, getBorderCapStyle, getBorderCapStyleCallback, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderDash, getBorderDashCallback, getBorderDashOffset, getBorderDashOffsetCallback, getBorderJoinStyle, getBorderJoinStyleCallback, getBorderWidth, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getFill, getFillCallback, getFiller, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderCapStyle, getHoverBorderCapStyleCallback, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderDash, getHoverBorderDashCallback, getHoverBorderDashOffset, getHoverBorderDashOffsetCallback, getHoverBorderJoinStyle, getHoverBorderJoinStyleCallback, getHoverBorderWidth, getLabel, getLineTension, getOrderer, getPointBackgroundColor, getPointBackgroundColorAsGradient, getPointBackgroundColorAsString, getPointBackgroundColorCallback, getPointBorderColor, getPointBorderColorAsGradient, getPointBorderColorAsString, getPointBorderColorCallback, getPointBorderWidth, getPointBorderWidthCallback, getPointFillStyleProperty, getPointHitRadius, getPointHitRadiusCallback, getPointHoverBackgroundColor, getPointHoverBackgroundColorAsGradient, getPointHoverBackgroundColorAsString, getPointHoverBackgroundColorCallback, getPointHoverBorderColor, getPointHoverBorderColorAsGradient, getPointHoverBorderColorAsString, getPointHoverBorderColorCallback, getPointHoverBorderWidth, getPointHoverBorderWidthCallback, getPointHoverRadius, getPointHoverRadiusCallback, getPointRadius, getPointRadiusCallback, getPointRotation, getPointRotationCallback, getPointStrokeStyleProperty, getPointStyle, getPointStyleAsImages, getPointStyleCallback, isSpanGaps, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderCapStyle, setBorderCapStyle, setBorderColor, setBorderColor, setBorderColor, setBorderDash, setBorderDash, setBorderDashOffset, setBorderDashOffset, setBorderJoinStyle, setBorderJoinStyle, setBorderWidth, setFill, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderCapStyle, setHoverBorderCapStyle, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderDash, setHoverBorderDash, setHoverBorderDashOffset, setHoverBorderDashOffset, setHoverBorderJoinStyle, setHoverBorderJoinStyle, setHoverBorderWidth, setLineTension, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderWidth, setPointBorderWidth, setPointHitRadius, setPointHitRadius, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderWidth, setPointHoverBorderWidth, setPointHoverRadius, setPointHoverRadius, setPointRadius, setPointRadius, setPointRotation, setPointRotation, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setSpanGaps
getBackgroundColorCallback, getBorderColorCallback, getBorderWidthCallback, getData, getData, getDataset, getDataType, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getHoverBorderWidthCallback, getId, getOptions, getOptions, getType, hasOptions, invokeColorCallback, isHidden, removeOptions, setBackgroundColor, setBorderColor, setBorderWidth, setData, setData, setHidden, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderWidth, setLabel, setOptions, setOptions
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataPoints, getDataPoints, setDataPoints, setDataPoints
getDataset
public LineDataset()
public LineDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionsprotected LineDataset(Type type)
type
- chart type related to the datasetprotected LineDataset(Type type, IsDefaultOptions defaultValues)
type
- chart type related to the datasetdefaultValues
- default optionspublic void setXAxisID(String xAxisID)
xAxisID
- the ID of the x axis to plot this dataset on.public String getXAxisID()
Scales.DEFAULT_X_AXIS_ID
public void setYAxisID(String yAxisID)
yAxisID
- the ID of the y axis to plot this dataset on.public String getYAxisID()
Scales.DEFAULT_Y_AXIS_ID
public void setCubicInterpolationMode(CubicInterpolationMode mode)
'default' 'monotone'
mode
- algorithm used to interpolate a smooth curve from the discrete data pointspublic CubicInterpolationMode getCubicInterpolationMode()
public void setShowLine(boolean showLine)
showLine
- false
if the line is not drawn for this dataset.public boolean isShowLine()
false
if the line is not drawn for this dataset.public void setSteppedLine(boolean line)
line
- if the line is shown as a stepped line. false
is no step interpolationpublic void setSteppedLine(SteppedLine line)
line
- if the line is shown as a stepped line.public SteppedLine getSteppedLine()
public void setClip(double clip)
clip
- positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartAreapublic void setClip(Clip clip)
clip
- object which configures clipping per sidepublic double getClip()
Clip
object, returns UndefinedValues.DOUBLE
.Clip
object, returns UndefinedValues.DOUBLE
public Clip getClipAsObject()
public void setDataString(String... data)
data
- an array of stringspublic void setDataString(List<String> data)
data
- a list of stringspublic List<String> getDataString()
DataType.STRINGS
.public List<String> getDataString(boolean binding)
binding
- if true
binds the new array list into containerDataType.STRINGS
.public CubicInterpolationModeCallback getCubicInterpolationModeCallback()
null
.null
.public void setCubicInterpolationMode(CubicInterpolationModeCallback cubicInterpolationModeCallback)
cubicInterpolationModeCallback
- the border join style callback.public void setOrder(int order)
order
- the drawing order of dataset.public int getOrder()