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?
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_stepindexof(domain('x'), datum.hist.key) + x_step/2"
},
"y": {
"signal": "y_stepindexof(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:
Expected indentions I marked with red lines.