# Tag clound in Element List

**URL:** <https://discuss.elastic.co/t/tag-clound-in-element-list/368648>\
**Category:** Kibana\
**Created:** [October 10, 2024, 7:12pm UTC](https://discuss.elastic.co/t/tag-clound-in-element-list/368648 "2024-10-10T19:12:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shell\_Dias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shell_dias/32/136785_2.png) [@Shell\_Dias](https://discuss.elastic.co/u/Shell_Dias)\
**Post date:** [October 10, 2024, 7:12pm UTC](https://discuss.elastic.co/t/tag-clound-in-element-list/368648/1 "2024-10-10T19:12:31Z")

</div>

I have a document that contains a list formatted as a dictionary.

How can I extract the first element or the value of an element by its key to create a tag cloud?

```auto
{
  "document_id": 1,
  "terms": [
    {
      "key": "apple",
      "value": 10
    },
    {
      "key": "banana",
      "value": 5
    },
    {
      "key": "cherry",
      "value": 7
    }
  ]
}

```
