# Vega - how can I prevent tooltips from being truncated when labels are too long?

**URL:** https://discuss.elastic.co/t/vega-how-can-i-prevent-tooltips-from-being-truncated-when-labels-are-too-long/241596
**Category:** Kibana
**Created:** [July 17, 2020, 7:37am UTC](https://discuss.elastic.co/t/vega-how-can-i-prevent-tooltips-from-being-truncated-when-labels-are-too-long/241596 "2020-07-17T07:37:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pma](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@pma](https://discuss.elastic.co/u/pma)
#### Post date: [July 17, 2020, 7:37am UTC](https://discuss.elastic.co/t/vega-how-can-i-prevent-tooltips-from-being-truncated-when-labels-are-too-long/241596/1 "2020-07-17T07:37:19Z")

</div>

Hi,

I'm trying to create a Vega visualization in Kibana. I'd like to display tooltips in my plots but since corresponding labels are too long, the tooltips are getting truncated and in my use case they become useless.

Is there any way to disable the truncating?

The example is shown below:  
 ![vega](https://us1.discourse-cdn.com/elastic/original/3X/4/6/460310095f6486c27ca765130ba12cdeb8328d0a.png)  
Visualization definition:

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v3.json",
  "description": "Stock prices of 5 Tech Companies Over Time.",
  "data": {
    "values": [
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 0, "y": 28},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 1, "y": 55},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 2, "y": 43},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 3, "y": 91}, 
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 4, "y": 81},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 5, "y": 53},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 6, "y": 19},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 7, "y": 87},
      {"url": "http://my-domain.com/crm/crm-customer-rest/unassignedCustomers/customer1", "x": 8, "y": 52}
    ]
  },
  "mark": "line",
  "encoding": {
    "x": {"field": "x", "type": "quantitative"},
    "y": {"field": "y", "type": "quantitative"},
    "tooltip": [
      {"field": "url", "type": "nominal"}
    ]
  }
}

```

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [July 31, 2020, 3:29pm UTC](https://discuss.elastic.co/t/vega-how-can-i-prevent-tooltips-from-being-truncated-when-labels-are-too-long/241596/2 "2020-07-31T15:29:14Z")

</div>

Hello,

Looks like that was done intentionally [here](https://github.com/elastic/kibana/pull/33465) but isn't currently configurable. You could submit an [enhancement request](https://github.com/elastic/kibana/issues/new?template=Feature_request.md)!.

Regards,  
Aaron

---

<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: [August 28, 2020, 3:29pm UTC](https://discuss.elastic.co/t/vega-how-can-i-prevent-tooltips-from-being-truncated-when-labels-are-too-long/241596/3 "2020-08-28T15:29:15Z")

</div>

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