# Array of data into a chart

**URL:** <https://discourse.nodered.org/t/array-of-data-into-a-chart/34905>\
**Category:** Dashboard\
**Created:** [27 October 2020 19:25 UTC](https://discourse.nodered.org/t/array-of-data-into-a-chart/34905 "2020-10-27T19:25:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://discourse.nodered.org/u/William)\
**Post date:** [27 October 2020 19:25 UTC](https://discourse.nodered.org/t/array-of-data-into-a-chart/34905/1 "2020-10-27T19:25:13Z")

</div>

Hey gents - I've seen a couple of similar threads but couldn't really find a solution  
I have an array of data coming into node red on a raspberry pi 4 from an Allen Bradley PLC via Modbus TCP

10/27/2020, 9:19:05 PM[node: 3f5e666f.8851ea](http://10.0.0.118:1880/#)d84ba55.5267058 : msg.payload : Object

object

data: array[24]

[0 … 9]

0: 61

1: 60

2: 60

3: 60

4: 60

5: 60

6: 60

7: 49

8: 52

9: 47

[10 … 19]

[20 … 23]

buffer: buffer[48]

I'm trying to take this to a barGraph - and it's just not working  
funny enough - I can get one element to drive a gauge

I need to put a function in between my Modbus Flex getter and the chart node  
I just dont know what script to put in it...

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 October 2020 19:30 UTC](https://discourse.nodered.org/t/array-of-data-into-a-chart/34905/2 "2020-10-27T19:30:49Z")

</div>

What format should those values be?

Have you seen the [buffer parser](https://flows.nodered.org/node/node-red-contrib-buffer-parser) node? It is pretty much built for taking raw PLC values and making sense of them.

The node has built in example flows and there is several recent posts on this in the forum (search buffer parser)

---

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://discourse.nodered.org/u/William)\
**Post date:** [28 October 2020 05:19 UTC](https://discourse.nodered.org/t/array-of-data-into-a-chart/34905/3 "2020-10-28T05:19:02Z")

</div>

Hi Stephan  
I thought let me put this in a .doc format so my screenshots makes more sense

(Attachment Hi Stephan.docx is missing)

---

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://discourse.nodered.org/u/William)\
**Post date:** [28 October 2020 05:51 UTC](https://discourse.nodered.org/t/array-of-data-into-a-chart/34905/4 "2020-10-28T05:51:46Z")

</div>

[Hi Stephan.pdf](https://discourse.nodered.org/uploads/short-url/fn1pbuqX6hu0O2VynhH6kI9dCah.pdf) (189 KB)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 November 2020 05:51 UTC](https://discourse.nodered.org/t/array-of-data-into-a-chart/34905/5 "2020-11-27T05:51:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
