Not enough room for dashboard min/max values - javascript

Discussion about generation of graphs and tables
Post Reply
gcams
Posts: 8
Joined: Thu Jun 30, 2011 8:47 am

Not enough room for dashboard min/max values - javascript

Post by gcams » Sat Sep 12, 2015 8:57 pm

I noticed that when using the javascript engine to render the "dashboard" graphs (whereby you can choose the date/graph-type, etc), there seems to be insufficient room to correctly display the values for the Min/Max Barometer / Windspeeds just above the graph itself.

Although I have modified the original graphs, this exact same problem exists in the original dashboard version also. The problem is only evident when using javascript. The flash version looks fine, but I am deliberately avoiding flash now that most of my visitors are using iPads/mobile devices to access the site (and I do not want users to have to support flash).

I have attached a sample of the issue below, showing where the min/max barometer values are hidden behind the next average-pressure field:
Image

Any thoughts on how I can solve this issue would be most appreciated.
Attachments
Screen Shot 2015-09-12 at 21.45.30.png
Screen Shot 2015-09-12 at 21.45.30.png (69.45 KiB) Viewed 15149 times

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Not enough room for dashboard min/max values - javascript

Post by admin » Sat Sep 19, 2015 8:32 pm

Just give it a shorter name like "press" or "baro" instead of "pressure range".

gcams
Posts: 8
Joined: Thu Jun 30, 2011 8:47 am

Re: Not enough room for dashboard min/max values - javascript

Post by gcams » Sat Sep 19, 2015 8:39 pm

Thanks for the reply Boris. I tried your suggestion (I had tried this previously too) and unfortunately it simply shifts everything over to the left with no extra room between fields. The problem seems to be the space between the two fields, rather than the length of the label. Here's a screenshot with the abbreviated names showing the problem still exists:

Image
Attachments
Screen Shot 2015-09-19 at 21.35.46.png
Screen Shot 2015-09-19 at 21.35.46.png (61.89 KiB) Viewed 15128 times

ironedge
Posts: 56
Joined: Tue Sep 23, 2014 9:32 am
Contact:

Re: Not enough room for dashboard min/max values - javascript

Post by ironedge » Sun Sep 20, 2015 12:03 pm

I can confirm this problem when using the Javascript Engine. Shorter names do not help. There's a bug with calculating the space required for min/max values.

Post Reply