KavaChart AlaCarte Applets
KavaChart's applets are a collection of
individual chart types that display data within a web browser.
They're all implemented using the core KavaChart packages, and
organized in a way that lets you add your own custom charts to the same
framework. Along with basic charting functions, these applets
also provide data
reading utilities, URL data polling functions, and image management
functions.
Installation
Install the applets by placing the
necessary
"jar" files in an accessible location on your server. These jar files
share
names with the applets they contain: lineApp.jar contains
com.ve.kavachart.applet.lineApp.class
and all the class files necessary for lineApp to run. You can use the
applet
CODEBASE tag to point to the location of your jar files, or you can
name
it directly with your applet ARCHIVE tag. Here's an example of an
applet
definiton:
<applet code=com.ve.kavachart.applet.lineApp archive=http://myserver/jars/lineApp.jar
width=500 height=300>
</applet>
Or, if you want to use the CODEBASE tag to
point to your jar files:
<applet code=com.ve.kavachart.applet.lineApp archive=lineApp.jar codebase=../../jars
width=500 height=300>
</applet>
Although you'll see a chart with this
definition,
it isn't very interesting. For starters, it contains internally
generated
data, and a default style. To improve the look of your chart, define
some applet parameters. Applets definitions can include a long list
of parameters with this form:
<param name=parameterName value=parameterValue>
Each applet understands a set of general
parameters
that are shared by all applets and server objects, and a set of
parameters that
are specific to the chart type you're working with. For example, all
applets
and servlets let you change the "backgroundImage"
beneath the chart, but
only speedoApp lets you change the type of gauge from full to 1/4.
Applet Parameters
A significant advantage of applets is the
ability to reload dynamic data, creating animated charts.
This feature is activated by using a "URL" dataset parameter together
with the "networkInterval" parameter.
Parameter |
value
type |
effect |
networkInterval |
Integer |
Applets that use URL datasets
will check
for new data every networkInterval seconds. |
maxNumDataPoints |
Integer |
Only for "StripChart" applet |
noRotations |
anything |
Use of this parameter with any
value disables rotations when the applet is drawn. This is a workaround
for certain applet printing bugs. Note: this option is disabled
when using java 1.2 or higher. |
dataProvider |
String |
You can use this class to install
the named DataProvider plugin. See our
manual
for more details. |
General Chart
Parameters
Most parameters are shared by all applets
and server objects. Applets can use any of the parameters
listed in the General Chart Properties chapter. If a parameter
isn't
relevant to a particular applet, it will be ignored.
Chart-specific
Parameters
Each chart type has its own set of
parameters
in addition to the general chart parameter set. You can find links to
chart-specific parameters here:
Area
Charts
Bar
and
Column Charts
Line
Charts
Pie
Charts
Speedo
Charts
Polar
and Kiviat Charts
Combination
Charts
Finance
Charts
Twin
Axis Charts
Bubble
Chart
HLOC,
Candlestick, and
Related Charts
Gantt
Chart
Sector
Map Chart
Contributed
Statistical Charts: Histogram, Box-Whisker, Pareto, Stem-Leaf