public class BarChartDataSet extends ChartDataSet
Constructor and Description |
---|
BarChartDataSet() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Write the options of this dataSet
|
Object |
getBackgroundColor()
Gets the backgroundColor
|
Object |
getBorderColor()
Gets the borderColor
|
String |
getBorderSkipped()
Gets the borderSkipped
|
Object |
getBorderWidth()
Gets the borderWidth
|
List<Number> |
getData()
Gets the list of data in this dataSet
|
Object |
getHoverBackgroundColor()
Gets the hoverBackgroundColor
|
Object |
getHoverBorderColor()
Gets the hoverBorderColor
|
Object |
getHoverBorderWidth()
Gets the hoverBorderWidth
|
String |
getLabel()
Gets the label
|
String |
getStack()
Gets the stack
|
String |
getType()
Gets the type
|
String |
getXaxisID()
Gets the xAxisID
|
String |
getYaxisID()
Gets the yAxisID
|
void |
setBackgroundColor(Object backgroundColor)
Sets the backgroundColor
|
void |
setBorderColor(Object borderColor)
Sets the borderColor
|
void |
setBorderSkipped(String borderSkipped)
Sets the borderSkipped
|
void |
setBorderWidth(Object borderWidth)
Sets the borderWidth
|
void |
setData(List<Number> data)
Sets the list of data in this dataSet
|
void |
setHoverBackgroundColor(Object hoverBackgroundColor)
Sets the hoverBackgroundColor
|
void |
setHoverBorderColor(Object hoverBorderColor)
Sets the hoverBorderColor
|
void |
setHoverBorderWidth(Object hoverBorderWidth)
Sets the hoverBorderWidth
|
void |
setLabel(String label)
Sets the label
|
void |
setStack(String stack)
Sets the stack
|
void |
setXaxisID(String xaxisID)
Sets the xAxisID
|
void |
setYaxisID(String yaxisID)
Sets the yAxisID
|
isHidden, setHidden
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 getStack()
public void setStack(String stack)
stack
- The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack)public Object getBackgroundColor()
public void setBackgroundColor(Object backgroundColor)
backgroundColor
- The fill color of the bar.public Object getBorderColor()
public void setBorderColor(Object borderColor)
borderColor
- The color of the bar border.public Object getBorderWidth()
public void setBorderWidth(Object borderWidth)
borderWidth
- The stroke width of the bar in pixels.public String getBorderSkipped()
public void setBorderSkipped(String borderSkipped)
borderSkipped
- Which edge to skip drawing the border for.public Object getHoverBackgroundColor()
public void setHoverBackgroundColor(Object hoverBackgroundColor)
hoverBackgroundColor
- The fill colour of the bars when hovered.public Object getHoverBorderColor()
public void setHoverBorderColor(Object hoverBorderColor)
hoverBorderColor
- The stroke colour of the bars when hovered.public Object getHoverBorderWidth()
public void setHoverBorderWidth(Object hoverBorderWidth)
hoverBorderWidth
- The stroke width of the bars when hovered.public String getType()
public String encode() throws IOException
encode
in class ChartDataSet
IOException
- If an I/O error occursCopyright © 2020. All rights reserved.