Pie Chart
A Simple Utility for drawing Pie Charts.
NB Click on the colours in the Legend to see it animate.

<Applet Tag>

<APPLET CODE=Simulator.class WIDTH=800 HEIGHT=200 archive="Pie.jar" codebase="http://www.n.oman.btinternet.co.uk/">
<PARAM NAME="values" VALUE="2,3,4">
<PARAM NAME="units" VALUE="applets">
<PARAM NAME="unitprompt" VALUE="-">
<PARAM NAME="unitdec" VALUE="0">
<PARAM NAME="data1" VALUE="Servlets">
<PARAM NAME="data2" VALUE="Utilities">
<PARAM NAME="data3" VALUE="Games">
</APPLET>


Parameters
Values
A list of comma seperated values, upto 9 numbers in length, giving values between any range for pie chart segments.
units
A String consisting of the units value as should appear on the chart, examples include "£","units".
unitprompt
A single character, "-" or "+", "-" indicating that the units variable is shown after the value, "+" before, i.e. "+" with a units value of "£" would give labels of the type "£20", whereas "-" would give labels of the type "20£".
unitdec
Number of decimal places for labels.
data1
A title for data segment 0.
data2, etc.
A title for data segment 1 .


Download Pie.jar