Chart data not persisting

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

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

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?

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

[{"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"}}]

Thanks Paul - will investigate this today - GH Issue

1 Like

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

Will try and get an 0.11.6 out today

2 Likes

Working great now!
Thank you :smiley:

1 Like

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