# Display line chart with data retrieved from mysql

**URL:** <https://discourse.nodered.org/t/display-line-chart-with-data-retrieved-from-mysql/94486>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, database, function-node\
**Created:** [9 January 2025 15:01 UTC](https://discourse.nodered.org/t/display-line-chart-with-data-retrieved-from-mysql/94486 "2025-01-09T15:01:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [9 January 2025 15:25 UTC](https://discourse.nodered.org/t/display-line-chart-with-data-retrieved-from-mysql/94486/2 "2025-01-09T15:25:58Z")

</div>

your code is unreadable / cannot copy.

please use backticks to wrap your code.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

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)

I am assuming you are using dashboard 1 since i see /ui in the browser.

copy paste the debug 32 output and the contents of the function node just before the chart node.

---

_[View the full topic](https://discourse.nodered.org/t/display-line-chart-with-data-retrieved-from-mysql/94486)._
