Class PieOptions
java.lang.Object
software.xdev.chartjs.model.options.Options<PieOptions,PieAnimation>
software.xdev.chartjs.model.options.PieOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalDefault2 * Math.PIprotected BigDecimalDefault50 - for doughnut, 0 - for pieprotected ArcElementsprotected BigDecimalDefault-0.5 * Math.PIFields 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:
ArcElementsinstance, ornullif not set
-
setElements
- Parameters:
elements- anArcElementsinstance, ornull- Returns:
- this instance for method chaining
-