> For the complete documentation index, see [llms.txt](https://docs.infotopics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infotopics.com/drilldowntree/configuration/formatting/general-formatting-and-styling.md).

# General formatting and styling

Open the **Formatting** pane (icon tooltip "Formatting and styling, nodes and links") to set the overall look of your DrillDownTree: where the tree sits, how it is sorted, and the colors and sizes of nodes and links.

## General

<figure><img src="https://3696064508-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffen81laUQFBf286HYARr%2Fuploads%2Fgit-blob-38c022647364432639e2b759dec87cca43ae1f32%2FDDT_Formatting_General.png?alt=media" alt="The General section of the Formatting pane" width="465"><figcaption></figcaption></figure>

| Setting                   | Options        | Default | Description                                                                                                                                                                             |
| ------------------------- | -------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Layout mode**           | Center, Top    | Center  | **Top** places the tree at the top of the extension instead of centering it vertically.                                                                                                 |
| **Measure selector type** | Tabs, Dropdown | Tabs    | How viewers switch between measures: a row of tabs or a dropdown. See [Measure switching](https://docs.infotopics.com/drilldowntree/features/using-drilldowntree.md#measure-switching). |
| **Sort field type**       | Name, Value    | Value   | Sort nodes alphabetically by name or numerically by measure value.                                                                                                                      |
| **Sort on value**         | Asc., Desc.    | Desc.   | The sort direction.                                                                                                                                                                     |
| **Background**            | Color          | White   | The background color of the canvas.                                                                                                                                                     |
| **Hide null dimensions**  | Checkbox       | Off     | Hides nodes whose dimension member is `null`.                                                                                                                                           |
| **Hide Null/NaN values**  | Checkbox       | Off     | Hides nodes whose measure value is `null` or not a number, so missing or invalid values don't show up in the tree.                                                                      |

## Nodes

<figure><img src="https://3696064508-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffen81laUQFBf286HYARr%2Fuploads%2Fgit-blob-8c0fcccde910b7a287c8fb7a7e8a6135b41b9c3e%2FDDT_Formatting_Nodes.png?alt=media" alt="The Nodes section of the Formatting pane" width="465"><figcaption></figcaption></figure>

| Setting                      | Range  | Default        | Description                                                                                                                                                                                       |
| ---------------------------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Positive value**           | Color  | Blue (#128DFF) | The bar color of nodes with a positive value.                                                                                                                                                     |
| **Negative value**           | Color  | Pink (#FF0079) | The bar color of nodes with a negative value.                                                                                                                                                     |
| **Background**               | Color  | Grey (#DDDDDD) | The background of each node. Nodes with a null or NaN value also get this color.                                                                                                                  |
| **Maximum depth**            | 1–300  | 25             | The maximum number of levels, including the top (root) level. Once this depth is reached, the **+** button is no longer shown.                                                                    |
| **Max nodes per level**      | 2–50   | 14             | The maximum number of nodes in one level. One of these is the "Other" node that holds the remaining members. When the extension isn't tall enough, DrillDownTree shows fewer nodes.               |
| **Node height**              | 2–50   | 14             | The height of each node in pixels.                                                                                                                                                                |
| **Node width**               | 10–300 | 150            | The width of each node in pixels.                                                                                                                                                                 |
| **Node spacing**             | 1–10   | 1.5            | The horizontal distance between levels.                                                                                                                                                           |
| **Radius (in px)**           | 1–10   | 5              | The corner radius of the nodes. A higher value makes the nodes rounder.                                                                                                                           |
| **Truncate label (0 = off)** | 0–20   | 20             | The maximum number of characters of a node label. Longer labels end with "…", and viewers can hover to read the full label. With 0, labels are only shortened when they don't fit the node width. |

## Links

<figure><img src="https://3696064508-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffen81laUQFBf286HYARr%2Fuploads%2Fgit-blob-39176425d073189ac62b8e9245d8311cb36f8616%2FDDT_Formatting_Links.png?alt=media" alt="The Links section of the Formatting pane" width="465"><figcaption></figcaption></figure>

| Setting            | Range | Default              | Description                                        |
| ------------------ | ----- | -------------------- | -------------------------------------------------- |
| **Positive color** | Color | Light grey (#F5F5F6) | The color of links to nodes with a positive value. |
| **Negative color** | Color | Light pink (#FF9FCD) | The color of links to nodes with a negative value. |
| **Link width**     | 1–10  | 2                    | The thickness of the links in pixels.              |

Every color field has **Choose** to open the color picker and **Clear** to go back to the default color.

{% hint style="info" %}
Want to color nodes based on their values instead of positive or negative? Use [Conditional coloring](https://docs.infotopics.com/drilldowntree/configuration/customize-measures/conditional-coloring.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.infotopics.com/drilldowntree/configuration/formatting/general-formatting-and-styling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
