Page 1 of 1

Some types of graphs are not JS compatible

Posted: Mon Dec 28, 2015 12:46 pm
by netsigi
Hi, if i try engine=JS for "Wind Radar" the graph is not really usable.

Code: Select all

    #engine=js
    timeframe=6h              # set total time frame to previous month
    dirlist=N,NNO,NO,ONO,O,OSO,SO,SSO,S,SSW,SW,WSW,W,WNW,NW,NNW

    gtitle=Hauptwindrichtung_letzte_6_Stunden  # name of graph
    gheight=400                 # height in pixels of graph
    gwidth=400                  # width in pixels of graph
    glunit=_%                   # show percent as unit on axis and balloons
    gtype=radar%                # radar graph shows directional distribution in percent
    res=minute15

    sid0=wind4 sfill0=20 sname0=main_wind_dir ssel0=maindir sprec0=0
bad:
Bad
Bad
Bildschirmfoto 2015-12-24 um 00.46.27.png (25.73 KiB) Viewed 18269 times
good, but Flashy:
good
good
Bildschirmfoto 2015-12-24 um 00.46.05.png (102.27 KiB) Viewed 18269 times

Re: Some types of graphs are not JS compatible

Posted: Mon Jan 04, 2016 9:17 pm
by ironedge
Not sure what goes wrong on your side. I do use Wind Radar graphs with JavaScript engine and it works fine. Maybe you need to explicitly set colors.

Here my definition:

Code: Select all

timeframe=-1M               # set total time frame to previous month
dirlist=N,NNO,NO,ONO,O,OSO,SO,SSO,S,SSW,SW,WSW,W,WNW,NW,NNW
engine=JavaScript
bgcolor=#FFFFFF
textcolor=#000000
gridcolor=#000000
gtitle=Haupt-Windrichtung  # name of graph
gheight=500                 # height in pixels of graph
gwidth=600                  # width in pixels of graph
glunit=_%                   # show percent as unit on axis and balloons
gtype=radar%                # radar graph shows directional distribution in percent
res=min30 
sid0=wind0 sfill0=20 sname0=Haupt-Windrichtung ssel0=maindir sprec0=0
Feel free to check on my website at http://wetter.isenegger.org/alle-wetterdaten/ (select "Windrichtung"). It's a JavaScript graph like all other graphs on my website, and for that it also works perfectly fine on mobile devices without Flash.

Re: Some types of graphs are not JS compatible

Posted: Fri Jan 08, 2016 3:58 pm
by Brodin
thanks dude. I'll learn to that

Re: Some types of graphs are not JS compatible

Posted: Sat Jan 09, 2016 4:36 pm
by netsigi
Thanks a lot...

much better now. At least some output. I wish some day the details will be optically better.
Java
Java
js.png (51.29 KiB) Viewed 18248 times
The attachment js.png is no longer available