Flow – Dashboard Reset Chart

Posted on Updated on

If you like to reset the content of a graph in Node-Red dashboard, use this method.

[{"id":"69c51240.a88d64","type":"ui_chart","z":"95dd8c1e.9f45b8","name":"","group":"982d5ce1.fdf228","order":4,"width":"5","height":"2","label":"","chartType":"line","legend":"false","xformat":"%H:%M","interpolate":"linear","nodata":"","ymin":"-40","ymax":"80","removeOlder":1,"removeOlderUnit":"3600","x":521,"y":119,"wires":[[],[]]},{"id":"9475826e.ef16e","type":"json","z":"95dd8c1e.9f45b8","name":"","x":348.5,"y":121,"wires":[["69c51240.a88d64"]]},{"id":"72de27fd.a64e08","type":"inject","z":"95dd8c1e.9f45b8","name":"Reset","topic":"","payload":"[ { \"key\": \"Data\", \"values\": []}]","payloadType":"str","repeat":"","crontab":"","once":false,"x":185.5,"y":121,"wires":[["9475826e.ef16e"]]},{"id":"982d5ce1.fdf228","type":"ui_group","name":"Group 1","tab":"6db0468b.7fc248","order":1,"disp":true,"width":6},{"id":"6db0468b.7fc248","type":"ui_tab","z":"","name":"Test","icon":"dashboard","order":3}]

screen-shot-2016-11-04-at-11-34-54-pm

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s