# Visualize a number (integer field)

**URL:** <https://discuss.elastic.co/t/visualize-a-number-integer-field/83779>\
**Category:** Kibana\
**Created:** [April 26, 2017, 11:19pm UTC](https://discuss.elastic.co/t/visualize-a-number-integer-field/83779 "2017-04-26T23:19:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cabishek188](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cabishek188](https://discuss.elastic.co/u/cabishek188)\
**Post date:** [April 26, 2017, 11:19pm UTC](https://discuss.elastic.co/t/visualize-a-number-integer-field/83779/1 "2017-04-26T23:19:01Z")

</div>

Hi all,

I want to visualize a simple integer field.

For e.g. my data is as below:

Number, Count  
1,20  
2,30,  
3,50

I want to plot a line graph with x-axis as 1,2,3 and corresponding y-axis as 20,30,50

Note: I tried with unique count/max/min etc but that is not what I want. In each case, it gives me the unique count of "Count" in my case, but not the actual value of the "Count" itself.

Count is an integer.

Please help.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [April 27, 2017, 1:12am UTC](https://discuss.elastic.co/t/visualize-a-number-integer-field/83779/2 "2017-04-27T01:12:53Z")

</div>

I posted this data in Kibana dev tools Console;

```auto
POST test4/test
{
  "number": 1,
    "count": 20
}
POST test4/test
{
  "number": 2,
    "count": 30
}
POST test4/test
{
  "number": 3,
    "count": 50
}

```

I created an index pattern for that `test4` data.

I created a new Visualization, selected Line Graph, and my test4 index pattern.

(NOTE: there might be more than one way to get a graph that looks like this)

I changed the metrics section from Count to Max of the Field "count".

I set the X-Axis bucket to Histogram with Field "number" and interval of 1.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c6b5005238d4b7b2e5d5ca87abcdcb71accd8927.png)

Hope this helps.

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![cabishek188](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@cabishek188](https://discuss.elastic.co/u/cabishek188)\
**Post date:** [April 28, 2017, 7:47pm UTC](https://discuss.elastic.co/t/visualize-a-number-integer-field/83779/3 "2017-04-28T19:47:49Z")

</div>

Thanks Lee. Got it working.

---

<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:** [May 26, 2017, 7:56pm UTC](https://discuss.elastic.co/t/visualize-a-number-integer-field/83779/4 "2017-05-26T19:56:26Z")

</div>

Closed on May 26, 2017, 7:56pm UTC

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