AmPieChart class creates pie/donut chart. In order to display pie chart you need to set at least three properties - dataProvider, titleField and valueField.
Name of the field in chart's dataProvider which holds slice's alpha.
Pie lean angle (for 3D effect). Valid range is 0 - 90.
Balloon text. The following tags can be used: value, title, percents, description. title: percents% (value)\ndescription
Read-only. Array of Slice objects.
Name of the field in chart's dataProvider which holds slice's color.
Specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color. ["#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25"]
Depth of the pie (for 3D effect).
Name of the field in chart's dataProvider which holds a string with description.
Example: [-0.2,0.2]. Will make slices to be filled with color gradients.
If there is more than one slice whose percentage of the pie is less than this number, those slices will be grouped together into one slice. This is the "other" slice. It will always be the last slice in a pie.
Opacity of the group slice. Value range is 0 - 1.
Color of the group slice. The default value is not set - this means the next available color from "colors" array will be used.
Description of the group slice.
If this is set to true, the group slice will be pulled out when the chart loads.
Title of the group slice. Other
Slices with percent less then hideLabelsPercent won't display labels This is useful to avoid cluttering up the chart, if you have a lot of small slices. 0 means all labels will be shown.
Opacity of a hovered slice. Value range is 0 - 1.
Inner radius of the pie, in pixels or percents.
The distance between the label and the slice, in pixels. You can use negative values to put the label on the slice.
Name of the field in dataProvider which specifies the length of a tick. Note, the chart will not try to arrange labels automatically if this property is set.
Label text. The following tags can be used: value, title, percents, description. title: percents%
Label tick opacity. Value range is 0 - 1. 0.2
Label tick color. #000000
Specifies whether data labels are visible.
Bottom margin of the chart.
Left margin of the chart.
Right margin of the chart.
Top margin of the chart.
Minimum radius of the pie, in pixels.
Pie outline opacity. Value range is 0 - 1.
Pie outline color. #FFFFFF
Pie outline thickness.
Opacity of the slices. You can set the opacity of individual slice too.
Color of the first slice. All the other will be colored with darker or brighter colors.
Lightness increase of each subsequent slice. This is only useful if pieBaseColor is set. Use negative values for darker colors. Value range is from -255 to 255.
You can set fixed position of a pie center, in pixels or in percents.
You can set fixed position of a pie center, in pixels or in percents.
Pull out duration, in seconds.
Pull out effect. Possible values are ">", "<", elastic" and "bounce". bounce
If this is set to true, only one slice can be pulled out at a time. If the viewer clicks on a slice, any other pulled-out slice will be pulled in.
Pull out radius, in pixels or percents 0.2
Name of the field in chart's dataProvider which holds a boolean value telling the chart whether this slice must be pulled or not.
Radius of a pie, in pixels or percents. By default, radius is calculated automatically.
Specifies whether the animation should be sequenced or all slices should appear at once.
Initial opacity of all slices. If you set startDuration higher than 0, slices will fade in from startAlpha.
Angle of the first slice, in degrees. This will work properly only if "depth3D" is set to 0. If "depth3D" is greater than 0, then there can be two angles only: 90 and 270. Value range is 0-360.
Duration of the animation, in seconds.
Animation effect. Possible values are ">", "<", "elastic" and "bounce". bounce
Radius of the positions from which the slices will fly in. default 5
Name of the field in chart's dataProvider which holds slice's title.
Name of the field in chart's dataProvider which holds url which would be accessed if the user clicks on a slice.
If url is specified for a slice, it will be opened when user clicks on it. urlTarget specifies target of this url. Use _blank if you want url to be opened in a new window. _self
Name of the field in chart's dataProvider which holds slice's value.
Name of the field in chart's dataProvider which holds boolean variable defining whether this data item should have an entry in the legend.
Adds event listener of the type "clickSlice" or "pullInSlice" or "pullOutSlice" to the object.
Always "clickSlice" or "pullInSlice" or "pullOutSlice".
If the type is "clickSlice", dispatched when user clicks on a slice. If the type is "pullInSlice", dispatched when user clicks on a slice and the slice is pulled-in. If the type is "pullOutSlice", dispatched when user clicks on a slice and the slice is pulled-out. If the type is "rollOutSlice", dispatched when user rolls-out of the slice. If the type is "rollOverSlice", dispatched when user rolls-over the slice.
any
You can trigger the animation of the pie chart.
any
You can trigger the click on a slice from outside. index - the number of a slice or Slice object.
any
Hides slice. index - the number of a slice or Slice object.
any
You can simulate roll-out of a slice from outside. index - the number of a slice or Slice object.
any
You can simulate roll-over a slice from outside. index - the number of a slice or Slice object.
any
Shows slice. index - the number of a slice or Slice object.
any