graph chart

Stacked Horizontal Bar Graph Examples

Applet Example 8

 

Dynamic Methods demo

This example demonstrates how other page components can dynamically interact with the graphing applet to change chart properties and data values.

Click on the buttons below the graph to see the various effects.

For the full range of Dynamic methods available please see the
Documentation - Dynamic Methods section.

 

Setting the Graph 'Switches'
Setting the Color Properties
All of the graph properties can be dynamically updated in this manner. Here we demostrate this by changing grid Background Color property.
Changing the Data
The following buttons will change the Value of various data points

 

and here is the HTML code for the applet,

(note that the applet has been named, name='GRAPH' and that 'mayscript' has been added to the APPLET tag ),

<applet name="GRAPH" code="SHbarchartApplet.class" archive="SHbarchart.jar" width="450" height="440" mayscript>
<!-- Start Up Parameters -->
<PARAM name="LOADINGMESSAGE" value="Creating Chart - Please Wait.">
<PARAM name="STEXTCOLOR" value="0,0,100">
<PARAM name="STARTUPCOLOR" value="255,255,255">

<!-- Data files -->
<PARAM name="chartproperties" value="barprops.txt">
<PARAM name="chartdata" value="bardata.txt">

</applet>

 

The configuration parameters are taken from the text file barprops.txt ( click here to view )
and the graph data is read from the text file bardata.txt ( click here to view )

 

 

Note: If you are using the evaluation version then in the applet a pop-up window will appear upon the startup and an evaluation message will be incorporated by the servlet. Both these features have been removed from the licensed version. Licensing information can be found at http://www.jpowered.com/graph_chart/index.htm

 

 

 

<< back to Examples Index

<< back to Getting Started

Getting Started

Documentation

Examples

Tutorials

Purchase

Bar Graph Home

 

Graph & Charting

Pie Chart
Line Graph
Vertical Bar Graph
Stacked Bar Graph
Horizontal Bar Graph
more...

 

Advanced Data Grid Control