The function you show did not produce the data you said you were getting (the one with the extra bracket). In the function it should be something like
msg.payload.map(point => {return {x: point[0], y: point[1]}});
Thanks. Now al work.
The function you show did not produce the data you said you were getting (the one with the extra bracket). In the function it should be something like
msg.payload.map(point => {return {x: point[0], y: point[1]}});
Thanks. Now al work.