No problem.
Just to add you can send the chart an array of objects in one message rather than multiple.
This example also contains a workaround till issue is fixed
e.g.
[{"id":"98571d07252f3e61","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"0,0,8,0,0,0,2,2,2,2,2,2,2,2\",\"0,0,8,0,0,0,2,2,2,2,2,2,2,2\",\"0,0,8,0,0,0,2,2,2,2,2,2,2,2\",\"0,0,8,0,0,0,2,2,2,2,2,2,2,2\"]","payloadType":"json","x":130,"y":100,"wires":[["3ae1dd08967d2334"]]},{"id":"3ae1dd08967d2334","type":"split","z":"d1395164b4eec73e","name":"simulate mqtt","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":280,"y":100,"wires":[["59965e5b7592fb31"]]},{"id":"59965e5b7592fb31","type":"function","z":"d1395164b4eec73e","name":"function 157","func":"\nconst v=msg.payload.split(',')\nlet gpc = []\n\nlet x = context.get('x') ?? 0\nx++\ncontext.set('x',x)\n\nfor (let i = 1; i < 9; i++) {\n const val = i*4 +v[i+5]\n gpc.push({x:x, v:val, series: \"t\" + i} )\n}\nmsg.payload = gpc\n\nif(x===1){\n let null_array = []\n for (let i = 1; i < 9; i++) {\n const val = i * 4 + v[i + 5]\n null_array.push({ x: x, v: null, series: \"t\" + i })\n }\n node.send({payload:null_array})\n}\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":160,"wires":[["f11b0e84da884431","c7b8e797bf25ce1e"]]},{"id":"f11b0e84da884431","type":"debug","z":"d1395164b4eec73e","name":"debug 2565","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":100,"wires":[]},{"id":"c7b8e797bf25ce1e","type":"ui-chart","z":"d1395164b4eec73e","group":"ff7cbf009b7b3034","name":"","label":"chart","order":5,"chartType":"line","category":"series","categoryType":"property","xAxisLabel":"","xAxisProperty":"x","xAxisPropertyType":"property","xAxisType":"linear","xAxisFormat":"s","xAxisFormatType":"custom","yAxisLabel":"","yAxisProperty":"v","ymin":"","ymax":"","action":"append","stackSeries":false,"pointShape":"false","pointRadius":4,"showLegend":true,"removeOlder":1,"removeOlderUnit":"3600","removeOlderPoints":"","colors":["#0095ff","#ff0000","#ff7f0e","#2ca02c","#a347e1","#d62728","#ff9896","#9467bd","#c5b0d5"],"textColor":["#666666"],"textColorDefault":true,"gridColor":["#e5e5e5"],"gridColorDefault":true,"width":6,"height":8,"className":"","x":570,"y":240,"wires":[[]]},{"id":"dac39029fdd65c11","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"action","v":"replace","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[]","payloadType":"json","x":290,"y":260,"wires":[["c7b8e797bf25ce1e"]]},{"id":"ff7cbf009b7b3034","type":"ui-group","name":"Form","page":"3bceecc44f91d26b","width":"6","height":"1","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false"},{"id":"3bceecc44f91d26b","type":"ui-page","name":"Custom Form Submission","ui":"1805777f90e92057","path":"/form-submission","icon":"home","layout":"grid","theme":"35ee7753b5b3599b","order":1,"className":"","visible":true,"disabled":false},{"id":"1805777f90e92057","type":"ui-base","name":"dashboard","path":"/dashboard","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false},{"id":"35ee7753b5b3599b","type":"ui-theme","name":"Theme Name","colors":{"surface":"#16234b","primary":"#1d44b9","bgPage":"#ecf2f8","groupBg":"#ffffff","groupOutline":"#cccccc"}}]
msg.payload
{
"x": 10,
"v": "42",
"series": "t1"
},
{
"x": 10,
"v": "82",
"series": "t2"
},
{
"x": 10,
"v": "122",
"series": "t3"
},
{
"x": 10,
"v": "162",
"series": "t4"
},
{
"x": 10,
"v": "202",
"series": "t5"
},
{
"x": 10,
"v": "242",
"series": "t6"
},
{
"x": 10,
"v": "282",
"series": "t7"
},
{
"x": 10,
"v": "322",
"series": "t8"
}
]
Function
const v=msg.payload.split(',')
let gpc = []
let x = context.get('x') ?? 0
x++
context.set('x',x)
for (let i = 1; i < 9; i++) {
const val = i*4 +v[i+5]
gpc.push({x:x, v:val, series: "t" + i} )
}
msg.payload = gpc
if(x===1){
let null_array = []
for (let i = 1; i < 9; i++) {
const val = i * 4 + v[i + 5]
null_array.push({ x: x, v: null, series: "t" + i })
}
node.send({payload:null_array})
}
return msg