Dashboard layout

Hi, i need help. I have the following layout and I want my elements to be arranged like this


but somehow it is giving me the following output could anyone help me.

I want the sidebar to the leftmost side and bar chart in the first row and all three panels in 2nd row

If you select Dashboard list (on the top-right of your window)...
dashboard_list

Then hover over the Dashboard you want to change and select Layout...
dashboard_layout

You should be able to drag the various widgets around to form your required layout.

I am building a dynamic dashboard. For instance, on the sidebar, if we select current, it will display a different group than if we choose the voltage. So I used the UI control to dynamically hide and show the groups. As far as layout is concerned this is the output of the layout.


According to my limited knowledge it is correct but can you guide me what is wrong in it

I find using a single 'Group' and placing all the ui-items (widgets) inside it works best for me.
Here's an example of my dashboard for viewing Wildfires around the world.

wild_fires_A

EDIT:
Just re-read your post about the "dynamic" action.
I've never tried to do that and don't know if NR is capable of doing that.
I'm sure someone else will jump-in and help.

Just found this posting - looks like you could modify the code to do what you require.

I use the same functionality a lot... It can be a pain at times. The location of groups to display can be a bit unpredictable, NR will try and cram as much stuff as possible in as little space as possible, so things don't necessarily appear where you expect them, especially with a combination of differently sized groups.

I work around this feature by using some or all of the following:

  • I try and keep dynamic dashboard groups (the ones controlled with Ui-control show/hide) in a uniform size, or at least keep alternatively displayed group the same size.

  • I try to avoid using the "auto" size settings anywhere.

  • Within the dashboard groups, I remove unused spacers that might have been automatically generated by the layout tool or left behind when shifting things around manually, and I check the ones I need are the right size.

  • I split the dashboard in zones using groups containing a text node which is used as label for the area, the groups and node are manually set to the desired width, usually much wider than the dynamic groups that follow, this forces node-red to place them below.

  • Finally, there is also the option to set the default page width of the dashboard tab (i can't remember where that is, I think you need to dive in a css file somewhere).

My 2 pennies...

PS edit: So, looking at your layout, I think it might be worth trying to make the sidebar group the same height or taller than the the other elements

3 Likes

sometimes NR Dashboard is a pain to reach specific targets.
I would suggest to write an application with uibuilder if you need more freedom on your GUI.

Thank you everyone for the help in my case it was just rearranging the nodes in layout. I don't why it happens but If the nodes are placed in the correct order//layout even then first reorder them and then bring them to a required order.

2 Likes

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