File examples you can find in the package:
- fcp-stacked-bars-3d-charts-v1.xml
- fcp-stacked-bars-3d-charts-v2.xml
- fcp-stacked-bars-3d-charts-v3.xml
Sample XML for 3D Stacked Bars Chart:
<?xml version="1.0" encoding="iso-8859-1"?>
<graph>
<general_settings bg_color="FFFFFF" show_background_side="0" background_side_color="CCCCCC" floor_color="CCCCCC" />
<header text="Test header" font="Verdana" color="000000" size="18" />
<subheader text="Test Subheader" font="Verdana" color="000000" size="15" />
<legend_popup font="Verdana" bgcolor="FFFFE3" font_size="10" />
<Xheaders rotate="90" color="000000" size="10" title="Test Xheaders" title_color="000000" />
<Yheaders color="000000" size="10" title="Test Yheaders" title_rotate="90" title_color="000000" />
<grid groove="1" grid_width="550" grid_height="225" grid_color="000000" grid_alpha="40" grid_thickness="1" />
<bars view_value="1" width="55" thickness="8" alpha="70" pieces_grow_bar="40" />
<data>
<categorie name="N. America">
<subcategorie name="Rice" value="30" color="FDC12E" />
<subcategorie name="Wheat" value="67" color="56B9F9" />
<subcategorie name="Grain" value="97" color="C9198D" alpha="70" />
</categorie>
<categorie name="Grain">
<subcategorie name="Rice" value="60" color="FDC12E" />
<subcategorie name="Wheat" value="5" color="56B9F9" />
<subcategorie name="Grain" value="51" color="C9198D" />
<subcategorie name="Coca" value="31" color="FF0000" alpha="70" />
</categorie>
<categorie name="Ukraine">
<subcategorie name="Rice" value="50" color="FDC12E" />
<subcategorie name="Wheat" value="10.74" color="56B9F9" />
<subcategorie name="Grain" value="22.46" color="C9198D" alpha="70" />
</categorie>
</data>
</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 Bar Chart:
<general_settings bg_color="FFFFFF" show_background_side="0" background_side_color="CCCCCC" floor_color="CCCCCC" />
Data:
Attribute |
Description |
bg_color |
FFFFFF - Bar Chart background general color |
show_background_side |
"0" Showing the back panel with the grid: '1' - to show '0' - not to show |
background_side_color |
'CCCCCC'- background back panel color |
floor_color |
'CCCCCC' - background bottom panel color |
Setting up the top row of the Bar 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 Bar 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 view of the popup hint on mouse on the sectors of Bar Chart:
<legend_popup font="Verdana" bgcolor="FFFFE3" font_size="10" />
Data:
Attribute |
Description |
font |
'Verdana' - caption font |
bgcolor |
'FFFFE3' - popup background color |
font_size |
'10' - caption font size |
Setting up the view of calibration text on axis X of the graph:
<Xheaders rotate="90" color="000000" size="10" title="Test Xheaders" title_color="000000" />
Data:
Attribute |
Description |
rotate |
'90' - Text rotation angle (there are two values possible, 0 and 90) |
color |
'000000'- text color |
size |
'10'- font size |
title |
'Test Xheaders' - caption content for X axis |
title_color |
'000000' - caption text color |
Setting up the view of graduation text on axis Y of the graph:
<Yheaders color="000000" size="10" title="Test Yheaders" title_rotate="90" title_color="000000" />
Data:
Attribute |
Description |
color |
'000000'- text color |
size |
'10'- font size |
title |
'Test Yheaders' - caption content for Y axis |
title_rotate |
'90' - Caption rotation angle (there are two values possible, 0 and 90) |
title_color |
'000000' - caption text color |
Setting up the view of the Bar Chart grid:
<grid groove="1" grid_width="550" grid_height="225" grid_color="000000" grid_alpha="40" grid_thickness="1" />
Data:
Attribute |
Description |
groove |
'1'- grid view: '0' - line |
grid_width, grid_height |
grid_width='550' grid_height='250' - grid height and width(in pixels) |
Following options (grid_color, grid_alpha, grid_thickness) will affect only if grid groove='0': |
|
grid_color |
'000000' - grid lines color |
grid_alpha |
'40' - grid lines alpha-transparency (from 0 to100 ) |
grid_thickness |
'1' - grid lines thickness |
Setting up the view of the bars:
<bars view_value="1" width="55" thickness="8" alpha="70" pieces_grow_bar="40" />
Data:
Attribute |
Description |
view_value |
'1' - Showing the value near the left side of the bar: '0' - not to show |
width |
'55' - bars width |
thickness |
'8' - bars thickness (depth) |
alpha |
'70' - bar transparency |
pieces_grow_bar |
'40' - Number of shares (pieces), on which maximal bar length will be divided when calculating the step. One share is equal to increment step when drawing bars. Bigger value of pieces_grow_bar means a smaller speed of bars. If pieces_grow_bar=1, bars will reach their real length instantly. |
Setting up the data:
<data>
<categorie name="N. America">
<subcategorie name="Rice" value="30" color="FDC12E" />
<subcategorie name="Wheat" value="67" color="56B9F9" />
<subcategorie name="Grain" value="97" color="C9198D" alpha="70" />
...
</categorie>
...
</data>
Data:
Attribute |
Description |
categorie name |
"N. America" - data on Y axis |
subcategorie name |
"Rice" - data series name that is displayed at the legend and at the popup hint |
value |
"30" - data on Y axis |
color |
"FDC12E" - chart bar color |
alpha |
'70' - transparency of the bar correspondent to the current data |