Node-red -> Dashboard-> Chart: problems with x axis time line..

1,025 views
Skip to first unread message

MortenM

unread,
Apr 30, 2018, 8:39:05 AM4/30/18
to Node-RED

Hi al


I have a problem with the chart object from dashboard nodes.


As you can see inn the screenshot. timeline / period is not correct compared to the settings.

At first when chart is deployed for the first time it`s ok. but after some minutes or then redeploying the chart gets scrambled up in one side. 


Does anyone have an ide to solve this problem? buy the way it is also happening with only one variable connected to the chart. 


To fix it temporarily. I can set the char type to "PIE" redeploy and then change it back.. it is then ok until next redeployment.


best regard
Morten

Francisco Herrador

unread,
Apr 30, 2018, 9:43:13 AM4/30/18
to Node-RED
Happens on the actual npm version too, had to downgrade to get rid of this.

Dave C-J

unread,
Apr 30, 2018, 12:15:03 PM4/30/18
to node...@googlegroups.com
Mroten - Has any new data arrived in the last two minutes ? - what happens when new data arrives ? does that get added in the correct place ? 

Francisco - Which version did you downgrade to ? 

Morten Madsen

unread,
Apr 30, 2018, 5:03:08 PM4/30/18
to node...@googlegroups.com

Hi Dave

 

Data is streaming every 1 sec. I can see small dots added to the chart but the period looks to be about 2 hours...  

Node setup is not responding to “X-axis last “xx” OR “xx” points”. The only way to “reset” line chart is to select some other “type”, deploy.

Then setting “type” back to ”Line chart” and deploy. This work until you do a redeploy. Than chart is screw up again.

 

I only tried version 2.8.1… seem to work so far

 

Regards

Morten

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFwLzy7sTuYaYj%2BKOyrkaYJC_Dmg_i29_cvL5vopDy8Q%3DzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Dave C-J

unread,
Apr 30, 2018, 5:16:32 PM4/30/18
to node...@googlegroups.com
Odd

A simple test like this seems to work (for me of course)....

[{"id":"a35e9e69.a5499","type":"ui_chart","z":"2792579f.43e958","name":"","group":"6b1b919a.208b9","order":1,"width":"0","height":"0","label":"Line","chartType":"line","legend":"false","xformat":"mm:ss","interpolate":"bezier","nodata":"","dot":false,"ymin":"0","ymax":"10","removeOlder":"120","removeOlderPoints":"120","removeOlderUnit":"1","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":590,"y":80,"wires":[[],[]]},{"id":"cc93f4da.05a568","type":"random","z":"2792579f.43e958","name":"","low":"0","high":"10","inte":"true","x":300,"y":80,"wires":[["fb019afd.ea9ce8"]]},{"id":"63961897.b0f2e8","type":"inject","z":"2792579f.43e958","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"x":130,"y":80,"wires":[["cc93f4da.05a568","47085755.311548","c14cc43e.cf7f18","b04dea95.54a718"]]},{"id":"47085755.311548","type":"random","z":"2792579f.43e958","name":"","low":"0","high":"10","inte":"true","x":300,"y":120,"wires":[["c5d62d3b.567f2"]]},{"id":"c14cc43e.cf7f18","type":"random","z":"2792579f.43e958","name":"","low":"0","high":"10","inte":"true","x":300,"y":160,"wires":[["f73b8763.3b6178"]]},{"id":"b04dea95.54a718","type":"random","z":"2792579f.43e958","name":"","low":"0","high":"10","inte":"true","x":300,"y":200,"wires":[["f5abc691.260468"]]},{"id":"fb019afd.ea9ce8","type":"ui_slider","z":"2792579f.43e958","name":"","label":"slider","group":"ed807070.fffcd","order":1,"width":0,"height":0,"passthru":true,"topic":"AAAA","min":0,"max":10,"step":1,"x":450,"y":80,"wires":[["a35e9e69.a5499"]]},{"id":"c5d62d3b.567f2","type":"ui_slider","z":"2792579f.43e958","name":"","label":"slider","group":"ed807070.fffcd","order":2,"width":0,"height":0,"passthru":true,"topic":"BBB","min":0,"max":10,"step":1,"x":450,"y":120,"wires":[["a35e9e69.a5499"]]},{"id":"f73b8763.3b6178","type":"ui_slider","z":"2792579f.43e958","name":"","label":"slider","group":"ed807070.fffcd","order":3,"width":0,"height":0,"passthru":true,"topic":"CC","min":0,"max":10,"step":1,"x":450,"y":160,"wires":[["a35e9e69.a5499"]]},{"id":"f5abc691.260468","type":"ui_slider","z":"2792579f.43e958","name":"","label":"slider","group":"ed807070.fffcd","order":4,"width":0,"height":0,"passthru":true,"topic":"D","min":0,"max":10,"step":1,"x":450,"y":200,"wires":[["a35e9e69.a5499"]]},{"id":"6b1b919a.208b9","type":"ui_group","z":"","name":"Group 2","tab":"2d62cd89.b5d2b2","order":2,"disp":true,"width":"6"},{"id":"ed807070.fffcd","type":"ui_group","z":"","name":"Group 3","tab":"2d62cd89.b5d2b2","order":1,"disp":true,"width":"6"},{"id":"2d62cd89.b5d2b2","type":"ui_tab","z":"","name":"Charts","icon":"dashboard","order":4}]


Dave C-J

unread,
Apr 30, 2018, 5:47:35 PM4/30/18
to node...@googlegroups.com
Here's a gif of it in action.

Morten Madsen

unread,
May 3, 2018, 3:54:57 AM5/3/18
to node...@googlegroups.com

Hi Dave

 

Same problem with 2.8.1. I will try to downgrade to 2.6.0

 

Regards

Morten

 

Fra: node...@googlegroups.com <node...@googlegroups.com> På vegne av Dave C-J
Sendt: 30. april 2018 18:15
Til: node...@googlegroups.com
Emne: Re: [node-red] Re: Node-red -> Dashboard-> Chart: problems with x axis time line..

 

Mroten - Has any new data arrived in the last two minutes ? - what happens when new data arrives ? does that get added in the correct place ? 

 

Francisco - Which version did you downgrade to ? 

 

--

Reply all
Reply to author
Forward
0 new messages