3D Pie Chart

Top  Previous  Next  

File examples you can find in the package:

 

Sample XML for 3D Pie Chart:

<?xml version="1.0" encoding="iso-8859-1"?>

<graph>

       <general_settings bg_color="FFFFFF" />

       <header text="Test header" font="Verdana" color="000000" size="18" />

       <subheader text="Test Subheader" font="Verdana" color="000000" size="15" />

       <legend font="Verdana" font_color="000000" font_size="11" bgcolor="FFFFFF" alternate_bg_color="F0E7E2" border_color="C4A596" />

       <legend font="Verdana" font_color="000000" font_size="11" bgcolor="FFFFFF" alternate_bg_color="FFF9E1" border_color="BFBFBF" />

       <legend_popup font="Verdana" bgcolor="FFFFE3" font_size="10" />

       <pie_chart radius="120" height="35" angle_slope="50" alpha_sides="90" alpha_lines="80" />

               <data name="Ukraine" value="58.65" color="0000FF" />

               <data name="Finland" value="13.43" color="999999" />

               <data name="Slovakia" value="7.42" color="FFFF00" />

               <data name="Shweden" value="4.24" color="FF0000" />

               <data name="USA" value="2.83" color="333333" />

               <data name="Iraq" value="13.43" color="00FFFF" />

</graph>

 

Description:

 

Header tag of the XML file:

 

<?xml version="1.0" encoding="ISO-8859-1"?>

<graph>...</graph>

 

You should place a valid XML header at the beginning of every XML file. If you use symbols different from Latin-1 encoding, please set the right encoding for you. In order to get more universality you can use Unicode:

 

<?xml version="1.0" encoding="utf-8"?>

<graph>

 

Setting up the appearance of the chart:

 

<general_settings bg_color="FFFFFF" />

 

Data:

Attribute

Description

bg_color

"FFFFFF" - background general color

 

Setting up the top row of the Pie Chart header (the uppermost text):

 

<header text="Test header" font="Verdana" color="000000" size="18" />

 

Data:

Attribute

Description

text

'Test header' - Header content

font

'Verdana' -  Header font

color

'000000' - Header color

size

'18' - Header font size

 

Setting up the bottom row of the Pie Chart header (the text second from above):

 

<subheader text="Test Subheader" font="Verdana" color="000000" size="15" />

 

Data:

Attribute

Description

text

'Test subheader' - Header content

font

'Verdana' -  Header font

color

'000000' - Header color

size

'15' - Header font size

 

Setting up the legend (conformity of color, name, and percentage value of sectors on the diagram) of the circular diagram (an element in a framework):

 

<legend font="Verdana" font_color="000000" font_size="11" bgcolor="FFFFFF" alternate_bg_color="FFF9E1" border_color="BFBFBF" />

 

Data:

Attribute

Description

font

'Verdana' -  caption font

font_color

'000000' - caption color

font_size

'11' - caption font size

alternate_bg_color

"FFF9E1" - legend background alternate strip color

border_color

"BFBFBF" - legend border color

 

Setting up the view of the popup hint on mouse on the sectors of Pie Chart:

 

<legend_popup font="Verdana" bgcolor="FFFFE3" font_size="10" />

 

Data:

Attribute

Description

font

'Verdana' -  caption font

bgcolor

'FFFFE3' - popup background color

size

'10' - caption font size

 

Setting up the view of the Pie Chart:

 

<pie_chart radius="120" height="35" angle_slope="50" alpha_sides="90" alpha_lines="80" />

 

Data:

Attribute

Description

radius

"120" - circle radius

height

"35" - circle thickness

angle_slope

"50" - circle slope

alpha_sides

"90" - Pie Chart alpha-transparency

alpha_lines

"80" - Pie Chart lines alpha-transparency

 

Setting up data:

 

<data name="USA" value="2.83" color="333333" />

<data name="Ukraine" value="58.65" color="0000FF" />

...

 

Data:

Attribute

Description

name

"USA" - Pie Chart sector name

value

"2.83" - percent value (%). Sum of percent values for all sectors must be equal to 100% !

color

"333333" - Pie Chart sector color