public class LineChartDataSet extends ChartDataSet
Constructor and Description |
---|
LineChartDataSet() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Write the options of this dataSet
|
String |
getBackgroundColor()
Gets the backgroundColor
|
String |
getBorderCapStyle()
Gets the borderCapStyle
|
String |
getBorderColor()
Gets the borderColor
|
List<Number> |
getBorderDash()
Gets the borderDash
|
Number |
getBorderDashOffset()
Gets the borderDashOffset
|
String |
getBorderJoinStyle()
Gets the borderJoinStyle
|
Number |
getBorderWidth()
Gets the borderWidth
|
String |
getCubicInterpolationMode()
Gets the cubicInterpolationMode
|
List<Number> |
getData()
Gets the list of data in this dataSet
|
Object |
getFill()
Gets the fill
|
String |
getLabel()
Gets the label
|
Number |
getLineTension()
Gets the lineTension
|
Object |
getPointBackgroundColor()
Gets the pointBackgroundColor
|
Object |
getPointBorderColor()
Gets the pointBorderColor
|
Object |
getPointBorderWidth()
Gets the pointBorderWidth
|
Object |
getPointHitRadius()
Gets the pointHitRadius
|
Object |
getPointHoverBackgroundColor()
Gets the pointHoverBackgroundColor
|
Object |
getPointHoverBorderColor()
Gets the pointHoverBorderColor
|
Object |
getPointHoverBorderWidth()
Gets the pointHoverBorderWidth
|
Object |
getPointHoverRadius()
Gets the pointHoverRadius
|
Object |
getPointRadius()
Gets the pointRadius
|
Object |
getPointStyle()
Gets the pointStyle
|
Object |
getSteppedLine()
Gets the steppedLine
|
String |
getXaxisID()
Gets the xAxisID
|
String |
getYaxisID()
Gets the yAxisID
|
boolean |
isShowLine()
Gets the showLine
|
boolean |
isSpanGaps()
Gets the spanGaps
|
void |
setBackgroundColor(String backgroundColor)
Sets the backgroundColor
|
void |
setBorderCapStyle(String borderCapStyle)
Sets the borderCapStyle
|
void |
setBorderColor(String borderColor)
Sets the borderColor
|
void |
setBorderDash(List<Number> borderDash)
Sets the borderDash
|
void |
setBorderDashOffset(Number borderDashOffset)
Sets the borderDashOffset
|
void |
setBorderJoinStyle(String borderJoinStyle)
Sets the borderJoinStyle
|
void |
setBorderWidth(Number borderWidth)
Sets the borderWidth
|
void |
setCubicInterpolationMode(String cubicInterpolationMode)
Sets the cubicInterpolationMode
|
void |
setData(List<Number> data)
Sets the list of data in this dataSet
|
void |
setFill(Object fill)
Sets the fill
|
void |
setLabel(String label)
Sets the label
|
void |
setLineTension(Number lineTension)
Sets the lineTension
|
void |
setPointBackgroundColor(Object pointBackgroundColor)
Sets the pointBackgroundColor
|
void |
setPointBorderColor(Object pointBorderColor)
Sets the pointBorderColor
|
void |
setPointBorderWidth(Object pointBorderWidth)
Sets the pointBorderWidth
|
void |
setPointHitRadius(Object pointHitRadius)
Sets the pointHitRadius
|
void |
setPointHoverBackgroundColor(Object pointHoverBackgroundColor)
Sets the pointHoverBackgroundColor
|
void |
setPointHoverBorderColor(Object pointHoverBorderColor)
Sets the pointHoverBorderColor
|
void |
setPointHoverBorderWidth(Object pointHoverBorderWidth)
Sets the pointHoverBorderWidth
|
void |
setPointHoverRadius(Object pointHoverRadius)
Sets the pointHoverRadius
|
void |
setPointRadius(Object pointRadius)
Sets the pointRadius
|
void |
setPointStyle(Object pointStyle)
Sets the pointStyle
|
void |
setShowLine(boolean showLine)
Sets the showLine
|
void |
setSpanGaps(boolean spanGaps)
Sets the spanGaps
|
void |
setSteppedLine(Object steppedLine)
Sets the steppedLine
|
void |
setXaxisID(String xaxisID)
Sets the xAxisID
|
void |
setYaxisID(String yaxisID)
Sets the yAxisID
|
public List<Number> getData()
public void setData(List<Number> data)
data
- List<Number> list of datapublic String getLabel()
public void setLabel(String label)
label
- The label for the dataset which appears in the legend and tooltipspublic String getXaxisID()
public void setXaxisID(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 axispublic String getYaxisID()
public void setYaxisID(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 String getBackgroundColor()
public void setBackgroundColor(String backgroundColor)
backgroundColor
- The fill color under the line.public String getBorderColor()
public void setBorderColor(String borderColor)
borderColor
- The color of the line.public Number getBorderWidth()
public void setBorderWidth(Number borderWidth)
borderWidth
- The width of the line in pixels.public void setBorderDash(List<Number> borderDash)
borderDash
- Length and spacing of dashes.public Number getBorderDashOffset()
public void setBorderDashOffset(Number borderDashOffset)
borderDashOffset
- Offset for line dashes.public String getBorderCapStyle()
public void setBorderCapStyle(String borderCapStyle)
borderCapStyle
- Cap style of the line.public String getBorderJoinStyle()
public void setBorderJoinStyle(String borderJoinStyle)
borderJoinStyle
- Line joint style.public String getCubicInterpolationMode()
public void setCubicInterpolationMode(String cubicInterpolationMode)
cubicInterpolationMode
- Algorithm used to interpolate a smooth curve from the discrete data points.public Object getFill()
public void setFill(Object fill)
fill
- How to fill the area under the line.public Number getLineTension()
public void setLineTension(Number lineTension)
lineTension
- Bezier curve tension of the line. Set to 0 to draw straightlines.
This option is ignored if monotone cubic interpolation is used.public Object getPointBackgroundColor()
public void setPointBackgroundColor(Object pointBackgroundColor)
pointBackgroundColor
- The fill color for points.public Object getPointBorderColor()
public void setPointBorderColor(Object pointBorderColor)
pointBorderColor
- The border color for points.public Object getPointBorderWidth()
public void setPointBorderWidth(Object pointBorderWidth)
pointBorderWidth
- The width of the point border in pixels.public Object getPointRadius()
public void setPointRadius(Object pointRadius)
pointRadius
- The radius of the point shape. If set to 0, the point is not rendered.public Object getPointStyle()
public void setPointStyle(Object pointStyle)
pointStyle
- Style of the point.public Object getPointHitRadius()
public void setPointHitRadius(Object pointHitRadius)
pointHitRadius
- The pixel size of the non-displayed point that reacts to mouse events.public Object getPointHoverBackgroundColor()
public void setPointHoverBackgroundColor(Object pointHoverBackgroundColor)
pointHoverBackgroundColor
- Point background color when hovered.public Object getPointHoverBorderColor()
public void setPointHoverBorderColor(Object pointHoverBorderColor)
pointHoverBorderColor
- Point border color when hovered.public Object getPointHoverBorderWidth()
public void setPointHoverBorderWidth(Object pointHoverBorderWidth)
pointHoverBorderWidth
- Border width of point when hovered.public Object getPointHoverRadius()
public void setPointHoverRadius(Object pointHoverRadius)
pointHoverRadius
- The radius of the point when hovered.public boolean isShowLine()
public void setShowLine(boolean showLine)
showLine
- If false, the line is not drawn for this dataset.public boolean isSpanGaps()
public void setSpanGaps(boolean spanGaps)
spanGaps
- If true, lines will be drawn between points with no or null data.
If false, points with NaN data will create a break in the linepublic Object getSteppedLine()
public void setSteppedLine(Object steppedLine)
steppedLine
- If the line is shown as a stepped line.public String encode() throws IOException
encode
in class ChartDataSet
IOException
- if writer is nullCopyright © 2018. All rights reserved.