2 inputs from a database to 1 chart, what am I doing wrong?

Thanks for your replies.
But I have tried for 4 hours to get this to work !

Any chance of showing me a flow, using dummy data instead of my database data, as I think this maybe what is my problem as it seems the chart doesn't know where the data is after all the manipulation ?

I am not familiar with using arrays and using the change node, seems to move that data down another level ?

Thanks