# VEGA visualization - Text Mark

**URL:** <https://discuss.elastic.co/t/vega-visualization-text-mark/156901>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [November 15, 2018, 3:57pm UTC](https://discuss.elastic.co/t/vega-visualization-text-mark/156901 "2018-11-15T15:57:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kani05](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kani05](https://discuss.elastic.co/u/kani05)\
**Post date:** [November 15, 2018, 3:57pm UTC](https://discuss.elastic.co/t/vega-visualization-text-mark/156901/1 "2018-11-15T15:57:58Z")

</div>

Hi, i'm trying to do the following using Kibana 5.6.5 and VEGA Visualizations;

I have an Elasticsearch query, which will give results for multiple buckets, each contains sub buckets with unique values.

For example, consider Country and States

"buckets": [  
{  
"key": "USA",  
"doc\_count": 15  
"States": {  
"buckets": [  
{  
"key": "New York",  
"doc\_count": 10  
},  
{  
"key": "Texas",  
"doc\_count": 5  
}  
]  
},  
},  
{  
"key": "Canada",  
"doc\_count": 75  
"States": {  
"buckets": [  
{  
"key": "Ontario",  
"doc\_count": 23  
},  
{  
"key": "Alberta",  
"doc\_count": 52  
}  
]  
},  
}  
]

We would like to generate a 'Text Mark' visualization, which will be a hyperlink for each main bucket (Country), containing the concatenated sub bucket values (States), like below.

USA (New York, Texas) \>\>

Canada (Ontario, Alberta) \>\>

I have tried using 'transforms' and 'signals' to bind the data to the 'Text Mark', but was not successful.

Appreciate any help on this.

Thanks

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [November 16, 2018, 4:07am UTC](https://discuss.elastic.co/t/vega-visualization-text-mark/156901/2 "2018-11-16T04:07:10Z")

</div>

hello @nyuriks , can u plz help here when you find time...

Thanks  
Rashmi

---

<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:** [December 14, 2018, 4:07am UTC](https://discuss.elastic.co/t/vega-visualization-text-mark/156901/3 "2018-12-14T04:07:12Z")

</div>

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