Inserting a Chart applet
The following HTML code inserts an instance of the Chart applet in the top row right-hand cell of the table in your application page.
<APPLET NAME="shoeChart" CODEBASE="..\..\.." CODE="lotus.chart.ChartApplet" WIDTH=472 HEIGHT=352>
<PARAM NAME="backgroundImageName" VALUE="KS_chartbg.gif">
<PARAM NAME="parseDirection" VALUE="column">
<PARAM NAME="plotLayout" VALUE="Pie">
<PARAM NAME="rendering" VALUE="3D">
</APPLET>
Within the APPLET tag, the various attributes do the following:
- NAME assigns a reference name to the applet so that you can refer to it in your code.
- CODEBASE specifies the base URL of the applet. That is, the directory or folder that contains the applet's code. If this attribute is not specified, then the document's URL is used.
- CODE gives the name of the file that contains the applet's compiled Applet subclass. This file is relative to the base URL of the applet. It cannot be absolute.
- WIDTH and HEIGHT define the size of the applet's display region in the HTML document. This is measured in pixels.
Each PARAM tag for the Chart applet lets you set specific applet configuration options. The option is specified by the NAME attribute and the option value is specified with the VALUE attribute.
- "backgroundImageName" specifies the filename for a chart background graphic .
- "parseDirection" lets you specify the way that you want the Chart data parsed.
- "plotLayout" lets you specify the type of chart that you want the applet to display.
- "rendering" sets the type of rendering for the Chart graphic. This application uses a 3-D (three dimensional) rendering of a pie chart.