# Chart data not persisting

**URL:** <https://discourse.nodered.org/t/chart-data-not-persisting/84700>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [18 January 2024 20:34 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700 "2024-01-18T20:34:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [18 January 2024 20:34 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/1 "2024-01-18T20:34:59Z")

</div>

Not sure why this is happening... but I have 2 charts, each in a different group.  
I have not added any additional features to persist data between browser connects on either chart.

**Chart 1** (weather data) does persist data when I refresh the browser, switch to different groups, or even connect by a different browser.

I have just added **Chart 2** which does not persist whenever I change groups, and I need to re-inject the data again to display the chart.

![chart](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/267121aa6dfabd0f2ad6514fbb7d30f77b078c29.gif)

What am I missing? why does one chart persist, and the other doesn't?

I'm assuming that it's somehow related to this browser error, which increments when I access that group?

![promise](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9e8a45dd81af2aab5b30824aa043fc44a4af2d32.jpeg)

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [18 January 2024 21:00 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/2 "2024-01-18T21:00:10Z")

</div>

Hi @Paul-Reed - sorry youre hitting this, not sure why its happening off top of my head.

Can you send a small sample here of the datasets you're trying to plot please?

Which version are you running on?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [18 January 2024 21:20 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/3 "2024-01-18T21:20:11Z")

</div>

I'm using v0.11.5

The example flow is shown below, it does persist, but errors occur when the browser is refreshed, such as one of the last points returns to it's starting point (I have action: Replace selected), and also there are numerous labels for a single datapoint that were not present before a refresh (I have cleared the browser cache and tried other browsers)

![duplicate entries](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a9f2ddd53c287dd525bacbeb5872433b345f87e9.jpeg)

```auto
[{"id":"f20764275f45c71c","type":"ui-chart","z":"4dd980c3a6520528","group":"cb03a2a3aec89425","name":"","label":"chart","order":9007199254740991,"chartType":"line","category":"index","categoryType":"property","xAxisProperty":"x","xAxisPropertyType":"msg","xAxisType":"time","yAxisProperty":"y","ymin":"","ymax":"","action":"replace","pointShape":"circle","pointRadius":"0","showLegend":true,"removeOlder":"52","removeOlderUnit":"604800","removeOlderPoints":"2000","colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"width":"25","height":"9","className":"","x":690,"y":1340,"wires":[[]]},{"id":"3310771e32af28ab","type":"inject","z":"4dd980c3a6520528","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{}","payloadType":"json","x":530,"y":1380,"wires":[["f20764275f45c71c"]]},{"id":"c8db054961164e8c","type":"inject","z":"4dd980c3a6520528","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-10T00:00:00.007Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-11T00:00:00.004Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-12T00:00:00.005Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-13T00:00:00.004Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-14T00:00:00.005Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-15T00:00:00.003Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-16T00:00:00.005Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-17T00:00:00.005Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-18T00:00:00.007Z\"},{\"index\":\"Close_Brothers\",\"y\":1.63013698630137,\"x\":\"2024-01-19T00:00:00.004Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-10T00:00:00.006Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-11T00:00:00.003Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-12T00:00:00.004Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-13T00:00:00.003Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-14T00:00:00.004Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-15T00:00:00.003Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-16T00:00:00.005Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-17T00:00:00.005Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-18T00:00:00.006Z\"},{\"index\":\"NSI_Fixed_Bond\",\"y\":1.8172602739726027,\"x\":\"2024-01-19T00:00:00.004Z\"},{\"index\":\"Santander-EA\",\"y\":9.592335197689629,\"x\":\"2024-01-10T00:00:00.007Z\"},{\"index\":\"Santander-EA\",\"y\":9.593670240506185,\"x\":\"2024-01-11T00:00:00.004Z\"},{\"index\":\"Santander-EA\",\"y\":9.595005469131438,\"x\":\"2024-01-12T00:00:00.005Z\"},{\"index\":\"Santander-EA\",\"y\":9.596340883591251,\"x\":\"2024-01-13T00:00:00.003Z\"},{\"index\":\"Santander-EA\",\"y\":9.59767648391149,\"x\":\"2024-01-14T00:00:00.005Z\"},{\"index\":\"Santander-EA\",\"y\":9.599012270118019,\"x\":\"2024-01-15T00:00:00.003Z\"},{\"index\":\"Santander-EA\",\"y\":9.60034824223671,\"x\":\"2024-01-16T00:00:00.005Z\"},{\"index\":\"Santander-EA\",\"y\":9.601684400293436,\"x\":\"2024-01-17T00:00:00.005Z\"},{\"index\":\"Santander-EA\",\"y\":9.60302074431408,\"x\":\"2024-01-18T00:00:00.007Z\"},{\"index\":\"Santander-EA\",\"y\":9.60435727432452,\"x\":\"2024-01-19T00:00:00.004Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-10T00:00:00.006Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-11T00:00:00.003Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-12T00:00:00.004Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-13T00:00:00.003Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-14T00:00:00.004Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-15T00:00:00.002Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-16T00:00:00.004Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-17T00:00:00.004Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-18T00:00:00.006Z\"},{\"index\":\"WestBrom-Websave\",\"y\":3.1643835616438354,\"x\":\"2024-01-19T00:00:00.003Z\"}]","payloadType":"json","x":530,"y":1340,"wires":[["f20764275f45c71c"]]},{"id":"cb03a2a3aec89425","type":"ui-group","name":"Data","page":"a3961e80f44af073","width":"25","height":"15","order":-1,"showTitle":true,"className":"","visible":"true","disabled":"false"},{"id":"a3961e80f44af073","type":"ui-page","name":"Analysis","ui":"ae3d4aeb3f977a90","path":"/analysis","icon":"home","layout":"grid","theme":"a965ccfef139317a","order":-1,"className":"","visible":"true","disabled":"false"},{"id":"ae3d4aeb3f977a90","type":"ui-base","name":"Dashboard","path":"/dashboard","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"]},{"id":"a965ccfef139317a","type":"ui-theme","name":"Default","colors":{"surface":"#ffffff","primary":"#0094ce","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"}}]

```

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [19 January 2024 08:38 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/4 "2024-01-19T08:38:07Z")

</div>

Thanks Paul - will investigate this today - [GH Issue](https://github.com/FlowFuse/node-red-dashboard/issues/498)

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [19 January 2024 15:47 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/5 "2024-01-19T15:47:41Z")

</div>

Fixed with [UI Chart - Ensure server-side store also replaces if "replace" action is chosen by joepavitt · Pull Request #500 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/pull/500)

Will try and get an `0.11.6` out today

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [19 January 2024 17:02 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/6 "2024-01-19T17:02:01Z")

</div>

> [@joepavitt](#):
>
> Will try and get an `0.11.6` out today

Working great now!  
Thank you 😃

---

<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:** [2 February 2024 17:02 UTC](https://discourse.nodered.org/t/chart-data-not-persisting/84700/7 "2024-02-02T17:02:54Z")

</div>

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