# Diagrams

Diagrams are charts which are based on the data available in the report. Beware that even if a graph is placed in a band, the data used in that graph is taken from the whole report. Normally a diagram is positioned in bands that are only output once - otherwise diagrams are displayed multiple times.

To create a diagram, add a chart to your layout and click on 'Run Designer'.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2F3wiIxVK09lgN2TjftnSd%2FDiagramms.png?alt=media&#x26;token=0c4e6d9c-6003-4777-bd41-4a083300be92" alt=""><figcaption><p>How to navigate to Run Designer of Diagrams</p></figcaption></figure>

Here, you can define via series, arguments and properties how the chart should look like.&#x20;

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2Fj0riSvBZ5hWooH2pHmbP%2Fimage.png?alt=media&#x26;token=8559d02a-7cf2-4e4b-bdb5-3a93d6e73cd6" alt=""><figcaption><p>Run Designer view</p></figcaption></figure>

* The link between data and diagrams is made via series
* Every series contains a grouping argument (x-axis) and a value (y-axis) which is usually calculated using an aggregation function (sum, count, average, etc.)
* For the use of 2D diagrams, series can be added individually

{% hint style="info" %}
To configure the 'Text Pattern' fields please use the following expressions:&#x20;

* {A} for the value from the selected field&#x20;
* {V} Absolute number, for counting the number of times the value occurs.
* {VP:0%} Percentage (expandable with .0 for more decimal places)
  {% endhint %}
