graph chart

Advanced Pie Chart

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

Applet Example 1

Probably the simplest implementation, this example demonstrates setting up the graph in a web page so that both the configuration and graph data are read from the <PARAM> tags within the HTML page.

 

and here is the HTML code,

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

<!-- 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 to display values -->
<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">

<!-- Pie Data -->
<!-- <PARAM name="dataNseriesN" value="value|URL|Target Frame"> -->
<PARAM name="data1series1" value="10320">
<PARAM name="data2series1" value="6605">
<PARAM name="data3series1" value="3480">
<PARAM name="data4series1" value="1940">
<PARAM name="data5series1" value="2420">
<PARAM name="data6series1" value="1324">

<PARAM name="data1series2" value="8560">
<PARAM name="data2series2" value="7240">
<PARAM name="data3series2" value="3000">
<PARAM name="data4series2" value="1200">
<PARAM name="data5series2" value="1500">
<PARAM name="data6series2" value="1500">

<PARAM name="data1series3" value="3500">
<PARAM name="data2series3" value="2900">
<PARAM name="data3series3" value="3000">
<PARAM name="data4series3" value="1200">
<PARAM name="data5series3" value="4200">
<PARAM name="data6series3" value="3500">

</applet>

 

For a full explanation of and range of values for the above parameters please see the Documentation.

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