public final class PieOptions extends BaseOptions
Constructor and Description |
---|
PieOptions(AbstractChart<?,?> chart)
Builds the object storing the chart instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
double |
getCutoutPercentage()
Returns the the percentage of the chart that is cut out of the middle.
|
double |
getRotation()
returns the starting angle to draw arcs from.
|
void |
setCircumference(double circumference)
Sets the sweep to allow arcs to cover.
|
void |
setCutoutPercentage(double cutoutPercentage)
Sets the percentage of the chart that is cut out of the middle.
|
void |
setRotation(double rotation)
Sets the starting angle to draw arcs from.
|
addHandler, generateLegend, getAnimation, getDevicePixelRatio, getElements, getEvents, getHover, getLayout, getLegend, getLegendCallBack, getPlugins, getResponsiveAnimationDuration, getTitle, getTooltips, isAnimationEnable, isMaintainAspectRatio, isResponsive, onClick, onHover, onItemClick, onResize, removeHandler, setAnimationEnabled, setDevicePixelRatio, setEvents, setLegendCallBack, setMaintainAspectRatio, setResponsive, setResponsiveAnimationDuration
onAdd, onRemove
getChart
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public PieOptions(AbstractChart<?,?> chart)
chart
- chart instancepublic void setCutoutPercentage(double cutoutPercentage)
cutoutPercentage
- the percentage of the chart that is cut out of the middle.public double getCutoutPercentage()
Options.getCutoutPercentage()
.public void setRotation(double rotation)
rotation
- starting angle to draw arcs from.public double getRotation()
Options.getRotation()
.public void setCircumference(double circumference)
circumference
- the sweep to allow arcs to cover.public double getCircumference()
Options.getCircumference()
.