> For the complete documentation index, see [llms.txt](https://hexpandify.gitbook.io/hexpandify-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hexpandify.gitbook.io/hexpandify-docs/map-usage/map-visualization/icon-hat.md). Agents can also search and read this documentation through its [MCP server](https://hexpandify.gitbook.io/hexpandify-docs/~gitbook/mcp).

# Icon Hat

Each icon can have a green/red Hat

<figure><img src="https://2861864537-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUdbZXi5eYcVVJEns736y%2Fuploads%2FpcmW3B59XGJgImnY2Djz%2Fimage.png?alt=media&amp;token=1b19136f-0442-4abe-955b-9c61ea2cc88a" alt="" width="375"><figcaption></figcaption></figure>

#### 🧢 Interpreting the Hat Icon: Direction and Intensity of Change

In addition to color-coded performance, each icon may display a **hat indicator** representing the **direction and magnitude of change** compared to the previous value.

***

**🎯 What does the hat icon mean?**

The **hat** points **upward** or **downward**, and can appear in **two levels of intensity**:

* **🟥 Downward (Red)** → Indicates a decrease
* **🟩 Upward (Green)** → Indicates an increase

Each direction can appear in:

* **Level 1 (smaller arrow)** → Moderate change
* **Level 2 (larger arrow)** → Significant change

***

#### 📐 How it's calculated

We compare the current value to the previous one and calculate the **percentage difference**:

**Logic:**

* If the value **increased** → green arrow pointing up
* If the value **decreased** → red arrow pointing down

**Intensity:**

* **More than 15% change** → Level 2 (strong change)
* **Between 5% and 15%** → Level 1 (moderate change)
* **Less than 5%** → No hat icon shown

***

#### 🧠 Summary Table

| Change Direction | Difference (%) | Icon                           |
| ---------------- | -------------- | ------------------------------ |
| Upward           | > 15%          | 🟢 Large green arrow (Level 2) |
| Upward           | 5%–15%         | 🟢 Small green arrow (Level 1) |
| Downward         | > 15%          | 🔴 Large red arrow (Level 2)   |
| Downward         | 5%–15%         | 🔴 Small red arrow (Level 1)   |
| Any              | ≤ 5%           | No arrow                       |

***

This makes it easy to **visually detect changes over time**, not just the current performance — helping you spot trends at a glance.
