# Can not get a simple graph to show

**URL:** <https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181>\
**Category:** Dashboard\
**Created:** [8 December 2020 14:22 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181 "2020-12-08T14:22:11Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 14:22 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/1 "2020-12-08T14:22:11Z")

</div>

i am trying to create my first graph but it is not working.  
This should be stupid simple but i can not see any data

just a simple inject node- random number node-chart node

i also added a gauge and that meter is working and showing the data.  
The other chart nodes are only showing the name, not the data or graphs

```auto
[{"id":"15d2301d.5e9ec","type":"ui_chart","z":"901879cf.99e878","name":"","group":"ccfc9c63.31685","order":0,"width":"0","height":"0","label":"IphoneXS online","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"60","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":860,"y":1180,"wires":[[]]},{"id":"5337b46a.0c785c","type":"debug","z":"901879cf.99e878","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":1100,"wires":[]},{"id":"1cc273f8.7e2a6c","type":"function","z":"901879cf.99e878","name":"","func":"msg.payload = Math.round(Math.random()*100);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":560,"y":1160,"wires":[["15d2301d.5e9ec","85f521f1.df22a","5337b46a.0c785c","df9d21b2.d3824"]]},{"id":"85f521f1.df22a","type":"ui_chart","z":"901879cf.99e878","name":"","group":"ccfc9c63.31685","order":1,"width":0,"height":0,"label":"chart","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":830,"y":1240,"wires":[[]]},{"id":"df9d21b2.d3824","type":"ui_gauge","z":"901879cf.99e878","name":"","group":"ccfc9c63.31685","order":2,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":850,"y":1020,"wires":[]},{"id":"1bd235c1.eb00ba","type":"inject","z":"901879cf.99e878","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":310,"y":1140,"wires":[["1cc273f8.7e2a6c"]]},{"id":"ccfc9c63.31685","type":"ui_group","name":"Netwerk","tab":"cd92860.5956e78","order":1,"disp":true,"width":"6","collapse":false},{"id":"cd92860.5956e78","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/85b6371141422252dfee236d59d916bccb359c62.png)

---

<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:** [8 December 2020 14:34 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/2 "2020-12-08T14:34:19Z")

</div>

which versions of node.js, node-red and dashboard nodes are you using ?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/f/af3a482c7137d37b3cf0f243a768cdc17fd11f3f.png)

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 14:42 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/3 "2020-12-08T14:42:08Z")

</div>

node-red 1.2.5  
dashboard 2.25

where can i find node-js version? i am running it from a docker container

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 14:46 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/4 "2020-12-08T14:46:19Z")

</div>

i think it is 10.6.3 looking inside the docker container

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 15:01 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/5 "2020-12-08T15:01:09Z")

</div>

is this of any help

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3f711a9b343d7719d6066bab6c7ea174f82e6d4e.png)

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 15:02 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/6 "2020-12-08T15:02:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c4e2323c8909ace4dd67d5bc1b49689cead016b2.png)

---

<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:** [8 December 2020 15:07 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/7 "2020-12-08T15:07:20Z")

</div>

hmm - yes we have heard of this occasionally - but never pinned it down... as (as we have just shown) if I import your flow it works fine here ☹ do you have any unused configuration nodes or empty tabs/groups etc in the dashboard ?

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 15:22 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/8 "2020-12-08T15:22:16Z")

</div>

no i have not.

i deleted the default dashboard and group, recreated everything without luck.  
then i changed the name of the ui\_group from Default(which it was) to network.

Boom, everything working

It looks like you can not use the name Default which it suggests  
So either the name Default is causing problems or not changing the Default into something else(i think it is in a non defined state then)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 December 2020 15:24 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/9 "2020-12-08T15:24:22Z")

</div>

What happens if you change it back again?

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 15:41 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/10 "2020-12-08T15:41:14Z")

</div>

it keeps on working.  
Also i can not recrete it anymore.

it looks like if you start of completely clean and leave the group name at Default(i do not think it gets a name assigned then) and choose Home for the tab name it does not work.  
It shows Deault as the name but probably the name is not set

as soon as you change the group name into something else(it gets assigned a name) it works and keeps on working

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 December 2020 15:49 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/11 "2020-12-08T15:49:18Z")

</div>

I suspect it is much more subtle than that, as it is only very rarely reported, and what you have described is likely to be a common occurrence.

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [8 December 2020 16:30 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/12 "2020-12-08T16:30:00Z")

</div>

agreed but it would not hurt to look at the code what happens if we do next-next-finish.  
looking at my experience it really looks like some variables are not set so they have an undefined state.

never the less my problem is solved but i hope i can contribute to finding the real problem because this eats up a lot of time with these unlogical errors(and it hurts my self esteem HaHa)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 December 2020 16:51 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/13 "2020-12-08T16:51:45Z")

</div>

I am sure the developers will add your experience into their knowledge of the problem.

---

<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:** [8 December 2020 19:28 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/14 "2020-12-08T19:28:26Z")

</div>

Going next next finish is exactly what I always do when I start to create a new test flow... but yes - will keep an eye out. s I said - yes we do get it reported now and again but so far no way to replicate it so hard to debug.

---

<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:** [7 January 2021 19:28 UTC](https://discourse.nodered.org/t/can-not-get-a-simple-graph-to-show/37181/15 "2021-01-07T19:28:33Z")

</div>

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