# Dashboard graph keep data after reboot

**URL:** https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749
**Category:** Dashboard
**Created:** [12 March 2022 11:30 UTC](https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749 "2022-03-12T11:30:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)
#### Post date: [12 March 2022 11:30 UTC](https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749/1 "2022-03-12T11:30:05Z")

</div>

Dashboard Graph Is there any way to retain data after Reboot?  
I have a graph setup to show history for a week but if power is lost or reboot all history is lost.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [12 March 2022 11:53 UTC](https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749/2 "2022-03-12T11:53:29Z")

</div>

You will need to keep your own cache I think. Perhaps using the file-based persistent storage for a global or flow variable.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 March 2022 12:08 UTC](https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749/3 "2022-03-12T12:08:57Z")

</div>

I believe that the chart passes on it's latest data each time it is given new data, so if you save that in persistent context then you can feed it back into the chart on startup. I am sure there are examples of that somewhere, though I could not find it myself with a quick search.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [12 March 2022 12:18 UTC](https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749/4 "2022-03-12T12:18:16Z")

</div>

eg - [Simple save and restore for node-red-dashboard chart (flow) - Node-RED](https://flows.nodered.org/flow/92920b4fd450bf92a3035e061947daa0)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [11 April 2022 12:19 UTC](https://discourse.nodered.org/t/dashboard-graph-keep-data-after-reboot/59749/5 "2022-04-11T12:19:06Z")

</div>

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