Restart dashboard programmatically in kibana plugin

Hi All,

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

Thanks.

You cannot restart dashboards anyway.

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

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.

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

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.