# VegaLite Chart should not respond to certain fields

**URL:** <https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708>\
**Category:** Kibana\
**Created:** [May 6, 2019, 6:36am UTC](https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708 "2019-05-06T06:36:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suhasgupta1](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@suhasgupta1](https://discuss.elastic.co/u/suhasgupta1)\
**Post date:** [May 6, 2019, 6:36am UTC](https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708/1 "2019-05-06T06:36:27Z")

</div>

Hi All,

We have problem related to Vega Lite Visualization. We have a stacked bar trellis chart created in Vega Lite which is working.  
Now we want this chart to respond to certain field selections in the dashboards. This chart e.g. should not react to **Location** field which is not part of this index which is used to build this Vega Lite visualization but the chart should change with **TF** field which is part of this index.  
Or generic requirement is Vega Lite chart should not change with respect to any field which is not available in the index used to create this Vega Lite chart.

I tried to put condition in the %Context%: True but in vain. Kindly help us in this regard.

Thanks & Regards  
Suhas Gupta

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 8, 2019, 1:12pm UTC](https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708/2 "2019-05-08T13:12:28Z")

</div>

@suhasgupta1

What happens when you turn on following advanced-setting in Kibana ((go to Management \> Advanced Settings)

`courier:ignoreFilterIfFieldNotInIndex`

Set this to true.

?

---

<div class="post-metadata">

**Author:** ![suhasgupta1](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@suhasgupta1](https://discuss.elastic.co/u/suhasgupta1)\
**Post date:** [May 16, 2019, 12:57pm UTC](https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708/3 "2019-05-16T12:57:35Z")

</div>

Hi thomasneirynck,

Thank you for replying. I tried that option it works fine on the built in charts in kibana. But it is **not** working for Vega Visualization. When I set to false, even built in charts go blank when a value is selected from a field which is not part of index. For true it works for built in charts only.  
Is there any other option which I can try ?

Thanks & Regards  
Suhas Gupta

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 16, 2019, 1:32pm UTC](https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708/4 "2019-05-16T13:32:28Z")

</div>

this seems like something I would log in the kibana repo [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new) as a feature request. Ideally Vega supports this setting as well.

---

<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:** [June 13, 2019, 1:36pm UTC](https://discuss.elastic.co/t/vegalite-chart-should-not-respond-to-certain-fields/179708/5 "2019-06-13T13:36:51Z")

</div>

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