Hello @Simon01011
Thanks for this Function I would like to use it but have some problems
I read this Post about data manupilation and also read the Documentation from the Chart Element.
If I try to use your function with CopyPaste Node Red sad that it didn't no the Function Map
TypeError: msg.payload.map is not a function
Here are some Screenshots
PS. There is also a Timeshift from 2h between the Data and the graph
Thanks a lot in advance for your help.