public class BarDataset extends Dataset implements HasDataPoints
Constructor and Description |
---|
BarDataset()
Creates a dataset.
It uses the global options has default. |
BarDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
Modifier and Type | Method and Description |
---|---|
List<IsColor> |
getBackgroundColor()
Returns the fill colors of the elements.
|
List<Gradient> |
getBackgroundColorAsGradient()
Returns the fill gradient of elements.
|
List<Pattern> |
getBackgroundColorAsPatterns()
Returns the fill patters of elements.
|
List<String> |
getBackgroundColorAsString()
Returns the fill colors of the elements.
|
List<IsColor> |
getBorderColor()
Returns the color of the bar border
|
List<Gradient> |
getBorderColorAsGradient()
Returns the gradient of the bar border.
|
List<String> |
getBorderColorAsString()
Returns the color of the bar border
|
Position |
getBorderSkipped()
Returns the edge to skip drawing the border for.
|
List<Integer> |
getBorderWidth()
Returns the stroke width of the bar in pixels.
|
List<DataPoint> |
getDataPoints()
Returns the data property of a dataset for a chart is specified as an array of data points
|
List<DataPoint> |
getDataPoints(boolean binding)
Returns the data property of a dataset for a chart is specified as an array of data points
|
List<IsColor> |
getHoverBackgroundColor()
Returns the fill color of the elements when hovered.
|
List<Gradient> |
getHoverBackgroundColorAsGradient()
Returns the fill gradients of elements when hovered.
|
List<Pattern> |
getHoverBackgroundColorAsPatterns()
Returns the fill patters of elements when hovered.
|
List<String> |
getHoverBackgroundColorAsString()
Returns the fill color of the elements when hovered.
|
List<IsColor> |
getHoverBorderColor()
Returns the stroke color of the elements when hovered
|
List<Gradient> |
getHoverBorderColorAsGradient()
Returns the stroke gradients of the elements when hovered.
|
List<String> |
getHoverBorderColorAsString()
Returns the stroke color of the elements when hovered.
|
List<Integer> |
getHoverBorderWidth()
Returns the stroke width of the elements when hovered.
|
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.
|
void |
setBackgroundColor(Gradient... backgroundColor)
Sets the fill gradient of the elements.
|
void |
setBackgroundColor(IsColor... backgroundColor)
Sets the fill colors of the elements.
|
void |
setBackgroundColor(Pattern... backgroundColor)
Sets the fill pattern of the elements.
|
void |
setBackgroundColor(String... backgroundColor)
Sets the fill colors of the elements.
|
void |
setBorderColor(Gradient... borderColor)
Sets the gradient of the bar border as gradient.
|
void |
setBorderColor(IsColor... borderColor)
Sets the color of the bar border
|
void |
setBorderColor(String... borderColor)
Sets the color of the bar border
|
void |
setBorderSkipped(Position position)
Sets the edge to skip drawing the border for.
|
void |
setBorderWidth(int... borderWidth)
Sets the stroke width of the bar in pixels.
|
void |
setDataPoints(DataPoint... datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.
|
void |
setDataPoints(List<DataPoint> datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.
|
void |
setHoverBackgroundColor(Gradient... colors)
Sets the fill gradient of the elements when hovered.
|
void |
setHoverBackgroundColor(IsColor... colors)
Sets the fill color of the elements when hovered
|
void |
setHoverBackgroundColor(Pattern... colors)
Sets the fill pattern of the elements when hovered.
|
void |
setHoverBackgroundColor(String... colors)
Sets the fill color of the elements when hovered
|
void |
setHoverBorderColor(Gradient... colors)
Sets the stroke gradient of elements when hovered as gradient.
|
void |
setHoverBorderColor(IsColor... colors)
Sets the stroke color of the elements when hovered
|
void |
setHoverBorderColor(String... colors)
Sets the stroke color of the elements when hovered
|
void |
setHoverBorderWidth(int... widths)
Sets the stroke width of the elements when hovered.
|
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.
|
getData, getData, getDataType, getId, getLabel, getOptions, getType, hasOptions, isHidden, setData, setData, setHidden, setLabel, setOptions, setType
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, type
public BarDataset()
public BarDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic 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 axis.public String getXAxisID()
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 getYAxisID()
public void setBorderSkipped(Position position)
position
- the edge to skip drawing the border for.public Position getBorderSkipped()
public void setDataPoints(DataPoint... datapoints)
setDataPoints
in interface HasDataPoints
datapoints
- an array of data pointspublic void setDataPoints(List<DataPoint> datapoints)
setDataPoints
in interface HasDataPoints
datapoints
- a list of data pointspublic List<DataPoint> getDataPoints()
getDataPoints
in interface HasDataPoints
DataType.points
.public List<DataPoint> getDataPoints(boolean binding)
getDataPoints
in interface HasDataPoints
binding
- if true
binds the new array list into containerDataType.points
.public void setBackgroundColor(IsColor... backgroundColor)
backgroundColor
- the fill colors of the elements.public void setBackgroundColor(String... backgroundColor)
backgroundColor
- the fill colors of the elements.public void setBackgroundColor(Pattern... backgroundColor)
backgroundColor
- the fill pattern of element.public void setBackgroundColor(Gradient... backgroundColor)
backgroundColor
- the fill gradient of the elements.public List<String> getBackgroundColorAsString()
public List<IsColor> getBackgroundColor()
public List<Pattern> getBackgroundColorAsPatterns()
public List<Gradient> getBackgroundColorAsGradient()
public void setBorderColor(IsColor... borderColor)
borderColor
- the color of the bar borderpublic void setBorderColor(String... borderColor)
borderColor
- the color of the bar borderpublic void setBorderColor(Gradient... borderColor)
borderColor
- the gradient of the bar border as gradient.public List<String> getBorderColorAsString()
public List<IsColor> getBorderColor()
public List<Gradient> getBorderColorAsGradient()
public void setBorderWidth(int... borderWidth)
borderWidth
- the stroke width of the bar in pixels.public List<Integer> getBorderWidth()
public void setHoverBackgroundColor(IsColor... colors)
colors
- the fill color of the elements when hoveredpublic void setHoverBackgroundColor(String... colors)
colors
- the fill color of the elements when hoveredpublic void setHoverBackgroundColor(Pattern... colors)
colors
- the fill pattern of element when hovered.public void setHoverBackgroundColor(Gradient... colors)
colors
- the fill gradient of the elements when hovered.public List<String> getHoverBackgroundColorAsString()
public List<IsColor> getHoverBackgroundColor()
public List<Pattern> getHoverBackgroundColorAsPatterns()
public List<Gradient> getHoverBackgroundColorAsGradient()
public void setHoverBorderColor(IsColor... colors)
colors
- the stroke color of the elements when hoveredpublic void setHoverBorderColor(String... colors)
colors
- the stroke color of the elements when hoveredpublic void setHoverBorderColor(Gradient... colors)
colors
- the stroke gradient of elements when hovered as gradient.public List<String> getHoverBorderColorAsString()
public List<IsColor> getHoverBorderColor()
public List<Gradient> getHoverBorderColorAsGradient()
public void setHoverBorderWidth(int... widths)
widths
- the stroke width of the elements when hovered.