<diagram> is defined in the Business Graphics module.
The <diagram> container tag is used to draw pie, bar, or line
charts as well as graphs. It is quite complex with six internal
container tags.
Internal Tags
<data>
The data the diagram is to visualize,
in tabular form.
<colors>
The colors for different pie slices,
bars or lines.
<legend>
A separate legend with description of
the different pie slices, bars or lines.
<xaxis>
Used for specifying the quantity and
unit of the x-axis, as well as its scale, in a graph.
<yaxis>
Used for specifying the quantity and
unit of the x-axis, as well as its scale, in a graph or line chart.
<xnames>
Separate tag that can be used to give
names to put along the pie slices or under the bars. The names are
usually part of the data.
Pie
5305048,5137269,4399993,8865051
Bar
Denmark,Finland,Norway,Sweden
5305048,5137269,4399993,8865051
Denmark,951175,3556339,797534
Finland,966593,3424107,746569
Norway,857952,2846030,696011
Sweden,1654180,5660410,1550461
Sumbar
Denmark,27300,4200,10500
Finland,24400,231800,48800
Norway,9240,83160,215600
Sweden,32880,279480,102750
Normalized Sumbar
Denmark,27300,4200,10500
Finland,24400,231800,48800
Norway,9240,83160,215600
Sweden,32880,279480,102750
Line Chart
1992,1993,1994,1995,1996
0.166,0.154,0.157,0.179,0.172
0.223,0.175,0.191,0.229,0.218
0.161,0.141,0.142,0.158,0.155
0.172,0.128,0.130,0.149,0.140
Graph#60b0ff darkred
float c;
for (c=-2.0; c < 2.0; c+=0.1)
output( "%f,%f,", c, c * c );
output( "%f,%f", 2.0, 2.0 * 2.0 );
return flush();
float c;
for (c=-2.0; c < 2.0; c+=0.1)
output( "%f,%f,", c, c * c * c );
output( "%f", 2.0, 2.0 * 2.0 * 2.0 );
return flush();