Class BarOptions
java.lang.Object
software.xdev.chartjs.model.options.Options<BarOptions,DefaultAnimation>
software.xdev.chartjs.model.options.BarOptions
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class software.xdev.chartjs.model.options.Options
animation, animations, events, hover, layout, legendCallback, maintainAspectRatio, onClick, onResize, plugins, responsive, responsiveAnimationDuration, scales
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetElements
(BarElements elements) setIndexAxis
(BarOptions.IndexAxis indexAxis) Sets the orientation of the bars.Methods inherited from class software.xdev.chartjs.model.options.Options
getAnimation, getAnimations, getEvents, getHover, getLayout, getLegendCallback, getMaintainAspectRatio, getOnClick, getOnResize, getPlugins, getResponsive, getResponsiveAnimationDuration, getScales, self, setAnimation, setAnimations, setEvents, setHover, setLayout, setLegendCallback, setMaintainAspectRatio, setOnClick, setOnResize, setPlugins, setResponsive, setResponsiveAnimationDuration, setScales
-
Field Details
-
indexAxis
-
elements
-
-
Constructor Details
-
BarOptions
public BarOptions()
-
-
Method Details
-
getElements
- Returns:
BarElements
instance, ornull
if not set
-
setElements
- Parameters:
elements
- anBarElements
instance, ornull
- Returns:
- this instance for method chaining
-
getIndexAxis
- Returns:
- the orientation of the bars
-
setIndexAxis
Sets the orientation of the bars.
"y"
results in horizontal bars.Default
"x"
-