# Barchart from InfluxDB request

**URL:** <https://discourse.nodered.org/t/barchart-from-influxdb-request/84635>\
**Category:** Dashboard\
**Tags:** database, influxdb\
**Created:** [17 January 2024 09:21 UTC](https://discourse.nodered.org/t/barchart-from-influxdb-request/84635 "2024-01-17T09:21:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 January 2024 10:03 UTC](https://discourse.nodered.org/t/barchart-from-influxdb-request/84635/2 "2024-01-17T10:03:56Z")

</div>

The `x` item must be a number so it should look like this:

```auto
{"x":1703953800000,"y":9}

```

Not knowing what the input data to your function node looks like makes it difficult to determine what your issue is. If the info I provided doesn't help, add a `debug` to the output of the `influxdb-in` node and **copy and paste** the output to a response.

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

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)

---

_[View the full topic](https://discourse.nodered.org/t/barchart-from-influxdb-request/84635)._
