# Convert InfluxDB v2 data to ui\_chart

**URL:** https://discourse.nodered.org/t/convert-influxdb-v2-data-to-ui-chart/42088
**Category:** Share Your Nodes
**Created:** [5 March 2021 12:52 UTC](https://discourse.nodered.org/t/convert-influxdb-v2-data-to-ui-chart/42088 "2021-03-05T12:52:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![malaxy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/malaxy/32/39791_2.png) [@malaxy](https://discourse.nodered.org/u/malaxy)
#### Post date: [8 April 2021 05:29 UTC](https://discourse.nodered.org/t/convert-influxdb-v2-data-to-ui-chart/42088/2 "2021-04-08T05:29:39Z")

</div>

Hello @Simon01011

Thanks for this Function I would like to use it but have some problems 🙂  
I read [this](https://discourse.nodered.org/t/display-datas-from-influx-in-an-ui-chart/38579) Post about data manupilation and also read the [Documentation](https://github.com/node-red/node-red-dashboard/blob/master/Charts.md#stored-data) from the Chart Element.

If I try to use your function with CopyPaste Node Red sad that it didn't no the Function Map

```auto
TypeError: msg.payload.map is not a function

```

Here are some Screenshots  
 ![NodeRed DummyData Plot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/7/779bbd6292111f1ff1c5f7674223cc0568cdcf6b.png)

 ![NodeRed Flow Influx](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/05e2d85b5c147a40f6fd0a48ab5895c931219c23.png)

PS. There is also a Timeshift from 2h between the Data and the graph 🙂

Thanks a lot in advance for your help.

---

_[View the full topic](https://discourse.nodered.org/t/convert-influxdb-v2-data-to-ui-chart/42088)._
