Recent Hubigraph graph display problem

Hello all,
I of course realize that Hubigraph is no longer being supported. However, I have been using it successfully to get a graphic representation to monitor my hub free memory, DB size and CPU usage for several months now as it is easy to use and does not require any additional hardware to host.
As I mentioned, I have been using it successfully for several months now (see one of my dashboards below):


As you can see, the whole graph shows up in my tile, and when I click on the tile it expands. I had since changed some of the design of my graph but it continued to be “proportioned” to fit in my tile…that is, until yesterday.
Yesterday, when I checked on my hub status, my graph no longer appeared to be “proportioned” to my tile (as seen below).

As you can see, the horizontal axis of my graph remains proportioned to my tile. However, the vertical axis of the graph no longer fits.
I did not make any changes to my graph, but coincidentally (this is an image from my iPad) I did just upgrade my iPad iOS, although I cannot see that there would be any cause and effect due to an iOS upgrade change (and I am not sure when the change in my graph actually occurred). Any ideas? Any help or suggestions would be greatly appreciated.

The only thing I can think of is in your first screenshot, you had set the vertical axis to start at 0. For some reason now it is not.
If this is not the case then setting the vertical access start value to 0 should give you what you want. (Assuming the first screenshot is what you are after).

PS. I do like that dashboard layout though. I must copy it. :wink:

Hi @bobbles, thanks for you quick reply and suggestions.
The problem is that the full extent of the graph (in the vertical direction) does not seem to “scale” or “proportion” to fit the tile, so only part of the graph is visible (at least in the vertical dimension). As you can see from the following screenshot of my graph (when I expand it by clicking on it in my dashboard), the left side vertical axis scale starts at “0” and has not been changed:


For the life of me, I can’t figure it out. As usual, I’m looking for the community to throw me a life preserver, lol. Thanks for you input. Any other thoughts (I’m assuming that you are also still using Hubigraph based on your insight)?

I'm still using Hubigraph but I'm at a loss what is going on.
Are your screenshots a complete screen copy?
On your first picture there is a gap above your 'Last Updated' tile.
Some tiles are also missing from the bottom.

Maybe your iPad is doing automatically making things fit the screen. :person_shrugging:

Yes. They are both (pre- and post-) full screen shots. Since the first screenshot, I had made some modifications to my dashboard to include more info. This additional info (http presence to monitor household power and WiFi status) is what you see included at the bottom of the second screen shot. These additions were made a couple of months ago and did not cause any problems with the graph display tile, as the problem with the graph just appeared yesterday. It is indeed a mystery to me as to why the the graph’s vertical display is no longer automatically proportioned to fit into the tile in the same way the horizontal dimension still does.

Have you tried different browsers to see how they're displayed? I had a similar problem and it only happened in Firefox and not chrome or edge (basically same thing) or safari. I had to edit my Hubigraph weather CSS to make it look correct

Good suggestion! This problem occurs when I am accessing the hub through the Hubitat app available for iOS. Based upon your suggestion, I have tried accessing the Hub IP through using Firefox, Chrome, DuckDuckGo and Safari. All with the same results. A real mystery.

I am thinking more and more that it could be a possibility that this was in fact affected by my updating the iOS on my iPad (I hope not or I will probably have to live with this). When I access the dashboard on my iPhone (which has not been updated recently), the whole graph shows up and is proportioned to the tile in both vertical and horizontal dimensions. I hope someone can come up with something. Please, keep the suggestions coming! I really appreciate the help.

My thoughts were heading down the same path with some change to the was the html / J's / css is interpreted, although given you are seeing the same behaviour in other browsers, that is odd.

What if you try setting up a new, very basic dashboard with just a graph on it, to see how it is rendered?

Hi @sburke781,
I did set up a test dashboard with the same graph device tile in it. When the tile dimension is set up for 2 columns wide and 2 rows in height, the graph seems to scale and proportion itself properly to fit in the resulting tile dimensions.

However, if I enlarge the dimensions so that the graph is 2 columns wide and 8 rows in height the graph image is truncated and the bottom half of the graph becomes cut off. I set this particular dashboard so that my dashboard is 3 columns wide and 16 rows in height so that the other tiles in my dashboard will be proportioned appropriately as shown in my previous screenshots. On the dashboard option page the column and row dimensions are set to null values so that the dashboard will be automatically scaled to the screen.

Again, not sure why this is no longer working on my iPad as it has been working for about the last 6 months. It also appears to scale OK on my iPhone. Unfortunately, I regularly use my iPad to access my dashboards (due to screen size) and rarely if ever access the dashboards with my iPhone unless I am away from home. I am at a total loss and appreciate all efforts to help with and suggest potential solutions.

Hmmm.... It certainly sounds like something in the way scaling options have been used or just the way they work. Why you would have seen a difference in display I am not sure. Can you post screenshots of the the scenarios you talked through for the test dashboard you setup?

I have seen the same thing since 2.3.1.X. The issue occurs when a graphic is displayed within a tile on the dashboard. The “y” axis scaling no longer works for some reason…

Unfortunately, I have no idea how to resolve…

Hi @sburke781, thanks for sticking with me on this.
I set up a test dashboard that is 3 columns by 3 rows (column width and row height set with null settings so tiles themselves will auto scale to size of display).

The first image is a tile that is 1w X 1h. As you can see, the graph is scaled to fit the tile (although somewhat squished due to the size of the tile):

The next image is when I changed the tile to be 2w X 1h. As can be seen, the graph width scales nicely, but then the height is no longer scaled to fit the tile:

Also, if I go back and change the tile back to 1w X 1h, it no longer scales vertically and only shows the top of the graph:


So it seems that once any changes are made to scaling in the horizontal direction, vertical scaling no longer works at all, OR once any scaling is done, vertical scaling no longer works.

If I then increase the width to 3 columns and set the tile to be 3w X 1h, you can see that the graph again scales properly in the width direction, but not in the height:

If I then set the tile to cover 2 rows (using a width of 2) or 2w X 2h, the graph again scales to fit the width horizontally, but not vertically (it just shows more of the graph):

Finally, if I increase the tile dimensions to be 3 rows in height, then the entire graph shows up (but only because the tile dimension is tall enough to show the full graph as the graph no longer scales in the vertical dimension):

So as you can see, the graph always scales properly to fit in the horizontal dimension, but it appears that the graph image in the vertical direction becomes fixed and will not scale to the size of the tile (at least vertically) so it appears to specifically be a vertical scaling problem.

Sorry for the long post and multiple screenshots but this was the only way I could truly document this clearly.

Again, this only occurred yesterday. In addition to the update of my iPad IOS, I did also did an update and reboot of the hub firmware as well. Although Hubigraph itself is no longer supported (and obviously has not changed), I also wonder if this could be a Hubitat Dashboard problem? Perhaps @bravenel or another HE staff member could chime in on this? I am on v2.3.1.137 but have not yet updated to v2.3.1.138.

I have been grappling with scaling of different html elements with some work I have been doing recently. I don't make that comment as some kind of indication that I can solve the problem, only that I have observed that it can get complicated... Particularly when you are trying to embed content inside other pages like is being done here.

In terms of what I have a very rudimentary understanding of, I do know that sizing and scaling of objects on screen in html / css can be achieved in various ways, with some options providing fixed pixel-perfect type positioning and sizing, while others can be more responsive to screen sizes and adjust content as needed. This behaviour can also be configured separately for width and height.

Given the multiple changes happening at once, it is hard to say exactly where the problem may lie, and I don't have Hubigraphs or an iPad to test on, but I haven't updated to the more recent versions yet, so may be able to setup Hubigraphs if needed on a 2.3.0.124 hub.

And info os good in situations like this, so a long post is fine with me. Though I haven't read it all yet and should really get ready for work :slight_smile: I can try and take another look at lunch, unless someone else can chime in and solve it in the meantime....

1 Like

@sburke781,
Again, thank you so much! I really appreciate your effort to look into this and your expertise. The main reason this is so puzzling is that everything was working just recently, until it wasn’t, lol. Thanks again!

1 Like

Interesting @Sebastien. If you are seeing this in other embedded graphics as well, perhaps this is a problem or “bug” within the hub firmware or the Dashboard App? Again, I wonder if @bravenel can check this out.

Looking back at your last set of screenshots and descriptions.... And putting to one side the inconsistent behaviour you saw when producing them when putting the tile back to an earlier size (I'm hoping that just needed a refresh of the page), and putting to one side the fact things have changed the way they work from your original posts (I'll come back to that).....

I think things are behaving the way you / we probably want them to, kind of... It is forcing you to size your tile to maintain the aspect ratio of the chart, so the chart is not squished / stretched in different directions. An it looks like it is using the width as the point of reference, so if the width is A, then the height is A * B, if you know what I mean. I can't point to anything at this stage to say this is where that approach has been implemented.... So it's just a hunch.

One theory of why you have seen a change could be that your DB size figures have crept into the 50-60 range, which may have made the chart higher..... which ruins my whole width idea.... Did I mention this can get complicated....

So in the end the only two things I could suggest are reducing the size of the DB by reducing the history kept for some of your busier devices and/or reduce the width of the chart tile.

See how that goes....

1 Like

Personally, I believe this is a Safari/iOS issue. Chrome/Safari on the iPad has this problem (consistent on one dashboard, but not another), but Chrome on the PC doesn't.

@sburke781, again, thank you for your efforts looking into this. As @thebearmay stated, if it is a iOS problem, I may just have to live with this. The frustrating thing is that everything was working just fine a couple of days ago.

I did try to refresh the test dashboard to no avail with regards to the chart size. When I went back to the 1w X 1h size chart, then enlarged it to 1w X 3h, I got this:


So for whatever reason, the chart height does seem to be “frozen” once any tile size is changed, but the aspect ratio ratio can still be changed (but the height measurement can no longer be changed, just the aspect ratio due to the ability to change width).

The creep in DB size could also be due to the fact that I have added Echo Speaks into the mix recently (although I do not know exactly how much of an additional load ES specifically places on the hub).

@Sebastien has also mentioned that he also experienced a similar problem to this on dashboards embedding images (i.e., image height not adjusting but width remaining proportional) if I interpret his post correctly after a hub firmware update.

At any rate, if it is a iOS problem, then I may just be stuck with this. Thank you all for all your contributions and time. I really appreciate it.

1 Like

There may be a way around the iOS problem as I have the same tile and source on two hubs, one works fine on iOS, the other doesn't - both work correctly on the PC.

@thebearmay ,
I suspect you are probably correct in thinking that it is an iOS problem potentially related to the iPad iOS since the graph continues to automatically scale itself on my iPhone in both the x and y axis, just no longer on my iPad in the y axis. But if it is iOS related, it is a new problem since the graph was scaling properly prior to a couple of days ago on my iPad.

You mentioned that there may be a way around the iOS problem. Any ideas on this?

1 Like