To Visualise my Value stored in MongoDB2 in Node on a Diagram

Hey
in Node red I try to do a connection from MQTT-in Node to a Function and then to MongoDB2 in Node where I try to store the Value I had from MQTT with the Present Date. Now I only want to show all Values in my Database in a Graph(Dashboard Ui_chart ) and it seem difficult. can you please help me?

the Mongo DB, node red and MQTT have been installed in a Raspberry pi 5