# Node red dashboard from bluemix cloudant data

**URL:** <https://discourse.nodered.org/t/node-red-dashboard-from-bluemix-cloudant-data/8705>\
**Category:** General\
**Created:** [7 March 2019 12:08 UTC](https://discourse.nodered.org/t/node-red-dashboard-from-bluemix-cloudant-data/8705 "2019-03-07T12:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [7 March 2019 12:08 UTC](https://discourse.nodered.org/t/node-red-dashboard-from-bluemix-cloudant-data/8705/1 "2019-03-07T12:08:24Z")

</div>

Hello

I have implemented a node-red flow on bluemix to take data from my IoT device and send it to a cloudant database.

My IoT device only sends data once every few hours so I'd like to plot historical data sent by the device on the UI dashboard available in node-red (say a chart).

How do I do this?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [7 March 2019 12:34 UTC](https://discourse.nodered.org/t/node-red-dashboard-from-bluemix-cloudant-data/8705/2 "2019-03-07T12:34:26Z")

</div>

What’s the flow you have got?

---

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [7 March 2019 12:39 UTC](https://discourse.nodered.org/t/node-red-dashboard-from-bluemix-cloudant-data/8705/3 "2019-03-07T12:39:34Z")

</div>

Currently I have this

```auto
[{"id":"2128778a.c4ed58","type":"function","z":"262cb265.e8845e","name":"Parser","func":"function returnTime(value){\nreturn new Date((value)*1000 + 39600000);\n}\n//Make sure you change the Epoch offset timezone 39600000 according to your timezone\n//Here it is set to Sydney (GMT +11:00).\nvar time = msg.payload.time;\nmsg.payload.time = '' + returnTime(time).toLocaleString();\n\nreturn msg;\n","outputs":1,"noerr":0,"x":353.1666793823242,"y":257.0000276565552,"wires":[["6e9ea96c.84d898","11883020.cfddd"]]}]

```

---

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [7 March 2019 13:11 UTC](https://discourse.nodered.org/t/node-red-dashboard-from-bluemix-cloudant-data/8705/5 "2019-03-07T13:11:01Z")

</div>

I figured it out. Used a chart node to plot data parsing the temperature through as a payload.
