Windrose Graphics Error in IE11 and Firefox47.0.1

44 views
Skip to first unread message

René Schulze

unread,
Jul 4, 2016, 8:45:47 AM7/4/16
to meso-user
Hi,

on several PC's an Notebooks the Graphic of the Windrose is not build up correctly. On my PC at home it works everytime fine. It's an older Hardware with win7 64bit and Firefox 47.0.1.

On the PC at work an also on a Notebook at work the browser shows  the graphics like you see in the Pictures. It stops during Pageload when the right Panel is complete loaded.  By relading the page the graphics changes but a correct graphic is very rare.
Is there a solution for this problem?


Greetings René

IE 11:




 

René Schulze

unread,
Jul 6, 2016, 3:15:43 AM7/6/16
to meso-user
Hi
 
 after several test it seems that the error only occurs if there is no wind. If is given a winddirection or windspeed in the database the windrose will build up correctly.

Greetings René 
  

René Schulze

unread,
Jul 13, 2016, 1:56:08 PM7/13/16
to meso-user
Hi, here an update.

The corrupted graphic appers if the value of winddir in the database is null. This raises an exception in function interpolateRotate(a, b) (line 204 at WindCompass.js) cause the var m[2] is not defined. After this exception javascript stops the calculating for windrose build up. It seems this problem will only be there on a very fast pc. As workaround is set in line 79 : .transition().duration(100). The windrose builds up faster then and is complete till the script detects the null value.

I hope there is an solution in future for catching exceptions depending on 'null' values. A transition duration of 1000ms looks better then 100ms.

Greetings René


Hajo Harms

unread,
Nov 25, 2019, 4:47:14 PM11/25/19
to meso-user
Hi

long time ago, if anybody instrested :
enter the if statement after 
"// current direction pointer"

if(data[2] != null) {

 "code"

} befor 
// wind speed display

this will clear the currdir pointer if a null value is in winddir.
Reply all
Reply to author
Forward
0 new messages