public class LineDataset extends Dataset
| Constructor and Description |
|---|
LineDataset() |
| Modifier and Type | Method and Description |
|---|---|
IsColor |
getBackgroundColor()
Returns the fill color under the line.
|
java.lang.String |
getBackgroundColorAsString()
Returns the fill color under the line.
|
CapStyle |
getBorderCapStyle()
Returns how the end points of every line are drawn.
|
IsColor |
getBorderColor()
Returns the color of the line.
|
java.lang.String |
getBorderColorAsString()
Returns the color of the line.
|
java.util.List<java.lang.Integer> |
getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
int |
getBorderDashOffset()
Returns the line dash pattern offset or "phase".
|
JoinStyle |
getBorderJoinStyle()
Returns how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are skipped).
There are three possible values for this property: round, bevel and miter. |
int |
getBorderWidth()
Returns the width of the line in pixels.
|
java.lang.String |
getCubicInterpolationMode()
Returns algorithm used to interpolate a smooth curve from the discrete data points.
|
java.util.List<DataPoint> |
getDataPoints()
Returns the data property of a dataset for a chart is specified as an array of data points
|
JsStringArrayList |
getDataString()
Returns the data property of a dataset for a chart is specified as an array of strings.
|
Fill |
getFill()
Returns how to fill the area under the line.
|
double |
getLineTension()
Returns curve tension of the line.
|
java.util.List<IsColor> |
getPointBackgroundColor()
Returns the fill color for points.
|
java.util.List<java.lang.String> |
getPointBackgroundColorAsString()
Returns the fill color for points.
|
java.util.List<IsColor> |
getPointBorderColor()
Returns the border color for points.
|
java.util.List<java.lang.String> |
getPointBorderColorAsString()
Returns the border color for points.
|
java.util.List<java.lang.Integer> |
getPointBorderWidth()
Returns the width of the point border in pixels.
|
java.util.List<java.lang.Double> |
getPointHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
java.util.List<IsColor> |
getPointHoverBackgroundColor()
Returns the point background color when hovered.
|
java.util.List<java.lang.String> |
getPointHoverBackgroundColorAsString()
Returns the point background color when hovered.
|
java.util.List<IsColor> |
getPointHoverBorderColor()
Returns the point border color when hovered.
|
java.util.List<java.lang.String> |
getPointHoverBorderColorAsString()
Returns the point border color when hovered.
|
java.util.List<java.lang.Integer> |
getPointHoverBorderWidth()
Returns the border width of point when hovered.
|
java.util.List<java.lang.Double> |
getPointHoverRadius()
Returns the radius of the point when hovered.
|
java.util.List<java.lang.Double> |
getPointRadius()
Returns the radius of the point shape.
|
JsEnumValueArrayList<PointStyle> |
getPointStyle()
Returns the style of the point.
|
SteppedLine |
getSteppedLine()
Returns If the line is shown as a stepped line.
|
java.lang.String |
getXAxisID()
Returns the ID of the x axis to plot this dataset on.
|
java.lang.String |
getYAxisID()
Returns the ID of the y axis to plot this dataset on.
|
boolean |
isShowLines()
Returns if the line is not drawn for this dataset.
|
boolean |
isSpanGaps()
Returns if lines will be drawn between points with no or null data.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the fill color under the line.
|
void |
setBackgroundColor(java.lang.String backgroundColor)
Sets the fill color under the line.
|
void |
setBorderCapStyle(CapStyle borderCapStyle)
Sets how the end points of every line are drawn.
|
void |
setBorderColor(IsColor borderColor)
Sets the color of the line.
|
void |
setBorderColor(java.lang.String borderColor)
Sets the color of the line.
|
void |
setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
void |
setBorderDashOffset(int borderDashOffset)
Sets the line dash pattern offset or "phase".
|
void |
setBorderJoinStyle(JoinStyle borderJoinStyle)
Sets how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are skipped).
There are three possible values for this property: round, bevel and miter. |
void |
setBorderWidth(int borderWidth)
Sets the width of the line in pixels.
|
void |
setCubicInterpolationMode(java.lang.String mode)
Sets algorithm used to interpolate a smooth curve from the discrete data points.
The following interpolation modes are supported: |
void |
setDataPoints(DataPoint... datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.
|
void |
setDataString(java.util.List<java.lang.String> values)
Sets the data property of a dataset for a chart is specified as an array of strings.
|
void |
setDataString(java.lang.String... data)
Sets the data property of a dataset for a chart is specified as an array of strings.
|
void |
setFill(Fill fill)
Sets how to fill the area under the line.
|
void |
setLineTension(double lineTension)
Sets curve tension of the line.
|
void |
setPointBackgroundColor(IsColor... pointBackgroundColor)
Sets the fill color for points.
|
void |
setPointBackgroundColor(java.lang.String... pointBackgroundColor)
Sets the fill color for points.
|
void |
setPointBorderColor(IsColor... pointBorderColor)
Sets the border color for points.
|
void |
setPointBorderColor(java.lang.String... pointBorderColor)
Sets the border color for points.
|
void |
setPointBorderWidth(int... pointBorderWidth)
Sets the width of the point border in pixels.
|
void |
setPointHitRadius(double... pointHitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setPointHoverBackgroundColor(IsColor... pointHoverBackgroundColor)
Sets the point background color when hovered.
|
void |
setPointHoverBackgroundColor(java.lang.String... pointHoverBackgroundColor)
Sets the point background color when hovered.
|
void |
setPointHoverBorderColor(IsColor... pointHoverBorderColor)
Sets the point border color when hovered.
|
void |
setPointHoverBorderColor(java.lang.String... pointHoverBorderColor)
Sets the point border color when hovered.
|
void |
setPointHoverBorderWidth(int... pointHoverBorderWidth)
Sets the border width of point when hovered.
|
void |
setPointHoverRadius(double... pointHoverRadius)
Sets the radius of the point when hovered.
|
void |
setPointRadius(double... pointRadius)
Sets the radius of the point shape.
|
void |
setPointStyle(PointStyle... pointStyle)
Sets the style of the point.
|
void |
setShowLines(boolean showLine)
Sets if the line is not drawn for this dataset.
|
void |
setSpanGaps(boolean spanGaps)
Sets if lines will be drawn between points with no or null data.
|
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(java.lang.String xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
void |
setYAxisID(java.lang.String yAxisID)
Sets the ID of the y axis to plot this dataset on.
|
getData, getLabel, getType, isHidden, setData, setData, setHidden, setLabel, setTypecheckAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typepublic void setXAxisID(java.lang.String xAxisID)
xAxisID - the ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis.public java.lang.String getXAxisID()
public void setYAxisID(java.lang.String yAxisID)
yAxisID - the ID of the y axis to plot this dataset on. If not specified, this defaults to the ID of the first found y axis.public java.lang.String getYAxisID()
public void setCubicInterpolationMode(java.lang.String mode)
'default' 'monotone'
mode - algorithm used to interpolate a smooth curve from the discrete data pointspublic java.lang.String getCubicInterpolationMode()
'default'.public void setShowLines(boolean showLine)
showLine - false if the line is not drawn for this dataset.public boolean isShowLines()
false if the line is not drawn for this dataset. Default is truepublic void setSpanGaps(boolean spanGaps)
spanGaps - true if lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the linepublic boolean isSpanGaps()
true if lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Default is falsepublic void setSteppedLine(SteppedLine line)
line - If the line is shown as a stepped line.SteppedLinepublic SteppedLine getSteppedLine()
SteppedLinepublic void setDataString(java.lang.String... data)
data - an array of stringspublic void setDataString(java.util.List<java.lang.String> values)
values - a list of stringspublic JsStringArrayList getDataString()
public void setDataPoints(DataPoint... datapoints)
datapoints - an array of data pointsDataPointpublic java.util.List<DataPoint> getDataPoints()
DataPointpublic void setBackgroundColor(IsColor backgroundColor)
backgroundColor - the fill color under the line.public void setBackgroundColor(java.lang.String backgroundColor)
backgroundColor - the fill color under the line.public java.lang.String getBackgroundColorAsString()
rgba(0,0,0,0.1)public IsColor getBackgroundColor()
rgba(0,0,0,0.1)public void setBorderColor(IsColor borderColor)
borderColor - the color of the line.public void setBorderColor(java.lang.String borderColor)
borderColor - the color of the line.public java.lang.String getBorderColorAsString()
rgba(0,0,0,0.1)public IsColor getBorderColor()
rgba(0,0,0,0.1)public void setBorderWidth(int borderWidth)
borderWidth - the width of the line in pixels.public int getBorderWidth()
3public void setBorderDash(int... borderDash)
borderDash - the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.public java.util.List<java.lang.Integer> getBorderDash()
public void setBorderDashOffset(int borderDashOffset)
borderDashOffset - the line dash pattern offset or "phase".public int getBorderDashOffset()
0public void setBorderCapStyle(CapStyle borderCapStyle)
borderCapStyle - how the end points of every line are drawn.CapStylepublic CapStyle getBorderCapStyle()
CapStylepublic void setBorderJoinStyle(JoinStyle borderJoinStyle)
borderJoinStyle - There are three possible values for this property: round, bevel and miter. By default this property is set to miter.JoinStylepublic JoinStyle getBorderJoinStyle()
JoinStylepublic void setFill(Fill fill)
fill - how to fill the area under the line.Fillpublic Fill getFill()
Fillpublic void setLineTension(double lineTension)
lineTension - curve tension of the linepublic double getLineTension()
0.4public void setPointBackgroundColor(IsColor... pointBackgroundColor)
pointBackgroundColor - array of the fill color for points.public void setPointBackgroundColor(java.lang.String... pointBackgroundColor)
pointBackgroundColor - array of the fill color for points.public java.util.List<java.lang.String> getPointBackgroundColorAsString()
public java.util.List<IsColor> getPointBackgroundColor()
public void setPointBorderColor(IsColor... pointBorderColor)
pointBorderColor - array of the border color for points.public void setPointBorderColor(java.lang.String... pointBorderColor)
pointBorderColor - array of the border color for points.public java.util.List<java.lang.String> getPointBorderColorAsString()
public java.util.List<IsColor> getPointBorderColor()
public void setPointBorderWidth(int... pointBorderWidth)
pointBorderWidth - array of the width of the point border in pixels.public java.util.List<java.lang.Integer> getPointBorderWidth()
public void setPointHitRadius(double... pointHitRadius)
pointHitRadius - array of the pixel size of the non-displayed point.public java.util.List<java.lang.Double> getPointHitRadius()
public void setPointHoverBackgroundColor(IsColor... pointHoverBackgroundColor)
pointHoverBackgroundColor - array of the point background color when hovered.public void setPointHoverBackgroundColor(java.lang.String... pointHoverBackgroundColor)
pointHoverBackgroundColor - array of the point background color when hovered.public java.util.List<java.lang.String> getPointHoverBackgroundColorAsString()
public java.util.List<IsColor> getPointHoverBackgroundColor()
public void setPointHoverBorderColor(IsColor... pointHoverBorderColor)
pointHoverBorderColor - array of the point border color when hovered.public void setPointHoverBorderColor(java.lang.String... pointHoverBorderColor)
pointHoverBorderColor - array of the point border color when hovered.public java.util.List<java.lang.String> getPointHoverBorderColorAsString()
public java.util.List<IsColor> getPointHoverBorderColor()
public void setPointHoverBorderWidth(int... pointHoverBorderWidth)
pointHoverBorderWidth - array of the border width of point when hovered.public java.util.List<java.lang.Integer> getPointHoverBorderWidth()
public void setPointHoverRadius(double... pointHoverRadius)
pointHoverRadius - array of the radius of the point when hovered.public java.util.List<java.lang.Double> getPointHoverRadius()
public void setPointRadius(double... pointRadius)
pointRadius - array of the radius of the point shape.public java.util.List<java.lang.Double> getPointRadius()
public void setPointStyle(PointStyle... pointStyle)
pointStyle - array of the style of the point.PointStylepublic JsEnumValueArrayList<PointStyle> getPointStyle()
PointStyle.circlePointStyle