The Chart class defines Chart objects, which plot data from a data source, such as a spreadsheet, text file, or database. A Chart object has several component parts, shown in the diagram below.
By setting HTML parameters or API properties, you can configure the appearance of Chart objects on the Web page. For example, you can configure a chart to plot data in a bar, line, pie, radar, or area chart. Depending on the chart type, you can specify whether the chart is displayed in 2 or 3 dimensions. You can specify a chart title, footnote, and legend. You can also specify labels and value ranges for the x- and y-axes.
Chart objects read data from the InfoBus, a mechanism that provides data communication between Java applets. An instance of the FileReader applet parses data from the data source and publishes it to the InfoBus. The Chart object reads the data from the InfoBus and plots it.
<APPLET
CODE="lotus.chart.Chart"
NAME="myChart"
CODEBASE="../.."
ARCHIVE="jars/devpack_chart_app.jar"
WIDTH=500
HEIGHT=450>
<PARAM NAME="cabinets" VALUE="cabs/devpack_chart_app.cab">
</APPLET>
Once you've created a Chart object, you can set PARAM tags to change the look of the Chart. You can also use JavaScript to obtain a reference to the Chart object and manipulate it using the Chart API properties and methods.
First, instantiate the Chart object:
Then obtain a reference to the Chart instance using JavaScript code:
See also<APPLET
CODE="lotus.chart.Chart.class"
NAME="myChart"
CODEBASE="../.."
ARCHIVE="jars/devpack_chart_app.jar"
WIDTH=500
HEIGHT=450>
<PARAM NAME="cabinets" VALUE="cabs/devpack_chart_app.cab">
</APPLET>
var chartApplet = document.myChart
Examples
Charting file data example
Charting sheet data example
Charting user input data example
Embedding and Configuring Applets
Chart Object Model
Chart PARAM Tag Index
Chart API Index