Pie Chart



Applet Name: Pie Chart
Applet Source: Graph.java
Import(s): java.awt, java.applet, java.util
Feature(s): text, image
Author: Ciaran Treanor

Usage guide:

PieChart3D is a simple applet that takes three parameters:

depth - A number that specifies how tall the piechart is.

radius - The maximum (horizontal) radius of the piechart.

values - A list of comma-separated "number-color" combinations (max. 10). Accepted colours are green, red, blue, yellow, magenta, cyan, orange, pink, white and black.

Usage example:

<APPLET CODE="PieChart3D.class" WIDTH=200 HEIGHT=200>
<PARAM NAME=depth VALUE="30">
<PARAM NAME=radius VALUE="200">
<PARAM NAME=values VALUE="10-red, 150-green, 40-magenta, 50-yellow">
</APPLET>


Return to index.