Template:Pie chart/doc

Usage
The labels and values of up to 30 slices may be specified. All the parameters for six slices are included below; to include more slices, copy the code for one of the others, changing the digit at the end of each parameter name.


 * The parameter thumb specifies which side of the page the chart is floated to and defaults to, as with image files. To make the chart appear on the left side of the page, specify left.
 * The parameter caption specifies a string of text that appears on a line just before the legend.
 * The parameter other, if specified, will cause an "Other" item to appear in the legend.
 * Each labelN is a string of text that appears in the legend entry for a slice. Omitting it will cause a legend entry to not be shown for that slice.
 * Each valueN is the percentage that the slice represents. Do not include the percent sign. Also note that it is shown in the legend as written (just after the label), without any rounding or other reformatting.
 * Each colorN is a CSS color code or name. If omitted, it will default to the following hues:


 * 1) {{legend|red|red}}
 * 2) {{legend|green|green}}
 * 3) {{legend|blue|blue}}
 * 4) {{legend|yellow|yellow}}
 * 5) {{legend|fuchsia|fuchsia}}
 * 6) {{legend|aqua|aqua}}
 * 7) {{legend|brown|brown}}
 * 8) {{legend|orange|orange}}
 * 9) {{legend|purple|purple}}
 * 10) {{legend|sienna|sienna}}

Limitations

 * Minor issues with printing exist.
 * The values need to be percentages.
 * Google Chrome and Safari do not appear to anti-alias borders, so the lines are a bit jagged. (For Chrome, this issue seems to be resolved; tested with version 26.)
 * No labels can be put on the slices themselves.
 * Inherently, it is not possible to save a copy of the chart using the browser's "Save Image" function.
 * Max. number of slices that can be displayed: 30

Example
Produces:

Additional information
Complete details can be found in Wikipedia Template:Pie chart.