graph chart

Advanced Pie Chart

2D / 3D Pie Chart, version 3.2
by Sirius Computer Consultants Limited

Applet Example 2

Here the graph applet is configured to read the configuration data from the HTML <PARAM> tags and to acquire the graph data from a text file.

 

The graph data is acquired from the text file piedata.txt ( click here to view ) and the graph properties are set by the following HTML code,

<applet code="PiechartApplet.class" width="600" height="420" archive="Piechart.jar">

<!-- Data files -->
<PARAM name="chartdata" value="piedata.txt">

<!-- Start Up Parameters -->
<PARAM name="LOADINGMESSAGE" value="Pie Chart Loading - Please Wait.">
<PARAM name="STEXTCOLOR" value="0,0,100"> <!-- Message Text Color-->
<PARAM name="STARTUPCOLOR" value="200,225,255"> <!-- Applet Background color -->

<!-- Chart Switches -->
<PARAM name="3D" value="true"> <!-- 3D mode On/Off -->
<PARAM name="Slabels" value="true"> <!-- Segment Labels On/Off -->
<PARAM name="legend" value="true"> <!-- Legend On/Off -->

<!-- Chart Characteristics -->
<PARAM name="nPies" value="3"> <!-- Number of Pies-->
<PARAM name="depth3D" value="20"> <!-- Depth of 3D effect, number of Pixels -->
<PARAM name="ndecplaces" value="0"> <!-- Number of Decimal places -->
<PARAM name="3Dangle" value="50"> <!-- 3D Angle -->

<!-- Additional font information -->
<PARAM name="font14" value="Arial,N,10"> <!-- Value Font -->
<PARAM name="font15" value="Arial,N,10"> <!-- Segment labels Font -->

<!-- Additional color information -->
<PARAM name="color16" value="255,255,255"> <!-- background color -->
<PARAM name="color18" value="100,100,100"> <!-- label color -->

<!-- Legend Information -->
<PARAM name="legendfont" value="Arial,N,10"> <!-- Legend Font -->
<PARAM name="legendposition" value="475,200"> <!-- Legend Position -->
<PARAM name="legendtitle" value="Legend Title"> <!-- Legend Title -->
<PARAM name="LegendBackground"value="255,255,255">
<PARAM name="LegendBorder"value="125,125,125">
<PARAM name="LegendtextColor"value="0,0,0">

<!-- Title -->
<!-- <PARAM name="title" value="text|position|font|color"> -->
<PARAM name="title" value="Sales by Region|200,15|Arial,BI,14|100,100,100">

<!-- Free Form Text -->
<!-- <PARAM name="textn" value="text|position|font|color"> -->
<PARAM name="text1" value="Product X|100,45|Arial,B,12|0,0,175">
<PARAM name="text2" value="Product Y|350,45|Arial,B,12|0,0,175">
<PARAM name="text3" value="Product Z|175,220|Arial,B,12|0,0,175">

<!-- Pie Data -->
<!-- x,y,size,number of segments, seperation -->
<PARAM name="Pie1" value="50,75,150,6,0">
<PARAM name="Pie2" value="350,75,150,6,10">
<PARAM name="Pie3" value="175,250,150,6,10">

<!-- Pie Segement Labels -->
<PARAM name="pie1label1" value="North America">
<PARAM name="pie1label2" value="Europe">
<PARAM name="pie1label3" value="Asia">
<PARAM name="pie1label4" value="Africa">
<PARAM name="pie1label5" value="Australia">
<PARAM name="pie1label6" value="South America">

<PARAM name="pie2label1" value="North America">
<PARAM name="pie2label2" value="Europe">
<PARAM name="pie2label3" value="Asia">
<PARAM name="pie2label4" value="Africa">
<PARAM name="pie2label5" value="Australia">
<PARAM name="pie2label6" value="South America">

<PARAM name="pie3label1" value="North America">
<PARAM name="pie3label2" value="Europe">
<PARAM name="pie3label3" value="Asia">
<PARAM name="pie3label4" value="Africa">
<PARAM name="pie3label5" value="Australia">
<PARAM name="pie3label6" value="South America">


<!-- Segment Data -->
<!-- <PARAM name="segmentN" value="series color|legend label"> -->
<PARAM name="segment1" value="115,152,164|North America">
<PARAM name="segment2" value="99,99,156|Europe">
<PARAM name="segment3" value="185,53,8|Asia">
<PARAM name="segment4" value="239,214,115|Africa">
<PARAM name="segment5" value="0,63,68|Australia">
<PARAM name="segment6" value="17,97,158|South America">

</applet>

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

 

 

Examples

Contents

Introduction

Applet Examples
Servlet Examples
Applet - Servlet Combination

Licensing and Purchasing Options

Documentation

Further Information and Support

More Graph and Chart Functions