public class LineDataset extends LiningDataset implements HasDataPoints
| Constructor and Description |
|---|
LineDataset()
Creates a dataset.
It uses the global options has default. |
LineDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
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, getLabel, getLineTension, getOrderer, getPointBackgroundColor, getPointBackgroundColorAsGradient, getPointBackgroundColorAsString, getPointBackgroundColorCallback, getPointBorderColor, getPointBorderColorAsGradient, getPointBorderColorAsString, getPointBorderColorCallback, getPointBorderWidth, getPointBorderWidthCallback, getPointHitRadius, getPointHitRadiusCallback, getPointHoverBackgroundColor, getPointHoverBackgroundColorAsGradient, getPointHoverBackgroundColorAsString, getPointHoverBackgroundColorCallback, getPointHoverBorderColor, getPointHoverBorderColorAsGradient, getPointHoverBorderColorAsString, getPointHoverBorderColorCallback, getPointHoverBorderWidth, getPointHoverBorderWidthCallback, getPointHoverRadius, getPointHoverRadiusCallback, getPointRadius, getPointRadiusCallback, getPointRotation, getPointRotationCallback, getPointStyle, getPointStyleAsImages, getPointStyleCallback, isSpanGaps, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderCapStyle, setBorderCapStyle, setBorderColor, setBorderColor, setBorderColor, setBorderDash, setBorderDash, setBorderDashOffset, setBorderDashOffset, setBorderJoinStyle, setBorderJoinStyle, setBorderWidth, setFill, 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, setSpanGapsgetBackgroundColorCallback, getBorderColorCallback, getBorderWidthCallback, getData, getData, getDataset, getDataType, getDefaultValues, getId, getOptions, getType, hasOptions, isHidden, setBackgroundColor, setBorderColor, setBorderWidth, setData, setData, setHidden, setLabel, setOptions, setTypecheckValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, 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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataPoints, getDataPoints, setDataPoints, setDataPointsgetDatasetpublic LineDataset()
public LineDataset(IsDefaultOptions defaultValues)
defaultValues - 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_IDpublic void setYAxisID(String yAxisID)
yAxisID - the ID of the y axis to plot this dataset on.public String getYAxisID()
Scales.DEFAULT_Y_AXIS_IDpublic 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 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()