On line guide/help

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

Index Prev. Next

Bar chart

Draw a bar chart

Draws a vertical or horizontal bar chart. If more than one measurement is displayed, they are printed side by side.


Parameters

Elements / attributes of the <barchart> element:

Coordinate parameters (required) that define the print area of ​​the legend:
<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 above parameters can alternatively be indicated in this way (one of the two methods is mandatory):
<x> Starting X coordinate (upper/left corner)
<y> Starting Y coordinate (upper/left corner)
<width> Width of the chart from the starting X coordinate
<height> Height of the graph starting from the starting Y coordinate

Parameters that define the appearance of the graph:
<orientation> (string) Chart orientation. Values ​​can be indicated in the various ways listed belows:
h , horiz , horizontal : horizontal
v, vert, vertical : vertical
<title> Chart title
<legend> Optional chart legend (if defined)
<maxValue> (numeric, float) Chart max value user for top Y scale. Set 0 for autoscale.
<border> Show or hide border. Possibile values:
0 Disable (hide) border
1 Enabled (show) border
1111 Enabled (shows) the border for each side of the frame area (left, top, right, bottom). You can show/hide each side of the border individually.
<barmargin > Bar margin (0 : no margin)
<barsize> Bar size. Width for vertical bar chart, height for horizontal bar chart. Set 0 for auto size.
<showvalues> Show or hide data values. Possibile values:
y, yes Show values
n, no Hide values
<titlefont> Sets the title font text style (if not set, the default font style will be used)
<axisfont> Sets the axis labels font style (if not set, the default font style will be used)
<measures> Defines a list of measures with the properties of each measure. There must be at least one measure.
<datalist> Defines the list of data to use in the chart. If a placeholder is used, it is dynamically replaced with the data.

Optional parameters:
<printif>: A simple expression prints this graphic element only if it evaluates to true. If it is not defined, the element is always printed.
The expression must be written using placeholders or constants and one of these comparison operators:
= (identical)
> (greater than)
< (less than)
>= (greater than or equal to)
<= (less than or equal to)
!= (not equal to)
Examples of expressions using placeholders/constants:
{data_set.doc_type}=1
{data_set.level}>={MIN_LEVEL}

Related topics / download links / see also..
21 - Font
36 - Datalist