public class StackedBarDataset extends BarDataset
stack
property.Constructor and Description |
---|
StackedBarDataset()
Creates a dataset.
It uses the global options has default. |
StackedBarDataset(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
|
List<Integer> |
getBorderWidth()
Returns the stroke width of the bar in pixels.
|
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 |
getStackGroup()
Returns the name of stack group.
|
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 |
setBorderWidth(int... borderWidth)
Sets the stroke width of the bar in pixels.
|
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 |
setStackGroup(String stackGroup)
Sets the name of stack group.
|
getBorderSkipped, getDataPoints, getDataPoints, getXAxisID, getYAxisID, setBorderSkipped, setDataPoints, setDataPoints, setXAxisID, setYAxisID
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 StackedBarDataset()
public StackedBarDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic void setStackGroup(String stackGroup)
stackGroup
- name of stack group.public String getStackGroup()
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.