Class DoughnutOptions
java.lang.Object
software.xdev.chartjs.model.options.Options<DoughnutOptions,DoughnutAnimation>
software.xdev.chartjs.model.options.DoughnutOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimal
Circumference in degrees.protected BigDecimal
Default50
protected ArcElements
protected BigDecimal
Rotation in degrees.Fields 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 TypeMethodDescriptionsetCircumference
(BigDecimal circumference) Sweep to allow arcs to cover in degreessetCutout
(BigDecimal cutout) The pixels as number of the chart that is cut out of the middle.setElements
(ArcElements elements) setRotation
(BigDecimal rotation) Starting angle to draw arcs from in degreesMethods 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
-
cutout
Default50
- See Also:
-
rotation
Rotation in degrees. Default0
.0
is at the top.- See Also:
-
circumference
Circumference in degrees. Default360
. -
elements
-
-
Constructor Details
-
DoughnutOptions
public DoughnutOptions()
-
-
Method Details
-
getCutout
- See Also:
-
setCutout
The pixels as number of the chart that is cut out of the middle. -
getRotation
- See Also:
-
setRotation
Starting angle to draw arcs from in degrees -
getCircumference
-
setCircumference
Sweep to allow arcs to cover in degrees -
getElements
- Returns:
ArcElements
instance, ornull
if not set
-
setElements
- Parameters:
elements
- anArcElements
instance, ornull
- Returns:
- this instance for method chaining
-