Class PieOptions
java.lang.Object
software.xdev.chartjs.model.options.Options<PieOptions,PieAnimation>
software.xdev.chartjs.model.options.PieOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Number
Default2 * Math.PI
protected Number
Default50 - for doughnut, 0 - for pie
protected ArcElements
protected Number
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
(Number circumference) Sweep to allow arcs to coversetCutoutPercentage
(Number cutoutPercentage) The percentage of the chart that is cut out of the middle.setElements
(ArcElements elements) setRotation
(Number 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
- See Also:
-
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
- See Also:
-
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
-