Page 1 of 1

View full screen in Historic graph any way of getting that in the trends graph

Posted: Sat 13 Feb 2021 6:55 pm
by The PIT
One quick question. The view full screen print etc are nice options in the historic graph so I was wondering how you get them into the trends graph. I looked at the cod and can't see where they are generated.

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sat 13 Feb 2021 7:46 pm
by mcrossley
It should already be there, it is on some sites I have looked at I'm sure?

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sat 13 Feb 2021 8:10 pm
by PaulMy
As Mark says, it is on the local dashboard and default web pages for Chart, SelectaChart and Historical and also the Download options, from v3.9.7-b3107 and can't recall if it was there before.

Enjoy,
Paul

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sun 14 Feb 2021 12:32 am
by mcrossley
I just took a look at your web page, you are importing HighCharts multiple times, and different versions, as you are doing with the HighCharts exporting.js which adds the export and full screen.

You need to sort out your page so that in only imports these classes once, they are conflicting with each other.

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sun 14 Feb 2021 12:42 pm
by The PIT
I'm using iframes so no multiple import so each graphs is pointing to the original htm file. Up and running now with the full screen option on all of the graphs.

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sun 14 Feb 2021 2:22 pm
by water01
I agree with Mark you have multiple import of highstock.js. boot.js, grid.js and export.js (6 times each), jquery-latest.min.js and all the .json files(7 times each), 8 404 calls for weatherstyle.css and multiple .png calls. All of this is almost doubling the page load times and I would suggest is caused by putting the graphs in iframes which most people would suggest nowadays is NOT a good idea https://www.ostraining.com/blog/webdesi ... g-iframes/

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sun 14 Feb 2021 2:33 pm
by The PIT
The main issue for me is keeping the site having the same look I could try and add the html but not being skilled in that the odds are that it won't work and I wouldn't be be able to fix it.
It loads quick enough on my poor 4g connection of less then 2mbps so I'm not particularly worried.
It works properly now as well.

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sun 14 Feb 2021 2:52 pm
by mcrossley
OK, I didn't check for iframes, but your frames were loading different versions of HighCharts and so one of them must have been running old scripts.

Re: View full screen in Historic graph any way of getting that in the trends graph

Posted: Sun 14 Feb 2021 2:58 pm
by The PIT
At some point I'm going to move them off the page to a single page but this something I'm just quickly knocking up over the weekend.