# Timelion Chart Custom Label Issue

**URL:** <https://discuss.elastic.co/t/timelion-chart-custom-label-issue/204604>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [October 22, 2019, 8:39am UTC](https://discuss.elastic.co/t/timelion-chart-custom-label-issue/204604 "2019-10-22T08:39:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_a\_griffiths](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_a_griffiths/32/54323_2.png) [@j\_a\_griffiths](https://discuss.elastic.co/u/j_a_griffiths)\
**Post date:** [October 22, 2019, 8:39am UTC](https://discuss.elastic.co/t/timelion-chart-custom-label-issue/204604/1 "2019-10-22T08:39:09Z")

</div>

Hi - Im trying to define a TimeLion visualisation usint the following expression

.es(_corr_,timefield=rt,split="DeviceVendor.keyword:10")

This works but the labels show ion the chart are as follows

q:_corr_ \> DeviceVendor.keyword:F-Secure \> count  
q:_corr_ \> DeviceVendor.keyword:Microsoft \> count  
q:_corr_ \> DeviceVendor.keyword:ArcSight \> count  
q:_corr_ \> DeviceVendor.keyword:Check Point \> count

I want to make these look a little tidier so tried to specify my own label by changing the expression to

.es(_corr_,timefield=rt,split="DeviceVendor.keyword:10").label("[$1]", "^.\* \> DeviceVendor.keyword:(\S+) \> .\*")

The labels now show

[F-Secure]  
[Microsoft]  
[ArcSight]  
q:_corr_ \> DeviceVendor.keyword:Check Point \> count

Note the issue with the last label - is this caused by this vendor string having a space in it? if so how can I change it so that the space is ignored and I get  
[Check Point] as the last label

Thanks for your help

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [October 28, 2019, 6:15pm UTC](https://discuss.elastic.co/t/timelion-chart-custom-label-issue/204604/2 "2019-10-28T18:15:01Z")

</div>

> [@j\_a\_griffiths](#):
>
> .label("[$1]", "^.\* \> DeviceVendor.keyword:(\S+) \> .\*")

Yes, that's the reason. If I'm not wrong you can fix the regex as the following:

```auto
.label("[$1]", "^.* > DeviceVendor.keyword(.*?) > .*")

```

---

<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:** [November 25, 2019, 6:24pm UTC](https://discuss.elastic.co/t/timelion-chart-custom-label-issue/204604/3 "2019-11-25T18:24:21Z")

</div>

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