# Simple Bar chart

**URL:** <https://discourse.nodered.org/t/simple-bar-chart/62938>\
**Category:** Dashboard\
**Tags:** chart\
**Created:** [22 May 2022 19:34 UTC](https://discourse.nodered.org/t/simple-bar-chart/62938 "2022-05-22T19:34:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [22 May 2022 19:45 UTC](https://discourse.nodered.org/t/simple-bar-chart/62938/2 "2022-05-22T19:45:12Z")

</div>

Maybe this thread will help

> [@Convert msg.payload from sql node to an array for bar chart](https://discourse.nodered.org/t/convert-msg-payload-from-sql-node-to-an-array-for-bar-chart/61250):
>
> Hello, I am new to the node-red community. I am currently trying to display data from an sql database in a bar chart. I have an sql table with two columns : client (name of the client) and nbconnexion (number of times this client logged in). By doing the follwing sql query : SELECT name as client, count(\*) AS nbconnexion FROM `ConnexionTime` GROUP BY client LIMIT 10 I get the following table : [image] Now I want to display this data by doing a barchart using the ui\_chart node. How do I co…

---

_[View the full topic](https://discourse.nodered.org/t/simple-bar-chart/62938)._
