Page 1 of 1
Chart selection disappears on Historic Charts
Posted: Wed 03 Nov 2021 7:37 am
by flort
I have been running the default website alongside my custom site and everything works fine except the Historic Charts. The page loads and you momentarily see the chart selection buttons at the bottom of the page but then they disappear so you only get to see the Temperature Chart and you can't choose another chart. The Trends page works fine and looking at the code I can't see any reason why the Historic page behaves differently.
Appreciate if someone could give me a bit of guidance as to where the problem lies. My website is at
http://flor.byethost24.com/weatherMX/index.htm
Regards,
Trevor
Re: Chart selection disappears on Historic Charts
Posted: Wed 03 Nov 2021 12:26 pm
by mcrossley
Hi Trevor, you have found a bug.
Please edit the file "js/historiccharts.js" on your web site.
Change line 24 from
Code: Select all
$('#btnTempSum').parent().remove();
to
And it should work as expected.
Re: Chart selection disappears on Historic Charts
Posted: Wed 03 Nov 2021 10:27 pm
by flort
Hi Mark,
Thanks. That worked perfectly. I had looked at several other sites to compare the js file and they were all using the standard file. I didn't realise they all had Solar Radiation, Degree Days and Temp Sum enabled whereas I have them disabled. I assume that's why mine wasn't working.
Regards,
Trevor
Re: Chart selection disappears on Historic Charts
Posted: Wed 03 Nov 2021 10:32 pm
by mcrossley
Yep, it is disabling the temperature sum that triggers it.
Re: Chart selection disappears on Historic Charts
Posted: Mon 06 Dec 2021 8:54 am
by flort
Hi Mark,
I just installed the latest version b:3159 and everything works fine except you've missed correcting this bug. I've manually modified my historiccharts.js file again.
Regards,
Trevor
Re: Chart selection disappears on Historic Charts
Posted: Mon 06 Dec 2021 12:00 pm
by mcrossley
Doh!
