Welcome to the forum @victorramos99
In order to make code more readable and importable it is important to surround your code with three backticks
```
like this
```
You can edit and correct your post by clicking the pencil icon.
See this post for more details - How to share code or flow json
Feed the data that you are giving to the database into a debug node and compare it with the required format described in node-red-dashboard/Charts.md at master · node-red/node-red-dashboard · GitHub
If you are a complete beginner with node-red then I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
If you search the forum for the title of your question it will find a number of hits that may be helpful.
If you are still stuck after that then come back and tell us which bit you have having difficulty with.