# How to graph with a string on the y-axis?

**URL:** <https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043>\
**Category:** Kibana\
**Created:** [June 16, 2016, 7:05pm UTC](https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043 "2016-06-16T19:05:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [June 16, 2016, 7:05pm UTC](https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043/1 "2016-06-16T19:05:17Z")

</div>

Hello ,

I need to graph the time on the x-axis . Kibana only possible to position a integer on the y-axis .

Is there a method to graph a string on the y-axis ?

Thanks!

---

<div class="post-metadata">

**Author:** ![luis](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luis](https://discuss.elastic.co/u/luis)\
**Post date:** [June 17, 2016, 1:15pm UTC](https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043/2 "2016-06-17T13:15:06Z")

</div>

Hi,  
can you elaborate on what you mean by 'graph string on the y-axis' ? From what I understood, you just have to go to 'metrics', select the aggregation type you want, like sum or unique count, and the field you want to graph

---

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [June 17, 2016, 5:08pm UTC](https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043/3 "2016-06-17T17:08:08Z")

</div>

I need to use a string on the y-axis and not integer.  
For example a list of city,.

---

<div class="post-metadata">

**Author:** ![luis](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luis](https://discuss.elastic.co/u/luis)\
**Post date:** [June 20, 2016, 9:19am UTC](https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043/4 "2016-06-20T09:19:23Z")

</div>

Have you tried to aggregate by count or unique count in the y-axis metrics?

---

<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:** [July 6, 2017, 1:49pm UTC](https://discuss.elastic.co/t/how-to-graph-with-a-string-on-the-y-axis/53043/5 "2017-07-06T13:49:55Z")

</div>


