# How to make the Y axis show state rather than value

**URL:** <https://discuss.elastic.co/t/how-to-make-the-y-axis-show-state-rather-than-value/189718>\
**Category:** Kibana\
**Created:** [July 10, 2019, 10:22am UTC](https://discuss.elastic.co/t/how-to-make-the-y-axis-show-state-rather-than-value/189718 "2019-07-10T10:22:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yess](https://avatars.discourse-cdn.com/v4/letter/y/d2c977/32.png) [@yess](https://discuss.elastic.co/u/yess)\
**Post date:** [July 10, 2019, 10:22am UTC](https://discuss.elastic.co/t/how-to-make-the-y-axis-show-state-rather-than-value/189718/1 "2019-07-10T10:22:50Z")

</div>

Is there any way for me to use a timeline to show the mains state (either 0 or 1) for a particular gateway over time (i.e. the y-axis will show the state instead of the count)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 10, 2019, 9:05pm UTC](https://discuss.elastic.co/t/how-to-make-the-y-axis-show-state-rather-than-value/189718/2 "2019-07-10T21:05:36Z")

</div>

Kibana visualizations do not display raw document values. They display aggregated values. For a time line, your data is divided into buckets for each time segment. Metric aggregations calculate values based on all documents in a time segment bucket. So the y-axis does not display individual document values but displays the metric aggregation value for all documents in a time bucket. You can configure different metric values for the y-axis. For example, you could display the max "mains state" instead of count.

 ![17%20PM](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca070069adb02452007ffca40f11251589c8ebc6.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:** [August 7, 2019, 9:05pm UTC](https://discuss.elastic.co/t/how-to-make-the-y-axis-show-state-rather-than-value/189718/3 "2019-08-07T21:05:45Z")

</div>

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