Hierarchy allows you to add multiple fields into a single group, making it easier to view a group of data fields that are bound in widgets with a single drag. Hierarchy can be created in the following ways:
NOTE: Custom and Auto hierarchy can be created from dimension fields and are applicable for grid widgets alone.
Auto hierarchy generates a hierarchy for all Date
fields automatically, along with its supported date formats.
For example, if the data source contains a date field, it generates one hierarchy field automatically in the dimension section, which contains default four child fields named Year, Quarter, Month, Day
.
You can drag and drop auto hierarchy
into the column
container and configure it with a grid widget
, as shown in the following image.
NOTE: Auto hierarchy can be generated for Date fields only.
Custom Hierarchy helps to create your own hierarchy field from the Dimensions
section. You can create a new hierarchy field with the needed child fields, making it easy to view groups of data and bind with widgets using a single field.
Custom hierarchy can be configured by following ways:
The Create New Hierarchy
option helps to create a new hierarchy field for the field you want to create in the Dimension
section.
Follow these steps to create a new hierarchy in the Dimension
section:
When hovering over the dimension field, an action
icon will appear at the right end of the field.
By clicking the action
icon, a menu popup will open as follows.
Select the Create New Hierarchy
option, and a custom hierarchy will be created for the selected field.
For example, if you create a new hierarchy for the Address
field, a new custom hierarchy called Address hierarchy
will be created as the parent field
, with Address
as the child field.
Adding another field to an existing hierarchy is achieved through the Add to Hierarchy
option.
Follow these steps to add any other field to an existing hierarchy:
When hovering over any other field, an action
icon will appear at the right end of the field.
By clicking the action
icon, a menu popup will open along with the Add to Hierarchy
option.
Hover over the Add to Hierarchy
option to see a list of all the created custom hierarchy fields.
Select any one hierarchy in the listed custom hierarchy to add a child field to it.
After the child field is added to the existing hierarchy, the result will be shown in the following image.
You can drag and drop custom hierarchy
into the column
container and configure it with a grid widget
, as shown in the following image.
Rearrange child fields
Rearranging child fields helps to change the order of child fields by dragging the fields back and forth.
For example, you can drag the City
field and drop it above the Country
field.
Rename parent field
This feature allows you to edit a custom hierarchy parent field by using the Rename
option from the action icon list.
Remove parent field
This feature allows you to remove all fields within a custom hierarchy, including the parent field. This action should be completed through the Remove
option in the action icon list.
Remove Child field
This feature allows you to remove a single child field by clicking the close icon
at the right end of the field.