# How to change the reference of visualization and dashboard

**URL:** https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065
**Category:** Kibana
**Created:** [May 31, 2022, 8:47pm UTC](https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065 "2022-05-31T20:47:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![William\_Bai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/william_bai/32/99514_2.png) [@William\_Bai](https://discuss.elastic.co/u/William_Bai)
#### Post date: [May 31, 2022, 8:47pm UTC](https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065/1 "2022-05-31T20:47:32Z")

</div>

I have a existing dashboard that I need to change it's data reference from a index pattern to a saved search. Or I can change its panels' reference to the saved search. Is there anyway to change the data reference of a dashboard or panels/visualizations?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/3/73f3de22fdd9b5d0273907b495c1350c5e80a3d9.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b4dba9af76f6ab0b90a7579af20060f241225dbb.png)

---

<div class="post-metadata">

### Author: ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)
#### Post date: [June 2, 2022, 5:57pm UTC](https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065/2 "2022-06-02T17:57:45Z")

</div>

Could you explain what exactly is it that you are trying to do? The representation you are seeing here is internal dashboard state; you should not be making any changes to it here. Any changes you make to the dashboard in the Dashboard app will be reflected here. Vice versa, if you make any changes to the dashboard through the saved object viewer, you are risking breaking the dashboard.

---

<div class="post-metadata">

### Author: ![William\_Bai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/william_bai/32/99514_2.png) [@William\_Bai](https://discuss.elastic.co/u/William_Bai)
#### Post date: [June 3, 2022, 8:47pm UTC](https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065/3 "2022-06-03T20:47:30Z")

</div>

Each visualization has a reference to a data source correct? (index pattern, saved search). I want to change the data source of a visualization from a index pattern to a saved search.

---

<div class="post-metadata">

### Author: ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)
#### Post date: [June 6, 2022, 6:01am UTC](https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065/4 "2022-06-06T06:01:57Z")

</div>

You need to change the visualization itself, and it will then be reflected in its representation on the dashboard.

---

<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 4, 2022, 6:02am UTC](https://discuss.elastic.co/t/how-to-change-the-reference-of-visualization-and-dashboard/306065/5 "2022-07-04T06:02:23Z")

</div>

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