# A wrong position of Vega tooltips

**URL:** <https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386>\
**Category:** Kibana\
**Created:** [November 19, 2018, 3:45pm UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386 "2018-11-19T15:45:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lidiya\_Chernova](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lidiya_chernova/32/21140_2.png) [@Lidiya\_Chernova](https://discuss.elastic.co/u/Lidiya_Chernova)\
**Post date:** [November 19, 2018, 3:45pm UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386/1 "2018-11-19T15:45:16Z")

</div>

Hi there 🖐

I have a problem with a tooltip position on a dashboard for second and further visualizations which are placed one above one in a row. Why it happens? How can I set the right position for the tooltip?

 ![tooltip](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d5d04df1dc766e2285dd5a2841b017a7a84cb1e4.png)  
The code for this tooltip below.

And the second question - how can I set an indention on each new definition in a tooltip? I use **"\n"** command but it doesn't work. Here a code:

```
{

```

"type": "symbol",  
"from": {"data": "at\_isu\_tasks"},  
"encode": {  
"enter": { "fill" :{  
"signal": "datum.isu\_task == 1 ? c\_black : 0"}  
},  
"update": {  
"x": {  
"signal": "x\_step_indexof(domain('x'), datum.hist.key) + x\_step/2"  
},  
"y": {  
"signal": "y\_step_indexof(domain('y'), datum.type) + y\_step/2"  
},  
"size": {"value": 80},  
"shape": {"value": "circle"},  
"fill": {  
"value": "#222222"  
},  
zindex: 1  
},  
"enter": {  
"tooltip": {  
**"signal": "'Команда: ' + datum.key + '\n' + 'Номер задачи: ' + datum.id\_task + '\n' + 'Статус: ' + datum.status + '\n' + 'Назначена: ' + datum.task\_start\_date + '\n' + 'Кому: ' + datum.employee\_name + '\n' + 'Роль: ' + datum.role"**  
}  
}  
}  
},

and it is still a plain text in a tooltip window:  
 ![tooltip_indention](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d56f8c41a978709b57251c681fe58325f32d0219.png)

Expected indentions I marked with red lines.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [November 19, 2018, 4:10pm UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386/2 "2018-11-19T16:10:33Z")

</div>

Hi

Can you file an issue for this with all the details. We will triage it .

> **[Build software better, together](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Felastic%2Fkibana%2Fissues%2Fnew%3Flabels%3D%26template%3DBug_report.md)**
>
> GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects.

cc @nyuriks

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![nyuriks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyuriks/32/26171_2.png) [@nyuriks](https://discuss.elastic.co/u/nyuriks)\
**Post date:** [November 19, 2018, 7:02pm UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386/3 "2018-11-19T19:02:39Z")

</div>

Yep, a known issue, there is a workaround. See [https://github.com/elastic/kibana/issues/25363](https://github.com/elastic/kibana/issues/25363)

---

<div class="post-metadata">

**Author:** ![Lidiya\_Chernova](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lidiya_chernova/32/21140_2.png) [@Lidiya\_Chernova](https://discuss.elastic.co/u/Lidiya_Chernova)\
**Post date:** [November 20, 2018, 7:09am UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386/4 "2018-11-20T07:09:47Z")

</div>

Thanks, Yuri.  
When are you planning to fix this issue?  
And what about the second question about indentions in tooltips? Is it possible to do?

---

<div class="post-metadata">

**Author:** ![Lidiya\_Chernova](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lidiya_chernova/32/21140_2.png) [@Lidiya\_Chernova](https://discuss.elastic.co/u/Lidiya_Chernova)\
**Post date:** [November 29, 2018, 11:52am UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386/5 "2018-11-29T11:52:01Z")

</div>

@nyuriks do you have good news about that problem?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 27, 2018, 11:52am UTC](https://discuss.elastic.co/t/a-wrong-position-of-vega-tooltips/157386/6 "2018-12-27T11:52:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
