# How to visualize objects in a Data Table

**URL:** https://discuss.elastic.co/t/how-to-visualize-objects-in-a-data-table/310296
**Category:** Kibana
**Created:** [July 21, 2022, 1:18pm UTC](https://discuss.elastic.co/t/how-to-visualize-objects-in-a-data-table/310296 "2022-07-21T13:18:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Matanueces](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matanueces/32/108641_2.png) [@Matanueces](https://discuss.elastic.co/u/Matanueces)
#### Post date: [July 21, 2022, 1:18pm UTC](https://discuss.elastic.co/t/how-to-visualize-objects-in-a-data-table/310296/1 "2022-07-21T13:18:42Z")

</div>

Hello,

I am new to ElasticStack and I am having a problem in representing this data. I have an "object" with three fields, name, most\_common\_difference and missing\_value\_difference, and I would like to make a table in which it would be seen on one side:

| name | most\_common\_difference |
| --- | --- |
| name\_1 | 0.012 |
| name\_2 | 0.014 |

And on the other side:

| name | missing\_value\_difference |
| --- | --- |
| name\_1 | 0.011 |
| name\_2 | 0.024 |

When I look at the data in discover, , it is in array form:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e7d65eaa6c49a55c9508499cffa36221ab01b76e.png)

If I do a query with the devtools, they look like this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7d622d71664cd78ab2022eb455a20e37065dfca5.png)

Is there any way to represent this data in the way I am looking for?

Thank you for the inconvenience

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [July 21, 2022, 1:37pm UTC](https://discuss.elastic.co/t/how-to-visualize-objects-in-a-data-table/310296/2 "2022-07-21T13:37:23Z")

</div>

No, because Elasticsearch is only indexing your data in the flattened form you see in Discover. If you want to retain the relationship between the name and difference values, the best supported way is to index each item in this array as a separate document

---

<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: [August 18, 2022, 1:37pm UTC](https://discuss.elastic.co/t/how-to-visualize-objects-in-a-data-table/310296/3 "2022-08-18T13:37:46Z")

</div>

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