Class DoughnutOptions
java.lang.Object
software.xdev.chartjs.model.options.Options<DoughnutOptions,DoughnutAnimation>
software.xdev.chartjs.model.options.DoughnutOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Number
Circumference in degrees.protected Number
Default50
protected ArcElements
protected Number
Rotation in degrees.Fields inherited from class software.xdev.chartjs.model.options.Options
animation, animations, events, hover, indexAxis, layout, legendCallback, maintainAspectRatio, onClick, onResize, plugins, responsive, responsiveAnimationDuration, scales
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetCircumference
(Number circumference) Sweep to allow arcs to cover in degreesThe pixels as number of the chart that is cut out of the middle.setElements
(ArcElements elements) setRotation
(Number rotation) Starting angle to draw arcs from in degreesMethods inherited from class software.xdev.chartjs.model.options.Options
getAnimation, getAnimations, getEvents, getHover, getIndexAxis, getLayout, getLegendCallback, getMaintainAspectRatio, getOnClick, getOnResize, getPlugins, getResponsive, getResponsiveAnimationDuration, getScales, self, setAnimation, setAnimations, setEvents, setHover, setIndexAxis, 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
.- See Also:
-
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
- See Also:
-
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
-