# MYSQL database to chart

**URL:** <https://discourse.nodered.org/t/mysql-database-to-chart/42973>\
**Category:** Dashboard\
**Created:** [21 March 2021 21:50 UTC](https://discourse.nodered.org/t/mysql-database-to-chart/42973 "2021-03-21T21:50:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 March 2021 22:08 UTC](https://discourse.nodered.org/t/mysql-database-to-chart/42973/2 "2021-03-21T22:08:25Z")

</div>

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](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

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](https://github.com/node-red/node-red-dashboard/blob/master/Charts.md)

If you are a complete beginner with node-red then I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). 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.

---

_[View the full topic](https://discourse.nodered.org/t/mysql-database-to-chart/42973)._
