Storing Chart Data from a D2 Dashboard

Hello Joe thanks for the answer,

I'm afraid that's not working properly, propably my mistake tho. I made a function that now trims down my mqtt messages to a 3 key object. it is structured like so : msg.payload ={"timestamp":1725967766338,"value":25.5,"sourcePath":"Innen-Links"}

I append those messages to a file in seperate lines. I then read the file line by line, with a message being sent for every line. the messages payload, e.g. : "
{"timestamp":1725967766338,"value":25.5,"sourcePath":"Inside-Left"}" is being converted to a json object and then passed into the chart. but for some reason i have duplicates?
Duplicates

Here is the complete flow:

flows.json (8.3 KB)