# How can an unique value of field can be shown in Y-axis

**URL:** <https://discuss.elastic.co/t/how-can-an-unique-value-of-field-can-be-shown-in-y-axis/197530>\
**Category:** Kibana\
**Created:** [August 30, 2019, 1:30pm UTC](https://discuss.elastic.co/t/how-can-an-unique-value-of-field-can-be-shown-in-y-axis/197530 "2019-08-30T13:30:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharath.krishn2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath.krishn2/32/130240_2.png) [@bharath.krishn2](https://discuss.elastic.co/u/bharath.krishn2)\
**Post date:** [August 30, 2019, 1:30pm UTC](https://discuss.elastic.co/t/how-can-an-unique-value-of-field-can-be-shown-in-y-axis/197530/1 "2019-08-30T13:30:43Z")

</div>

I'm tracking down the response times of each API call.  
I'm pushing the response time as a field into an ES index.  
I need to create a visualization of each API with the date histogram on X-axis and processing time (not the sum or count) in Y-axis.  
The goal is to get a graph of processing time over a period of time interval. But the problem is on Y-axis the aggregation shows the metrics like count or sum or average.  
But I want unique value of the processing time to be shown on Y-axis.

---

<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 30, 2019, 6:13pm UTC](https://discuss.elastic.co/t/how-can-an-unique-value-of-field-can-be-shown-in-y-axis/197530/2 "2019-08-30T18:13:35Z")

</div>

Hi @bharath.krishn2 -

So to make sure I understand, you aren't wanting to see the average of the response times, rather, you want to see each document's response time value represented individually on the y-axis?

In general, visualizations are only going to give you an aggregated view of the data. If you use a date histogram with sufficiently small interval, then in many cases average response time could basically be representing a single document anyway. (Depending on how far apart the timestamps are for each entry). But there isn't a way to visualize each individual document.

One hack would be add a sub bucket terms aggregation on something unique, like the `_id`, which would then split each time interval up into a different series per-document. But this is not going to be performant on large data sets, and I suspect it isn't what you are looking for anyway.

Does this help answer your question?

Thanks

Luke

---

<div class="post-metadata">

**Author:** ![bharath.krishn2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath.krishn2/32/130240_2.png) [@bharath.krishn2](https://discuss.elastic.co/u/bharath.krishn2)\
**Post date:** [September 2, 2019, 4:30pm UTC](https://discuss.elastic.co/t/how-can-an-unique-value-of-field-can-be-shown-in-y-axis/197530/3 "2019-09-02T16:30:02Z")

</div>

Thanks for the reply@lukeelmers .

Yes, I don't want the aggregation of a field on the Y-axis. Instead I need the actual value of the field from the document to be charted on the Y-Axis.

I tried the hack which you mentioned, but it didn't work out. There are millions of documents on the index and I'm getting memory issue in elastic search.

---

<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 30, 2019, 4:30pm UTC](https://discuss.elastic.co/t/how-can-an-unique-value-of-field-can-be-shown-in-y-axis/197530/4 "2019-09-30T16:30:09Z")

</div>

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