Box style rules

Customize the appearance of boxes in the Org Chart using box style rules, individual box styles, and custom CSS.

Styles overview

To avoid unexpected results, it’s important to consider the order in which styles are applied:

You can add new rules in the Design step and change their order. Additional options — Deactivate, Edit, Clone, and Delete — are available in the drop-down menu for each rule.

Design step overview

Box style rules

Create style rules that apply to boxes based on conditions. In the screenshot below, there are four rules that change the background color and box shape depending on the department. If any rules conflict, Org Chart will use the one that’s higher in the list.

Box style rules

When creating a rule, name it and then proceed to the following main sections for configuration:

Condition

The condition works the same way as in filtering. You can create a universal rule for all boxes by leaving it empty. Partially, it replaces custom CSS settings. The condition provides access to all data source fields and box types in Org Chart.

Box types

Styles

In the style properties, all numeric values are measured in pixels (px). Colors can be set using either the color picker or a specific value. Org Chart supports color names and codes in three formats: RGB, HEX, and HSL.

Note

When saving a rule, all style properties are applied, not just modified ones.

Edit rule

Legend

To display the rule in the chart legend, turn on the Display in legend toggle in the rule settings. Specify a Title and Color if needed:

Display in legend

After saving the settings, the rule is added to the chart legend. The legend is displayed in the top-left corner of the structure. You can add each style rule to the legend or display only specific ones:

Display in legend

The legend supports two modes: full and compact. Click the arrow below the legend to switch between modes:

Display in legend

Individual styles

To apply individual styles to a specific box, edit the Org Chart page and click the settings wheel in the selected box. Then click Style to modify it. The logic is the same as in the Box style rules.

Individual styles

The Apply button has a context menu with shortcuts for creating a rule based on the current style. It can be an arbitrary rule or based on a pre-defined condition by:

  • job title,

  • department,

  • box type.

Shortcuts

Note

Go to the next step of the configuration wizard Templates.