public class PieChartModel extends ChartModel
| Constructor and Description |
|---|
PieChartModel() |
| Modifier and Type | Method and Description |
|---|---|
List<Number> |
getData() |
int |
getDonutWidth()
Specify the donut stroke width.
|
LabelDirection |
getLabelDirection()
Label direction can be 'neutral', 'explode' or 'implode'.
|
String |
getLabelInterpolationFnc()
An interpolation function for the label value
|
int |
getLabelOffset()
Label position offset from the standard position which is half distance
of the radius.
|
int |
getStartAngle()
The start angle of the pie chart in degrees where 0 points north.
|
int |
getTotal()
An optional total you can specify.
|
boolean |
isDonut()
If specified the donut CSS classes will be used and strokes will be drawn
instead of pie slices.
|
boolean |
isShowLabel()
If a label should be shown or not.
|
void |
set(Number number) |
void |
setData(List<Number> data) |
void |
setDonut(boolean donut)
If specified the donut CSS classes will be used and strokes will be drawn
instead of pie slices.
|
void |
setDonutWidth(int donutWidth)
Specify the donut stroke width.
|
void |
setLabelDirection(LabelDirection labelDirection)
Label direction can be 'neutral', 'explode' or 'implode'.
|
void |
setLabelInterpolationFnc(String labelInterpolationFnc)
An interpolation function for the label value
|
void |
setLabelOffset(int labelOffset)
Label position offset from the standard position which is half distance
of the radius.
|
void |
setShowLabel(boolean showLabel)
If a label should be shown or not.
|
void |
setStartAngle(int startAngle)
The start angle of the pie chart in degrees where 0 points north.
|
void |
setTotal(int total)
An optional total you can specify.
|
addLabel, clearLabels, getAspectRatio, getChartPadding, getHeight, getLabels, getResponsiveOptions, getStyleClass, getWidth, isAnimateAdvanced, isAnimatePath, isReverseData, isShowTooltip, setAnimateAdvanced, setAnimatePath, setAspectRatio, setChartPadding, setHeight, setResponsiveOptions, setReverseData, setShowTooltip, setWidthpublic void set(Number number)
public int getStartAngle()
public void setStartAngle(int startAngle)
startAngle - the startAngle to setpublic int getTotal()
public void setTotal(int total)
total - the total to setpublic boolean isDonut()
public void setDonut(boolean donut)
donut - the donut to setpublic int getDonutWidth()
public void setDonutWidth(int donutWidth)
donutWidth - the donutWidth to setpublic boolean isShowLabel()
public void setShowLabel(boolean showLabel)
showLabel - the showLabel to setpublic int getLabelOffset()
public void setLabelOffset(int labelOffset)
labelOffset - the labelOffset to setpublic String getLabelInterpolationFnc()
public void setLabelInterpolationFnc(String labelInterpolationFnc)
labelInterpolationFnc - the labelInterpolationFnc to setpublic LabelDirection getLabelDirection()
public void setLabelDirection(LabelDirection labelDirection)
labelDirection - the labelDirection to setCopyright © 2016. All rights reserved.