# Timelion: how to scale y axis?

**URL:** https://discuss.elastic.co/t/timelion-how-to-scale-y-axis/75490
**Category:** Kibana
**Created:** [February 17, 2017, 12:44pm UTC](https://discuss.elastic.co/t/timelion-how-to-scale-y-axis/75490 "2017-02-17T12:44:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [February 17, 2017, 12:44pm UTC](https://discuss.elastic.co/t/timelion-how-to-scale-y-axis/75490/1 "2017-02-17T12:44:09Z")

</div>

Hi,

my values which are shown in a timelion chart are in percent.  
How can I scale the y axis to a fix range from 0 to 100?

---

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [February 17, 2017, 12:52pm UTC](https://discuss.elastic.co/t/timelion-how-to-scale-y-axis/75490/2 "2017-02-17T12:52:24Z")

</div>

found a workaround by plotting an invisible, static line at 100  
,.static(100).lines(show=false).label("")

but maybe there is a better way 😉

---

<div class="post-metadata">

### Author: ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)
#### Post date: [February 18, 2017, 1:37pm UTC](https://discuss.elastic.co/t/timelion-how-to-scale-y-axis/75490/3 "2017-02-18T13:37:25Z")

</div>

Try adding `.range(0, 100)` to the end of your series expression instead? So, for example:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/1/1313c292d3a53de83558b07ed39448c95222c3f8.png)

---

<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: [March 18, 2017, 1:37pm UTC](https://discuss.elastic.co/t/timelion-how-to-scale-y-axis/75490/4 "2017-03-18T13:37:39Z")

</div>

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