# Create kibana visualization between 2 fields

**URL:** <https://discuss.elastic.co/t/create-kibana-visualization-between-2-fields/260509>\
**Category:** Kibana\
**Created:** [January 8, 2021, 7:58am UTC](https://discuss.elastic.co/t/create-kibana-visualization-between-2-fields/260509 "2021-01-08T07:58:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnum](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@vishnum](https://discuss.elastic.co/u/vishnum)\
**Post date:** [January 8, 2021, 7:58am UTC](https://discuss.elastic.co/t/create-kibana-visualization-between-2-fields/260509/1 "2021-01-08T07:58:11Z")

</div>

Hi,  
I am new to elasticsearch and kibana. I am trying to visualize one field against another field in kibana.  
For example, X-axis contains the jenkins build number (field 1) and Y-axis contains number of tests ran on that jenkins build (field 2).  
How can I draw a chat against these 2 fields?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [January 8, 2021, 6:03pm UTC](https://discuss.elastic.co/t/create-kibana-visualization-between-2-fields/260509/2 "2021-01-08T18:03:13Z")

</div>

Hi, welcome to the discuss forums! This should be possible using the standard visualizations in Kibana: Lens is what I would recommend if you're new, but the concept is the same for a bar chart or heat map visualization too.

On your X axis you will create a "Top values" or Terms aggregation, on the build number field.

On the Y axis you will create a metric that depends on how you're storing "number of tests". If the # of tests is the number of documents, then use `count`. Otherwise, maybe you store # of tests as a field. You can use `sum` on your field.

---

<div class="post-metadata">

**Author:** ![vishnum](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@vishnum](https://discuss.elastic.co/u/vishnum)\
**Post date:** [January 8, 2021, 7:03pm UTC](https://discuss.elastic.co/t/create-kibana-visualization-between-2-fields/260509/3 "2021-01-08T19:03:01Z")

</div>

Thanks Wylie. I somehow overlooked the lens type.

---

<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:** [February 5, 2021, 7:03pm UTC](https://discuss.elastic.co/t/create-kibana-visualization-between-2-fields/260509/4 "2021-02-05T19:03:16Z")

</div>

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