# Kibana Vega-Lite interactive legend

**URL:** https://discuss.elastic.co/t/kibana-vega-lite-interactive-legend/197593
**Category:** Kibana
**Tags:** vega
**Created:** [August 31, 2019, 1:50pm UTC](https://discuss.elastic.co/t/kibana-vega-lite-interactive-legend/197593 "2019-08-31T13:50:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sinan\_Kaplan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sinan_kaplan/32/47173_2.png) [@Sinan\_Kaplan](https://discuss.elastic.co/u/Sinan_Kaplan)
#### Post date: [August 31, 2019, 1:50pm UTC](https://discuss.elastic.co/t/kibana-vega-lite-interactive-legend/197593/1 "2019-08-31T13:50:55Z")

</div>

Hi,  
I am wondering if there is a way to do interactive legend in vega- lite ? I want to select a field on legend and show only which i checked on the graph.

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [September 6, 2019, 11:51am UTC](https://discuss.elastic.co/t/kibana-vega-lite-interactive-legend/197593/2 "2019-09-06T11:51:20Z")

</div>

Hi,

You can use this example on how to create an interactive legend: [https://vega.github.io/vega/examples/interactive-legend/](https://vega.github.io/vega/examples/interactive-legend/)

---

<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: [October 4, 2019, 11:51am UTC](https://discuss.elastic.co/t/kibana-vega-lite-interactive-legend/197593/3 "2019-10-04T11:51:21Z")

</div>

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