public class LineDataset extends LiningDataset implements HasDataPoints
Dataset.CanvasObjectProperty, Dataset.CommonPropertyDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING| Modifier | Constructor and Description |
|---|---|
|
LineDataset()
Creates a dataset.
It uses the global options has default. |
|
LineDataset(boolean hidden)
Creates a dataset.
It uses the global options has default. |
|
LineDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
|
LineDataset(IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default.
|
protected |
LineDataset(Type type,
boolean hidden)
Creates the dataset using chart type related to the dataset.
|
protected |
LineDataset(Type type,
IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default and chart type related to the dataset.
|
| 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.
|
IndexAxis |
getIndexAxis()
Returns the base axis for the data set.
|
default int |
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
default List<PointStyle> |
getPointStyle()
Returns the style of the point.
|
default List<Canvas> |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null. |
default List<Img> |
getPointStyleAsImages()
Returns the style of the point as image.
If property is missing or not an image, returns null. |
default PointStyleCallback |
getPointStyleCallback()
Returns the point style callback, if set, otherwise
null. |
default PointStyleType |
getPointStyleType()
Returns the type of point style.
|
Stepped |
getStepped()
Returns if the line is shown as a stepped line.
|
SteppedCallback |
getSteppedCallback()
Returns the stepped callback, if set, otherwise
null. |
ScaleId |
getXAxisID()
Returns the ID of the x axis to plot this data set on.
If not specified, this defaults to the ID of DefaultScaleId.X. |
ScaleId |
getYAxisID()
Returns the ID of the y axis to plot this data set 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 |
setCubicInterpolationMode(NativeCallback 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.
|
void |
setIndexAxis(IndexAxis indexAxis)
Sets the base axis for the data set.
|
default void |
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
default void |
setPointStyle(Canvas... pointStyle)
Sets the style of the point as canvas.
|
default void |
setPointStyle(Img... pointStyle)
Sets the style of the point as image.
|
default void |
setPointStyle(PointStyle... pointStyle)
Sets the style of the point.
|
default void |
setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.
|
void |
setShowLine(boolean showLine)
Sets if the line is not drawn for this dataset.
|
void |
setStepped(boolean line)
Sets if the line is shown as a stepped line.
If the stepped value is set to anything other than false, tension will be ignored. |
void |
setStepped(NativeCallback steppedCallback)
Sets the stepped callback.
|
void |
setStepped(Stepped line)
Sets if the line is shown as a stepped line.
If the stepped value is set to anything other than false, tension will be ignored. |
void |
setStepped(SteppedCallback steppedCallback)
Sets the stepped callback.
|
void |
setXAxisID(ScaleId xAxisID)
Sets the ID of the x axis to plot this data set on.
|
void |
setXAxisID(String xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
void |
setYAxisID(ScaleId yAxisID)
Sets the ID of the y axis to plot this data set on.
|
void |
setYAxisID(String yAxisID)
Sets the ID of the y axis to plot this data set on.
|
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPattern, getBackgroundColorAsString, getBorderCapStyle, getBorderCapStyleCallback, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderDash, getBorderDashCallback, getBorderDashOffset, getBorderDashOffsetCallback, getBorderJoinStyle, getBorderJoinStyleCallback, getBorderWidth, getBorderWidthCallback, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getFill, getFillCallback, getFillHandler, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderCapStyle, getHoverBorderCapStyleCallback, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderDash, getHoverBorderDashCallback, getHoverBorderDashOffset, getHoverBorderDashOffsetCallback, getHoverBorderJoinStyle, getHoverBorderJoinStyleCallback, getHoverBorderWidth, getHoverBorderWidthCallback, getLabel, getOrderHandler, 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, getPointStyleHandler, getSpanGapHandler, getTension, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderCapStyle, setBorderCapStyle, setBorderCapStyle, setBorderColor, setBorderColor, setBorderColor, setBorderDash, setBorderDash, setBorderDash, setBorderDashOffset, setBorderDashOffset, setBorderDashOffset, setBorderJoinStyle, setBorderJoinStyle, setBorderJoinStyle, setBorderWidth, setBorderWidth, setBorderWidth, setFill, setFill, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderCapStyle, setHoverBorderCapStyle, setHoverBorderCapStyle, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderDash, setHoverBorderDash, setHoverBorderDash, setHoverBorderDashOffset, setHoverBorderDashOffset, setHoverBorderDashOffset, setHoverBorderJoinStyle, setHoverBorderJoinStyle, setHoverBorderJoinStyle, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBackgroundColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderColor, setPointBorderWidth, setPointBorderWidth, setPointBorderWidth, setPointHitRadius, setPointHitRadius, setPointHitRadius, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBackgroundColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderColor, setPointHoverBorderWidth, setPointHoverBorderWidth, setPointHoverBorderWidth, setPointHoverRadius, setPointHoverRadius, setPointHoverRadius, setPointRadius, setPointRadius, setPointRadius, setPointRotation, setPointRotation, setPointRotation, setTensiongetAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getData, getDataCount, getDataset, getDataType, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setData, setData, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsingcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataPoints, getDataPoints, setDataPoints, setDataPointsgetDatasetsetFill, setFill, setFill, setFillgetSpanGaps, isSpanGaps, setSpanGaps, setSpanGapsgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabledextractScopepublic LineDataset()
public LineDataset(boolean hidden)
hidden - if true, it will be initially hidden.public LineDataset(IsDefaultOptions defaultValues)
defaultValues - default optionspublic LineDataset(IsDefaultOptions defaultValues, boolean hidden)
defaultValues - default optionshidden - if true, it will be initially hidden.protected LineDataset(Type type, boolean hidden)
type - chart type related to the datasethidden - if true, it will be initially hidden.protected LineDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type - chart type related to the datasetdefaultValues - default optionshidden - if true, it will be initially hidden.public void setXAxisID(String xAxisID)
xAxisID - the ID of the x axis to plot this dataset on.public void setXAxisID(ScaleId xAxisID)
xAxisID - the ID of the x axis to plot this data set on.public ScaleId getXAxisID()
DefaultScaleId.X.DefaultScaleId.Xpublic void setYAxisID(String yAxisID)
yAxisID - the ID of the y axis to plot this data set on.public void setYAxisID(ScaleId yAxisID)
yAxisID - the ID of the y axis to plot this data set on.public ScaleId getYAxisID()
DefaultScaleId.Y.DefaultScaleId.Ypublic void setIndexAxis(IndexAxis indexAxis)
IndexAxis.Y for vertical line.indexAxis - the base axis for the data setpublic IndexAxis getIndexAxis()
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 setStepped(boolean line)
line - if the line is shown as a stepped line. false is no step interpolationpublic void setStepped(Stepped line)
line - if the line is shown as a stepped line.public Stepped getStepped()
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 in the containerDataType.STRINGS.public CubicInterpolationModeCallback getCubicInterpolationModeCallback()
null.null.public void setCubicInterpolationMode(CubicInterpolationModeCallback cubicInterpolationModeCallback)
cubicInterpolationModeCallback - the border join style callback.public void setCubicInterpolationMode(NativeCallback cubicInterpolationModeCallback)
cubicInterpolationModeCallback - the border join style callback.public SteppedCallback getSteppedCallback()
null.null.public void setStepped(SteppedCallback steppedCallback)
steppedCallback - the stepped callback.public void setStepped(NativeCallback steppedCallback)
steppedCallback - the stepped callback.public void setOrder(int order)
order - the drawing order of dataset.public int getOrder()
public void setPointStyle(PointStyle... pointStyle)
pointStyle - array of the style of the point.public List<PointStyle> getPointStyle()
null if point style is set as imagepublic void setPointStyle(Img... pointStyle)
pointStyle - image element of the style of the point as image.public PointStyleType getPointStyleType()
public List<Img> getPointStyleAsImages()
null.null.public void setPointStyle(Canvas... pointStyle)
pointStyle - canvas element of the style of the point as canvas.public List<Canvas> getPointStyleAsCanvas()
null.null.public PointStyleCallback getPointStyleCallback()
null.null.public void setPointStyle(PointStyleCallback pointStyleCallback)
pointStyleCallback - the point style callback.