On line guide/help

You are on page 26 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.

Index Prev. Next

Singlebarchart

Draw a single bar chart

Ideal for a simple chart consisting of a single bar. Multiple values are stacked for a visual comparison.


Parameters

Elements / attributes of the <singlebarchart> element:

Coordinate parameters (required) that define the print area of the chart
<x1> Starting X coordinate (upper/left corner)
<y1> Starting Y coordinate (upper/left corner)
<x2> Ending X coordinate (bottom/right corner)
<y2> Ending Y coordinate (bottom/right corner)
The coordinates can also be set with <x>, <y>, <width>, <height> instead of x1, y1, x2, y2 (one of the two methods is required).

Parameters that define the appearance of the graph:
<minValue> (numeric, float) Chart min value
<maxValue> (numeric, float) Chart max value (full scale). Set 0 (default) to use the sum of the values.
<orientation> (string) Chart orientation. Possible values:
h , horiz , horizontal : horizontal (default)
v, vert, vertical : vertical
<title> Chart title, printed above the chart (with the vertical orientation from version 1.0.12)
<titlefont> Font of the title (if not set, the default font is used)
<axisfont> Font of the axis labels
<axislinestyle> Line style of the axis (default: black line 0.2 mm) (version 1.0.12 or later)
<tickscount> Number of ticks of the axis (default 5) (version 1.0.12 or later)
<axisformat> Format mask of the axis labels, eg. P0 or C0 $. If not set, the labels use the separators of the number format variables and only the decimals needed (version 1.0.12 or later)
<showaxis> yes (default) or no: hides the axis (version 1.0.12 or later)
<datalist> Data to represent (required): the values are stacked in the bar (see the Datalist page)
<legend> Optional chart legend (if defined)

Optional parameters:
<printif> Optional expression: the element is printed only if the expression is true, eg. {doc.type}=1. See the Conditional printing page.

Example

A horizontal single bar chart: the three values are stacked in the bar.

Single bar chart example