# Setting the max-value of Timelion's Y-axis dynamically

**URL:** https://discuss.elastic.co/t/setting-the-max-value-of-timelions-y-axis-dynamically/95671
**Category:** Kibana
**Tags:** timelion
**Created:** [August 3, 2017, 9:00am UTC](https://discuss.elastic.co/t/setting-the-max-value-of-timelions-y-axis-dynamically/95671 "2017-08-03T09:00:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anisen](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@anisen](https://discuss.elastic.co/u/anisen)
#### Post date: [August 3, 2017, 9:00am UTC](https://discuss.elastic.co/t/setting-the-max-value-of-timelions-y-axis-dynamically/95671/1 "2017-08-03T09:00:00Z")

</div>

Hi,

I am using the below Timelion expression to plot a Timelion Chart in Kibana for metricbeat data:

.es(index=metricbeat-\*, timefield='@timestamp', metric='avg:system.memory.used.bytes').divide(1073741824).label('Memory Used(in GB) ').color(green).yaxis(1,min=0, **max=8** ,null,'Memory(in GB)')

And it plots a chart of Used-Memory against the y-axis ranged from 0 to 8.

But, I want this max y-axis value to be taken dynamically from the field: **system.memory.total**

Please suggest.

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [August 3, 2017, 1:43pm UTC](https://discuss.elastic.co/t/setting-the-max-value-of-timelions-y-axis-dynamically/95671/2 "2017-08-03T13:43:17Z")

</div>

@anisen this isn't possible with Timelion currently, you can open up an enhancement request [here](https://github.com/elastic/kibana/issues/new) so we can gather feedback and gauge interest from the community.

---

<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 31, 2017, 1:43pm UTC](https://discuss.elastic.co/t/setting-the-max-value-of-timelions-y-axis-dynamically/95671/3 "2017-08-31T13:43:55Z")

</div>

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