Page 1 of 1

Interactive Graph

Posted: Tue Jan 09, 2018 3:24 pm
by jay_hoehn
My Interactive graph is showing the wrong time scale at the bottom and the times in the popup boxes. The time is exactly minus 7 hours. The data displayed is correct for the correct time. Example: The temp at 8:00 am this morning was 41.3 if you look at the time of 1:00 am on the graph is shows 41.3. It is the graph times that are wrong. Help please.

Jay

Re: Interactive Graph

Posted: Tue Jan 09, 2018 4:07 pm
by iatros
Hi Jay
to increase your confusion:
seen from here (Switzerland), it looks all right (8 am - 41.3 °F) ?
Clipboard-1.jpg
Clipboard-1.jpg (169.63 KiB) Viewed 55070 times
iatros

Re: Interactive Graph

Posted: Tue Jan 09, 2018 4:24 pm
by jay_hoehn
Latros,
Thanks for looking. I am confused. I deleted the cache and still seeing the same issue.
Jay

Re: Interactive Graph

Posted: Tue Jan 09, 2018 5:59 pm
by Jachym
I suspect they must have made some change in Highcharts, because similar issue was in Meteogram and Interactive Graph was working fine, it is there since v1, people would notice...

Re: Interactive Graph

Posted: Tue Jan 09, 2018 6:28 pm
by jay_hoehn
Can it be fixed?

Jay

Re: Interactive Graph

Posted: Tue Jan 09, 2018 6:43 pm
by Jachym
I will have to look at what exactly they did

Re: Interactive Graph

Posted: Wed Jan 10, 2018 1:09 pm
by georg
jay_hoehn wrote: Tue Jan 09, 2018 3:24 pm My Interactive graph is showing the wrong time scale at the bottom and the times in the popup boxes. The time is exactly minus 7 hours. The data displayed is correct for the correct time. Example: The temp at 8:00 am this morning was 41.3 if you look at the time of 1:00 am on the graph is shows 41.3. It is the graph times that are wrong. Help please.

Jay
Mine is plus 1 hour, could it bee something related to UTC time? (Denmark UTC +1 hour --- US UTC -7 hour)

https://www.timeanddate.com/time/map/

Graftime on popup shows correct time.

Re: Interactive Graph

Posted: Wed Jan 10, 2018 1:57 pm
by Jachym
I sent Jay a fix to test, if it works I will release it

Re: Interactive Graph

Posted: Wed Jan 10, 2018 2:17 pm
by iatros

Mine is plus 1 hour, could it bee something related to UTC time? (Denmark UTC +1 hour --- US UTC -7 hour)

https://www.timeanddate.com/time/map/

Graftime on popup shows correct time.
I'm UTC +1 also - my interactive graph is correct!

Re: Interactive Graph

Posted: Thu Jan 11, 2018 5:48 pm
by jay_hoehn
Jachym,

Not sure if this might help, but the new lite mobile site interactive graph has the correct times on it. Just noticed this.

Jay

Re: Interactive Graph

Posted: Thu Jan 11, 2018 7:33 pm
by georg
Noticed that the popup on the block shows the correct time.
It is only the block it self that differs. (+1 hour ahead)
Image

Re: Interactive Graph

Posted: Thu Jan 11, 2018 7:43 pm
by Jachym
Hi,
yes, which makes no sense... the new mobile homepage uses the same setting as the interactiveGraph one

Re: Interactive Graph

Posted: Thu Jan 11, 2018 8:00 pm
by droiddk
georg wrote: Thu Jan 11, 2018 7:33 pm Noticed that the popup on the block shows the correct time.
It is only the block it self that differs. (+1 hour ahead)
Image
Hi georg

Your "big" graph looks fine to me. Time is now 20:58 and latest record from 20:55
Time on x-axis on the right is 21:00
http://vejr.arloese.dk/template/pages/station/graph.php

Inspector gives this option:

Highcharts.setOptions({
global: {
useUTC: true
},
lang: {
months: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
weekdays: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
resetZoom: ['Standard zoom']
}
});

But this is one hour ahead:
http://vejr.arloese.dk/template/indexDesktop.php

Inspector gives this option:

Highcharts.setOptions({
global: {
useUTC: true
},
lang: {
months: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
weekdays: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
resetZoom: ['Standard zoom']
}
});

Inspector also finds this option:

Highcharts.setOptions({
global: {
useUTC: false,
timezoneOffset: -60
},
lang: {
months: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
weekdays: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
resetZoom: ['Standard zoom']
}
});

Maybe you wanna have a look at the timezone-option: https://api.highcharts.com/highcharts/global.timezone
Requires moment.js but user just have to type in location and Highcharts takes care of the rest (also at DST-change).

Kind Regards

Re: Interactive Graph

Posted: Thu Jan 11, 2018 10:18 pm
by Jachym
Highcharts adjusts time based on user system time, which is a problem because thats not what we want. Setting it to UTC should prevent this because it tells the script not to convert anything. What puzzles me is that the same setting works in other blocks/pages

Re: Interactive Graph

Posted: Fri Jan 12, 2018 3:43 pm
by droiddk
Jachym wrote: Thu Jan 11, 2018 10:18 pm ...Setting it to UTC should prevent this because it tells the script not to convert anything.
Yes...but one of the options got

useUTC: false,

Regards

Re: Interactive Graph

Posted: Thu Nov 28, 2019 2:40 pm
by Didiersm
HI,

Sorry but the issue is still alive for me and I don't know wy!
I take the time to have a look on it since long months!
All PhP file seems to be correct.
Any idea?
thks

Re: Interactive Graph

Posted: Thu Dec 05, 2019 6:05 pm
by Tigro11
hello guys same problem, the chart is one hour ahead, and is it possible to solve the problem?
thanks

Re: Interactive Graph

Posted: Fri Aug 23, 2024 10:05 am
by casabastiano
I'm sorry, but I have the same problem. My interactive graph on the block show +2 hour. The popup on the block shows the correct time. Even if I change from "Today" to "last 24 hours" or "yesterday" the graph show the correct time, but when I open the home page the time is +2 hour (the block is set on "Today", i already try to change the default configuration but nothing changed).

Is it possible to fix this problem?

Re: Interactive Graph

Posted: Sat Aug 24, 2024 6:43 am
by FSC830
Can you please post a screenshot showing the issue?
Currently I dont know where at the page is the issue you taklng from.
Which block is it?

Regards

Re: Interactive Graph

Posted: Wed Aug 28, 2024 6:01 am
by FSC830
Hi,
I see. I did install the interactiveGraph block some days ago, but all was fine.
Today I noticed that the hour at the x-axis wat abt. 2 hours ahead. Modifying time zone in main setup did not change anything.
But switching in the block from i.e. "Today" to "Yesterday" or switching from "Temperature" to "Dewpoint" the time at the axis was displayed correct again... very weird.

Regards