# Node-red-contrib-dashboard-sum-bars & Average-bars- Input payload

**URL:** <https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187>\
**Category:** Dashboard\
**Created:** [25 November 2018 21:26 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187 "2018-11-25T21:26:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoseGodinho](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Post date:** [25 November 2018 21:26 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/1 "2018-11-25T21:26:46Z")

</div>

Hello all

I would appreciate an example of the input message payload for this nodes

node-red-contrib-dashboard-sum-bars  
node-red-contrib-dashboard-average-bars

Thank You  
JLG

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 November 2018 21:47 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/2 "2018-11-25T21:47:51Z")

</div>

Maybe best to contact the author direct via an issue on his github page as I'm not sure they are a regular here..

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [27 November 2018 23:19 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/3 "2018-11-27T23:19:11Z")

</div>

Hi Jose,

Here below an example flow using `node-red-contrib-dashboard-sum-bars`  
It will gradually populate the chart.

```
[{"id":"c979d154.d1f55","type":"tab","label":"average-bars example","disabled":false,"info":""},{"id":"c85336b7.c96a58","type":"average-bars","z":"c979d154.d1f55","name":"average-bars","title":"","period":"hour","yMin":"auto","yMax":"auto","showBarsValue":true,"showScaleValue":true,"showLastValue":true,"showAverageValue":true,"showMinimumValue":true,"showMaximumValue":true,"maxBar":30,"topColor":"#ff0000","bottomColor":"#ffff00","unit":"","fontColor":"#aaaaaa","barStyle":"Rectangle","decimal":1,"x":740.5,"y":74,"wires":[["7b2bbbf8.f70004"]]},{"id":"7b2bbbf8.f70004","type":"ui_template","z":"c979d154.d1f55","group":"d4a26f5b.429be","name":"","order":0,"width":"21","height":"5","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":923,"y":73,"wires":[[]]},{"id":"b54708f3.8d3188","type":"random","z":"c979d154.d1f55","name":"","low":"1","high":"10","inte":"false","property":"payload","x":542.5,"y":76,"wires":[["c85336b7.c96a58","2d670b94.499564"]]},{"id":"667dade6.9bac44","type":"inject","z":"c979d154.d1f55","name":"trigger every 20 seconds","topic":"","payload":"","payloadType":"date","repeat":"20","crontab":"","once":false,"onceDelay":0.1,"x":311,"y":76,"wires":[["b54708f3.8d3188"]]},{"id":"2d670b94.499564","type":"debug","z":"c979d154.d1f55","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":760,"y":26,"wires":[]},{"id":"d4a26f5b.429be","type":"ui_group","z":"","name":"Default","tab":"a452820.76da38","disp":true,"width":"21","collapse":false},{"id":"a452820.76da38","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]
```

---

<div class="post-metadata">

**Author:** ![JoseGodinho](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Post date:** [4 December 2018 14:12 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/4 "2018-12-04T14:12:05Z")

</div>

Hello Jandva

Can we feed an array to this node? and if so what is the configuration of it ?

Thank you

JLG

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [4 December 2018 16:26 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/5 "2018-12-04T16:26:27Z")

</div>

Hi Jose,

I am only a user of that node. I don't think it is possible to feed an array to this node.  
At least it is not documented ([https://github.com/nazcasun/node-red-contrib-dashboard-sum-bars](https://github.com/nazcasun/node-red-contrib-dashboard-sum-bars))

kr  
Jan

---

<div class="post-metadata">

**Author:** ![nazcasun](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nazcasun/32/2445_2.png) [@nazcasun](https://discourse.nodered.org/u/nazcasun)\
**Post date:** [18 December 2018 10:35 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/6 "2018-12-18T10:35:34Z")

</div>

Hi Jose,

It isn't possible to send an array to the chart. Node-red-contrib-dashboard-sum-bars and node-red-contrib-dashboard-average-bars runs with a simple input value. For example, you can follow a temperature by sending every minute msg.payload = _the\_new\_temperature\_value_ (msg.payload = 18). I hope it's clearer.

Nazcasun

---

<div class="post-metadata">

**Author:** ![JoseGodinho](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Post date:** [18 December 2018 11:58 UTC](https://discourse.nodered.org/t/node-red-contrib-dashboard-sum-bars-average-bars-input-payload/5187/7 "2018-12-18T11:58:13Z")

</div>

Thank you very much for your info.  
it would e interesting to have the same input as the standard dashbord chart node!

Kind regards

José Godinho
