# Restart dashboard programmatically in kibana plugin

**URL:** <https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056>\
**Category:** Kibana\
**Created:** [October 3, 2016, 11:27am UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056 "2016-10-03T11:27:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajav](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rajav](https://discuss.elastic.co/u/rajav)\
**Post date:** [October 3, 2016, 11:27am UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056/1 "2016-10-03T11:27:10Z")

</div>

Hi All,

I was wondering if there is a way we can restart the dashboard programmatically in a kibana plugin code.

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 3, 2016, 11:47am UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056/2 "2016-10-03T11:47:08Z")

</div>

You cannot restart dashboards anyway.

What problem are you having that you think you need to do this?

---

<div class="post-metadata">

**Author:** ![rajav](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rajav](https://discuss.elastic.co/u/rajav)\
**Post date:** [October 3, 2016, 11:52am UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056/3 "2016-10-03T11:52:15Z")

</div>

I shall dynamically select a field from the index and then refresh a bar chart (aggregated by count) based on the selected field from the drop down and the bar chart shall update with the selected field's data.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 3, 2016, 11:53am UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056/4 "2016-10-03T11:53:38Z")

</div>

How is that any different from when you normally build a bar chart based on a field?

---

<div class="post-metadata">

**Author:** ![rajav](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rajav](https://discuss.elastic.co/u/rajav)\
**Post date:** [October 3, 2016, 11:57am UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056/5 "2016-10-03T11:57:39Z")

</div>

I have only two fields and i don't wanted to create two visualizations. Just in a single visualization i need to have a drop down and as and when i select a field from dropdown it shall fire the graph change and the visualization shall show up.

---

<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:** [July 6, 2017, 1:37pm UTC](https://discuss.elastic.co/t/restart-dashboard-programmatically-in-kibana-plugin/62056/6 "2017-07-06T13:37:41Z")

</div>


