The matrix chart supports using hierarchy in the X- and Y-population. By defining hierarchy you can show the chart for only population elements that are defined at a certain level. Use of hierarchy is supported for each matrix type. When hierarchy is defined, the chart has selection boxes on the X- and/or Y-axis in which you can select the level that must be shown in the chart.
In the figure below, the chart has 3 levels on the X-axis and 2 levels on the Y-axis. The chart on the left shows the application components that link business processes and devices. This looks the same as when you would create the chart without hierarchy. To create hierarchy, the business processes are connected to locations (in two levels, national and international) and the devices to nodes ("Server cluster"). By selecting different levels the chart will show the application components at location level and/or cluster level. The charts in the middle and on the right show examples of different levels.
Example of a chart with hierarchy
In a chart with hierarchy, the objects of the additional levels need to be connected to the objects of the X- and/or Y-population using composition or aggregation relations. You can choose to use hierarchy for both the X- and Y-population, but also for only one of them. To be able to use hierarchy in a matrix chart, the chart's advanced options must be activated.
To illustrate the use of levels, the following example is used for creating a matrix chart with levels.
Creating a matrix chart with population levels
- Add a chart of type matrix to the view using the quick-create popup window.
- Select the chart, click on the Definition , and tab, in Matrix type, select the type of your choice.
For the example chart, the type "Intermediate object" is selected. Also, the chart is renamed to "Intermediate object".
- On the Definitions tab, click the red cross Hierarchy relation on y-axis. It can be a Composition relation or Aggregation relation.
For the example chart, the Composition relation is selected for both axes because that relation type is used in the example view as shown above.
next to Advanced options to activate it. The window now shows additional settings for hierarchy. Determine for which axis you want to use hierarchy, and select the relation through which the hierarchy runs for the x-axis and/or y-axis in Hierarchy relation on x-axis and/or
- Click the Representation tab and activate Use hierarchy in x-population and/or Use hierarchy in x-population in accordance with the populations you are going to use hierarchy in.
For the example chart, both settings are activated.
- In the chart, click and , select the objects that must be shown in the top row of the chart. They form the X population. Because of the hierarchy that you want to create for the x-axis, not only select the elements on the lowest level, but also the elements of the upper levels that will be used in the hierarchy.
If needed, add filters. Filters can, for example, be used to select a specific element type by filtering on the basic profile of that type. If you use more than one filter you may need to switch to using OR filtering. By default, filtering in the population window behaves like AND filtering. To switch to OR filtering, click
For the example chart, the Business layer (containing the Business process objects) and Composite elements container (containing the Location objects) are selected. Basic profile filters are added for the Business process objects and the Location objects to show only the objects (the layer and the container also contain relations). Filtering is set to OR. , and then click in the filter section title. It turns to .
As a result, the chart now shows levels for the X-population. By clicking the you can select the different levels and view them.
- Click select the objects that must be shown in the left column of the chart, the Y-population. Add filters if needed.
For the example chart, the Technology layer is selected and Basic profile filters are added for the Device objects and Node objects to only show the objects (the layer also contains relations). Filtering is set to OR.
As a result, the chart now also shows levels for the Y-population. By clicking the
you can select the different levels and view them.
- Click and select the objects that link the objects from the X- and Y-population indirectly via two relations. The Z-population is used in the chart cells. If there is a relation between the objects via the object of the Z-population, the object name will be shown in the chart cell. Add filters if needed.
For the example chart, the Application layer is selected. That is where the Application component objects are located (the intermediate objects). A Basic profile filter for the Application component object is added to only show the objects (the layer also contains relations).
- Click and select the relations between the objects of the Z-population and the X-population. Select the layer in which these relations are located. Do not select the Relations folder within the layer.
If the relations are located in different layers, you could also choose to select a higher-level section of the model as the population, for example the model itself. This higher-level selection will automatically include all layers in the model. If multiple types of relations are available in this population, add a filter to specify the relation type that must be used in the population.
Make sure to set the relation direction in accordance with the existing relation direction(s) by clicking in the population window until the correct direction is shown.
For the example chart, the Application layer is selected for the ZX-population because that is where the serving relations between the application components (Z-population) and business processes (X-population) are located. There is no need to set a filter.
- Click select the relations between the objects of the Y-population and the Z-population. Select the layer in which these relations are located. Just like the ZX-population, do not select the Relations folder within the layer and select a higher-level section of the model as population if needed. Use filters if needed and set the correct relation direction.
For the example chart, the Technology layer is selected because that is where the realization relations between the devices (Y-population) and application components (Z-population) are located. There is no need to set a filter.
Your chart with levels is now ready. To make the object names in the cells more readable, the cell width and height can be adjusted on the Representation tab of the chart properties window.
Please take note that when publishing the matrix chart to HoriZZon, make sure you have selected the levels that you want to present in the chart. The levels cannot be changed in the view in a HoriZZon site.