---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/function-ref/TOOLTIP
  - ru/function-ref/TOOLTIP
  - href: en/function-ref/TOOLTIP.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/function-ref/TOOLTIP.html
editable: false
vcsPath: en/function-ref/TOOLTIP.md
---

# TOOLTIP



#### Syntax {#syntax}


```
TOOLTIP( text, tooltip [ , placement ] )
```

#### Description {#description}
Adds a small tooltip to a text or other markup function results. The `placement` argument manages the text positioning: `top`, `right`, `bottom`, `left` or `auto`. The default value is `auto`.

**Argument types:**
- `text` — `Markup | String`
- `tooltip` — `Markup | String`
- `placement` — `String`


**Return type**: `Markup`

#### Examples {#examples}

```
TOOLTIP(SIZE('Hello', '12px'), URL('https://ya.ru', 'Yandex'), 'top')
```

```
TOOLTIP([main_text], [tooltip_text])
```


#### Data source support {#data-source-support}

`ClickHouse 21.8`, `Files`, `Google Sheets`, `Microsoft SQL Server 2017 (14.0)`, `MySQL 5.7`, `Oracle Database 12c (12.1)`, `PostgreSQL 9.3`, `Trino`, `Yandex Documents`, `YDB`.
