|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
PieChart
PieChart[{y1, y2, ...}]
makes a pie chart with sector angle proportional to
,
, ... .
PieChart[{..., wi[yi, ...], ..., wj[yj, ...], ...}]
makes a pie chart with sector features defined by the symbolic wrappers
.
PieChart[{data1, data2, ...}]
makes a pie chart from multiple datasets
.
Details and OptionsDetails and Options
- Data elements for PieChart can be given in the following forms:
-
yi a pure sector value wi[yi,...] a sector with value
and wrapper
formi->mi a sector form with metadata 
- Data not given in these forms is ignored in forming the pie chart.
- Datasets for PieChart can be given in the following forms:
-
{e1,e2,...} list of elements with or without wrappers w[{e1,e2,...},...] wrapper applied to a whole dataset w[{data1,data1,...},...] wrapper applied to all datasets - The following wrappers can be used for chart elements:
-
Annotation[e,label] provide an annotation Button[e,action] define an action to execute when the element is clicked EventHandler[e,...] define a general event handler for the element Hyperlink[e,uri] make the element act as a hyperlink Labeled[e,...] display the element with labeling Legended[e,...] include features of the element in a chart legend Mouseover[e,over] make the element show a mouseover form PopupWindow[e,cont] attach a popup window to the element StatusArea[e,label] display in the status area when the element is moused over Style[e,opts] show the element using the specified styles Tooltip[e,label] attach an arbitrary tooltip to the element - In PieChart, Labeled and Placed allow the following positions:
-
"RadialOuter","RadialCenter","RadialInner" positions within sectors "RadialOutside","RadialInside","RadialEdge" positions outside sectors "RadialCallout" positions with callout lines {{s
,sr},{lx,ly}}scaled position
in the label at scaled polar position
in the sector - PieChart has the same options as Graphics with the following additions and changes:
-
ChartBaseStyle Automatic overall style for sectors ChartElementFunction Automatic how to generate raw graphics for sectors ChartLabels None labels for data elements and datasets ChartLayout Automatic overall layout to use ChartLegends None legends for data elements and datasets ChartStyle Automatic style for sector ColorFunction Automatic how to color sectors ColorFunctionScaling True whether to normalize arguments to ColorFunction LabelingFunction Automatic how to label sectors LegendAppearance Automatic overall appearance of legends PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotRange Automatic range of values to include PolarAxes False whether to draw polar axes PolarAxesOrigin Automatic where to draw polar axes PolarGridLines None polar gridlines to draw PolarTicks Automatic polar axes ticks SectorOrigin Automatic initial angle and radius of sectors SectorSpacing Automatic spacing between sectors - Possible settings for ChartLayout include
and
. - The arguments supplied to ChartElementFunction are the sector region
, the values
, and the metadata
from each level in a nested list of datasets. - A list of built-in settings for ChartElementFunction can be obtained from
. - The argument supplied to ColorFunction is
. - Style and other specifications from options and other constructs in PieChart are effectively applied in the order ChartStyle, ColorFunction, Style and other wrappers, and ChartElementFunction, with later specifications overriding earlier ones.
ExamplesExamplesopen allclose all
Basic Examples (5)Basic Examples (5)
New in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »







