Hello,
I am new to node red and I have problems creating simple multiple line chart. I red many examples and watch a lot of videos and I still dont know what I am doing wrong. I came so far that I am getting data to chart but only as a point. There is no real time x axis.
My code:
var l1 = msg.payload.L1; //get payload
var l2 = msg.payload.L2;
var l3 = msg.payload.L3;
var Napetost1 = [{
"series": ["L1"],
"data": [l1],
"labels": [""],
}];
var Napetost2 = [{
"series": ["L2"],
"data": [l2],
"labels": [""],
}];
var Napetost2 = [{
"series": ["L3"],
"data": [l3],
"labels": [""],
}];
msg.payload = [{
"series": ["L1", "L2", "L3"],
"data": [[l1], [l2], [l3]],
"labels": [""] }]
return msg;
Please if any one can tell me what I missed in all instructions I read.
br
Aleksander