Class PieOptions
java.lang.Object
software.xdev.chartjs.model.options.Options<PieOptions,PieAnimation>
software.xdev.chartjs.model.options.PieOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimal
Default2 * Math.PI
protected BigDecimal
Default50 - for doughnut, 0 - for pie
protected ArcElements
protected BigDecimal
Default-0.5 * Math.PI
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 coversetCutoutPercentage
(BigDecimal cutoutPercentage) The percentage of the chart that is cut out of the middle.setElements
(ArcElements elements) setRotation
(BigDecimal rotation) Starting angle to draw arcs fromMethods 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
-
cutoutPercentage
Default50 - for doughnut, 0 - for pie
-
rotation
Default-0.5 * Math.PI
- See Also:
-
circumference
Default2 * Math.PI
-
elements
-
-
Constructor Details
-
PieOptions
public PieOptions()
-
-
Method Details
-
getCutoutPercentage
-
setCutoutPercentage
The percentage of the chart that is cut out of the middle. -
getRotation
- See Also:
-
setRotation
Starting angle to draw arcs from -
getCircumference
-
setCircumference
Sweep to allow arcs to cover -
getElements
- Returns:
ArcElements
instance, ornull
if not set
-
setElements
- Parameters:
elements
- anArcElements
instance, ornull
- Returns:
- this instance for method chaining
-