Class Bar
java.lang.Object
software.xdev.chartjs.model.options.elements.Bar
Bar elements are used to represent the bars in a bar chart.
When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color
protected Color
protected BorderSkipped
protected Integer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetBackgroundColor
(Color backgroundColor) Default bar fill colorsetBorderColor
(Color borderColor) Default bar stroke colorsetBorderSkipped
(BorderSkipped borderSkipped) Default skipped (excluded) border for rectangle.setBorderWidth
(Integer borderWidth) Default bar stroke width
-
Field Details
-
backgroundColor
- See Also:
-
borderWidth
- See Also:
-
borderColor
- See Also:
-
borderSkipped
- See Also:
-
-
Constructor Details
-
Bar
public Bar()
-
-
Method Details
-
getBackgroundColor
- See Also:
-
setBackgroundColor
Default bar fill color
Default
'rgba(0,0,0,0.1)'
-
getBorderWidth
- See Also:
-
setBorderWidth
Default bar stroke width
Default
0
-
getBorderColor
- See Also:
-
setBorderColor
Default bar stroke color
Default
'rgba(0,0,0,0.1)'
-
getBorderSkipped
- See Also:
-
setBorderSkipped
Default skipped (excluded) border for rectangle. Can be one of bottom, left, top, right
Default
'bottom'
-