# Retain clicked data when the plot is updated

**URL:** <https://community.plotly.com/t/retain-clicked-data-when-the-plot-is-updated/36761>\
**Category:** Dash Python\
**Created:** [March 27, 2020, 2:24am UTC](https://community.plotly.com/t/retain-clicked-data-when-the-plot-is-updated/36761 "2020-03-27T02:24:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)\
**Post date:** [March 27, 2020, 8:41pm UTC](https://community.plotly.com/t/retain-clicked-data-when-the-plot-is-updated/36761/5 "2020-03-27T20:41:06Z")

</div>

Have you tried the `uirevision` property?

> [@mega Preserving UI State, like Zoom, in dcc.Graph with uirevision with Dash](https://community.plotly.com/t/preserving-ui-state-like-zoom-in-dcc-graph-with-uirevision/15793):
>
> wave Hello everyone, happy monday slightly_smiling_face I’d to share with you a really cool dash-core-components prerelease: the ability to preserve UI state in the dcc.Graph between callbacks. Right now, if you’re updating the figure property of a dcc.Graph component, the graph’s “view” will get reset when the callback is fired. That is, if you zoom in your graph, click on the legend items, or twist a 3D surface plot, then those changes won’t be preserved across callback updates. For man…

---

_[View the full topic](https://community.plotly.com/t/retain-clicked-data-when-the-plot-is-updated/36761)._
