Package org.primefaces.model.charts.pie
Class PieChartOptions
java.lang.Object
org.primefaces.model.charts.ChartOptions
org.primefaces.model.charts.pie.PieChartOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DonutChartOptions
Used to set options to Pie chart component.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the circumferenceGets the cutoutGets the rotationbooleanGets the animateRotatebooleanGets the animateScalevoidsetAnimateRotate(boolean animateRotate) Sets the animateRotatevoidsetAnimateScale(boolean animateScale) Sets the animateScalevoidsetCircumference(Number circumference) Sets the circumferencevoidSets the cutoutvoidsetRotation(Number rotation) Sets the rotationMethods inherited from class org.primefaces.model.charts.ChartOptions
getAnimation, getAspectRatio, getElements, getLegend, getSubtitle, getTitle, getTooltip, isMaintainAspectRatio, isResponsive, setAnimation, setAspectRatio, setElements, setLegend, setMaintainAspectRatio, setResponsive, setSubtitle, setTitle, setTooltip
-
Constructor Details
-
PieChartOptions
public PieChartOptions()
-
-
Method Details
-
getCutout
Gets the cutout- Returns:
- cutout accepts pixels as number and percent as string ending with %.
-
setCutout
Sets the cutout- Parameters:
cutout- accepts pixels as number and percent as string ending with %.
-
getRotation
Gets the rotation- Returns:
- rotation
-
setRotation
Sets the rotation- Parameters:
rotation- Starting angle to draw arcs from.
-
getCircumference
Gets the circumference- Returns:
- circumference
-
setCircumference
Sets the circumference- Parameters:
circumference- Sweep to allow arcs to cover
-
isAnimateRotate
public boolean isAnimateRotate()Gets the animateRotate- Returns:
- animateRotate
-
setAnimateRotate
public void setAnimateRotate(boolean animateRotate) Sets the animateRotate- Parameters:
animateRotate- If true, the chart will animate in with a rotation animation.
-
isAnimateScale
public boolean isAnimateScale()Gets the animateScale- Returns:
- animateScale
-
setAnimateScale
public void setAnimateScale(boolean animateScale) Sets the animateScale- Parameters:
animateScale- If true, will animate scaling the chart from the center outwards.
-