# Two fields from different docs as X&Y Axis

**URL:** <https://discuss.elastic.co/t/two-fields-from-different-docs-as-x-y-axis/38518>\
**Category:** Kibana\
**Created:** [January 6, 2016, 3:35pm UTC](https://discuss.elastic.co/t/two-fields-from-different-docs-as-x-y-axis/38518 "2016-01-06T15:35:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiorK](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@LiorK](https://discuss.elastic.co/u/LiorK)\
**Post date:** [January 6, 2016, 3:35pm UTC](https://discuss.elastic.co/t/two-fields-from-different-docs-as-x-y-axis/38518/1 "2016-01-06T15:35:53Z")

</div>

here is a situation that your help is needed 🙂

i want to be able to see in the Kibana graph which Y-Axis is field from one doc and the X-Axis is field from another doc.  
Notes:

1. both fields are numbers and i want to do aggregations on them.
2. for the issue the two fields also came from two different files.

i did that when the two fields are from the same doc.

any ideas?

Thanks in advance,  
LiorK.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 6, 2016, 9:39pm UTC](https://discuss.elastic.co/t/two-fields-from-different-docs-as-x-y-axis/38518/2 "2016-01-06T21:39:31Z")

</div>

You cannot do this if the docs have different mappings.

---

<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, 2:05pm UTC](https://discuss.elastic.co/t/two-fields-from-different-docs-as-x-y-axis/38518/3 "2017-07-06T14:05:39Z")

</div>


