# Timelion split() auto creates yaxis()

**URL:** https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499
**Category:** Kibana
**Tags:** timelion
**Created:** [August 2, 2019, 9:53am UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499 "2019-08-02T09:53:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)
#### Post date: [August 2, 2019, 9:53am UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499/1 "2019-08-02T09:53:51Z")

</div>

Hi,

Thanks in advance for the time you would take to read this post  
I was wondering if there is a way to create yaxis() automatically  
For example, split(value:5) would make more sense on 5 different yaxis

I'm currently applying a filter on 'value=xxx' and copying it 5 times with different yaxis()... not cool at all. (Another example where creating functions with timelion would be lovely by the way)

Thanks  
Guillaume

---

<div class="post-metadata">

### Author: ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)
#### Post date: [August 2, 2019, 5:51pm UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499/2 "2019-08-02T17:51:23Z")

</div>

Hi @GitsBdr,

If I'm understanding correctly, you're asking about ways to remove all of the duplication when filtering on specific values?

Right now we don't have a great solution for that in timelion that I'm aware of, though [support for variables](https://github.com/elastic/kibana/issues/15545) is something that has come up before, so you may be interested in checking out that issue, or reading [the original issue](https://github.com/elastic/timelion/issues/87) from awhile back.

Is this the functionality you are looking for?

---

<div class="post-metadata">

### Author: ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)
#### Post date: [August 5, 2019, 1:47pm UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499/3 "2019-08-05T13:47:48Z")

</div>

Hi @lukeelmers ,

Thanks for your reply

I was asking about a way to auto create yaxis based on the limit set up in the split function with timelion  
If I split a metric by 5, I'll get 5 lines for example in my timelion but they might be populated by totally difference values, so I may need different yaxis to read those 5 lines  
I hope I'm clear enough haha

Thanks again

---

<div class="post-metadata">

### Author: ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)
#### Post date: [August 5, 2019, 3:36pm UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499/4 "2019-08-05T15:36:30Z")

</div>

Ah, yes unfortunately I don't believe we have a way to do that either, at the moment it requires duplicating with filters as you've done above, so that you can call each of the `yaxis()` functions explicitly

---

<div class="post-metadata">

### Author: ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)
#### Post date: [August 5, 2019, 3:55pm UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499/5 "2019-08-05T15:55:20Z")

</div>

I see,  
Is there any improvement coming soon about it or either about creating function with timelion ? I saw couple of topic/issue opened about it

---

<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: [September 2, 2019, 3:55pm UTC](https://discuss.elastic.co/t/timelion-split-auto-creates-yaxis/193499/6 "2019-09-02T15:55:24Z")

</div>

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