here are two work arounds to fix chart when you stop updating
[{"id":"2b3c5960.1660f6","type":"inject","z":"252a67bcee0134e1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"toggle","payloadType":"str","x":270,"y":60,"wires":[["49339acd.b54774"]]},{"id":"49339acd.b54774","type":"gate","z":"252a67bcee0134e1","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"default","x":430,"y":80,"wires":[["8e6f715583b01f1d"]]},{"id":"cb2cb236.c9b3c","type":"inject","z":"252a67bcee0134e1","name":"toggle both","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"toggle","payloadType":"str","x":220,"y":140,"wires":[["49339acd.b54774","fb7be398.4546f"]]},{"id":"e0cd27f4.f7deb","type":"function","z":"252a67bcee0134e1","name":"","func":"msg.payload = flow.get(\"counter1\") || 0;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":140,"wires":[["49339acd.b54774","fb7be398.4546f"]]},{"id":"8e6f715583b01f1d","type":"function","z":"252a67bcee0134e1","name":"payload += 1","func":"if(msg.payload > 9) msg.payload = 0;\nflow.set(\"counter1\", msg.payload +1);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":600,"y":80,"wires":[["dc24a0a56e1a425b","d3a91b0d.f45e"]]},{"id":"fb7be398.4546f","type":"gate","z":"252a67bcee0134e1","name":"","controlTopic":"control","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"default","x":430,"y":200,"wires":[["f812d1fdab9aa949"]]},{"id":"27fc9c1c49cbd2f0","type":"inject","z":"252a67bcee0134e1","name":"click to start injection","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"label","v":"line1","vt":"str"}],"repeat":"5","crontab":"","once":false,"onceDelay":0.1,"topic":"line1","payload":"","payloadType":"date","x":530,"y":140,"wires":[["e0cd27f4.f7deb"]]},{"id":"dc24a0a56e1a425b","type":"ui_chart","z":"252a67bcee0134e1","name":"","group":"0b2c5ed94dd5b6dc","order":5,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":870,"y":80,"wires":[["8375836e.549898"]]},{"id":"d3a91b0d.f45e","type":"trigger","z":"252a67bcee0134e1","name":"","op1":"","op2":"chart","op1type":"nul","op2type":"flow","duration":"15","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":760,"y":20,"wires":[["dc24a0a56e1a425b"]]},{"id":"7987a2a6.9080ec","type":"inject","z":"252a67bcee0134e1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"toggle","payloadType":"str","x":270,"y":220,"wires":[["fb7be398.4546f"]]},{"id":"f812d1fdab9aa949","type":"function","z":"252a67bcee0134e1","name":"payload += 1","func":"if(msg.payload > 9) msg.payload = 0;\nflow.set(\"counter1\", msg.payload +1);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":600,"y":200,"wires":[["1a3e7791.634608"]]},{"id":"4e27aa0d.f93144","type":"inject","z":"252a67bcee0134e1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[]","payloadType":"json","x":410,"y":300,"wires":[["6aac4fef.05ad28","dc24a0a56e1a425b"]]},{"id":"8375836e.549898","type":"trigger","z":"252a67bcee0134e1","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"10","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1020,"y":80,"wires":[["33278488.e28394"]]},{"id":"1a3e7791.634608","type":"change","z":"252a67bcee0134e1","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"[\t {\t \"series\":[\"line1\"],\t \"data\":[[$append([$flowContext(\"chart1\")],{\"x\": $millis(),\"y\": $$.payload})\t ]],\t \"labels\":[\"\"]\t }\t]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":200,"wires":[["bead04515b51eed6"]]},{"id":"6aac4fef.05ad28","type":"change","z":"252a67bcee0134e1","name":"","rules":[{"t":"set","p":"chart1","pt":"flow","to":"[]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":340,"wires":[[]]},{"id":"33278488.e28394","type":"change","z":"252a67bcee0134e1","name":"","rules":[{"t":"set","p":"chart","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":80,"wires":[["ba3a45b6.6b68d8"]]},{"id":"bead04515b51eed6","type":"ui_chart","z":"252a67bcee0134e1","name":"","group":"0b2c5ed94dd5b6dc","order":5,"width":0,"height":0,"label":"chart1","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":980,"y":200,"wires":[["b5d9f342.251d3"]]},{"id":"ba3a45b6.6b68d8","type":"debug","z":"252a67bcee0134e1","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":880,"y":360,"wires":[]},{"id":"b5d9f342.251d3","type":"change","z":"252a67bcee0134e1","name":"","rules":[{"t":"set","p":"chart1","pt":"flow","to":"payload[0].data[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1150,"y":200,"wires":[[]]},{"id":"0b2c5ed94dd5b6dc","type":"ui_group","name":"Demo","tab":"4311353dbffb7643","order":1,"disp":true,"width":"10","collapse":false,"className":""},{"id":"4311353dbffb7643","type":"ui_tab","name":"Demo","icon":"dashboard","disabled":false,"hidden":false}]
First will send chart history after no messages received for x seconds
The second createsthe chart from stored data and new incoming value.