> ## Documentation Index
> Fetch the complete documentation index at: https://doc.qbilon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Diagrams

> Create a diagram view and define the data it displays.

A new diagram view can be created by clicking on the "`+`" button at the top of the Diagrams List in the `Custom Views` section.

## Adding Assets & Relations

Assets can be added via ...

* right-clicking on an asset/relation in the data schema and selecting `+ Add [...]` or
* left-clicking on an asset/relation in the data schema and selecting `Add +` in the emerging configuration panel on the left side.

Individual colors and shapes can be assigned to each asset and relation. In addition, analysis rules can be stored for each asset, which determine the color depending on certain properties.

### Multi-selection

Multiple assets/relations can be selected by holding the `Shift` key and then ...

* by clicking on each asset/relation individually or
* by holding down the left mouse button and drawing a selection rectangle around the desired assets/relations.

Afterwards, the selected assets/relations can be added via a right-click and choosing `Add Selected Assets` in the emerging context menu.

![Creating Diagrams: Multi-selection](https://mintcdn.com/qbilon-docs/aJQhbcvq7mtvhV0w/.gitbook/assets/02082b3a-7d64-4552-8ae0-b26d289084d7-screenshot-2026-10-08-141224.png?fit=max\&auto=format\&n=aJQhbcvq7mtvhV0w\&q=85\&s=c7c2af922e5670fc75bfc466381a38be)

Multi-selecting asset and relation types by holding the `Shift` key while defining a new view

Similarly, it is also possible to remove the selected assets.

### Adding a relation

A single relation can be added by directly clicking on it. Its source and target assets will be automatically added too.

![Creating Diagrams: Adding a relation](https://mintcdn.com/qbilon-docs/lr-P4KF_9wn8x9Vs/.gitbook/assets/e75c0003-e310-40aa-8cad-3112512f4e76-screenshot-2026-10-08-141519.png?fit=max\&auto=format\&n=lr-P4KF_9wn8x9Vs\&q=85\&s=c0ef70a9f23c803725da62cb20ea77f9)

Adding a single relation

### Adding an asset

A single asset can be added by directly clicking on it.

![Creating Diagrams: Adding an asset](https://mintcdn.com/qbilon-docs/lr-P4KF_9wn8x9Vs/.gitbook/assets/ce8ae309-ed14-476a-9249-76ca55e6d2c2-screenshot-2026-10-08-141615.png?fit=max\&auto=format\&n=lr-P4KF_9wn8x9Vs\&q=85\&s=77186b46a0e9ba2a591351f7a18b8cae)

Adding a single asset

## Changing Asset Appearance

**Color picker**
The color of assets can be changed using the color picker.

![Creating Diagrams: Changing Asset Appearance](https://mintcdn.com/qbilon-docs/lr-P4KF_9wn8x9Vs/.gitbook/assets/e04d35f2-e79e-49b9-9803-c97ffd0542fb-screenshot-2026-10-08-141705.png?fit=max\&auto=format\&n=lr-P4KF_9wn8x9Vs\&q=85\&s=d6ffa4ff20f7843c5ffe951fcedb01fa)

Color Picker

**Sublabels**
Sublabels are used to show a specific property value directly below an asset's name within diagram views. Every available asset property can be selected as sub-label.

**Asset shapes**
There are different asset shapes to select from: regular geometrical shapes and icons.

Icons make assets more appealing and intuitively understandable. Different icons can be selected for assets via the `Icon` tab.

![Creating Diagrams: Changing Asset Appearance](https://mintcdn.com/qbilon-docs/aJQhbcvq7mtvhV0w/.gitbook/assets/2609ae29-d868-4293-9101-e553e17d1546-screenshot-2026-10-08-141748.png?fit=max\&auto=format\&n=aJQhbcvq7mtvhV0w\&q=85\&s=488ecbd43852d556bc1fb7920488d61c)

**Asset Size**
The size of assets can be changed via `Width`.

## Changing Relations' Appearance

**"Line" vs. "Container"**
Relations can be shown as lines or containers (nested/hierarchical boxes). If "Container" was chosen, the source assets of the relation are shown as "group assets" that contain the target assets of the relation.

![Creating Diagrams: Changing Relations' Appearance](https://mintcdn.com/qbilon-docs/aJQhbcvq7mtvhV0w/.gitbook/assets/14e2f8d7-13a5-413e-b52b-cdf95b0f490a-screenshot-2025-09-19-154632.png?fit=max\&auto=format\&n=aJQhbcvq7mtvhV0w\&q=85\&s=f3da4920445c56d9110c4a63fd9287e2)

Relation Appearance: "Line" (left) vs. "Container" (right)

The "inverted" checkbox switches the role of source and target assets (i.e. the "direction" of the relation), so that the once nested assets are now shown as containers and vice versa.

![Creating Diagrams: Changing Relations' Appearance](https://mintcdn.com/qbilon-docs/Jmla3tEw4FRYjkNT/.gitbook/assets/8954500e-de60-4445-a19a-433642391675-screenshot-2026-10-08-142047.png?fit=max\&auto=format\&n=Jmla3tEw4FRYjkNT\&q=85\&s=798bbf7fa425752f8c495f12d54accf3)

Relation appearance example for "Containers": Here, "Switches" are shown as container nodes of "Sites".

**Start and end type**
For relations, different start/end styles can be defined.

![Creating Diagrams: Changing Relations' Appearance](https://mintcdn.com/qbilon-docs/lr-P4KF_9wn8x9Vs/.gitbook/assets/c904e11b-c395-48b7-989b-f3a03b4f578b-screenshot-2026-10-08-142203.png?fit=max\&auto=format\&n=lr-P4KF_9wn8x9Vs\&q=85\&s=d248b0fab3adb3a40a7ffadf0ed9cd10)

Start and end type of relations

**Line style**
Different styles for relation lines can be defined: `Solid`, `Dashed` and `Dotted`.

![Creating Diagrams: Changing Relations' Appearance](https://mintcdn.com/qbilon-docs/lr-P4KF_9wn8x9Vs/.gitbook/assets/f9e51ab5-a42b-42d3-8946-3b4805af6647-image.png?fit=max\&auto=format\&n=lr-P4KF_9wn8x9Vs\&q=85\&s=d0c9dfdb8c6ed206782cd859e733bcdc)

Relation Line Styles

## Structural Matching

The functionality of the "Enable structural matching" checkbox is described here: [Structural Constraints](https://doc.qbilon.io/08-creating-views/structural-constraints.md).

## Constraints & Analysis Rules (Coloring)

It is also possible to optionally define constraints and analysis rules for the selected asset/relation types.

* **Constraints**: show only asset/relation instances that fulfill the constraints.
* **Analysis**: asset/relation instances appear in the selected color if they fulfill the defined conditions.

Using the operators (`AND`/`OR`), multiple conditions for one constraint or analysis rule can be created.

![Creating Diagrams: Constraints & Analysis Rules (Coloring)](https://mintcdn.com/qbilon-docs/aJQhbcvq7mtvhV0w/.gitbook/assets/500de113-fdfd-4c83-804c-43084bdb44ff-screenshot-2026-10-08-142526.png?fit=max\&auto=format\&n=aJQhbcvq7mtvhV0w\&q=85\&s=83ad56d1abb938725443fb4e8a48145f)

Example for defining an analysis rule with two conditions.

![Creating Diagrams: Constraints & Analysis Rules (Coloring)](https://mintcdn.com/qbilon-docs/aJQhbcvq7mtvhV0w/.gitbook/assets/115b9265-ac10-4fcd-87f8-4ccb2db0464f-screenshot-2026-10-08-142950.png?fit=max\&auto=format\&n=aJQhbcvq7mtvhV0w\&q=85\&s=8c33f102d358c68f88699ab3554d4b58)Example of three analysis rules with different numbers of conditions.

If multiple “Analysis Rules” have been created, their priority follows the order from top to bottom, with rules placed higher up overriding those placed lower down. The position (and thus the priority) of the rule can be changed using drag and drop (click on the dot grid to the left of the rules).

## Diagram View Summary

In the "Summary" step, the final data schema of the diagram view is shown. As a last step, a name and an optional description for the view can be defined.

![Creating Diagrams: Diagram View Summary](https://mintcdn.com/qbilon-docs/Jmla3tEw4FRYjkNT/.gitbook/assets/9b25ee5c-6ef6-49f7-b5d5-e6bd590ae487-screenshot-2026-10-08-143337.png?fit=max\&auto=format\&n=Jmla3tEw4FRYjkNT\&q=85\&s=0a8aeec7f12249b8835fd98185330ae6)

Diagram view summary


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.