var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,25.90000000],[1787954580000,26.04000000],[1787954880000,26.32000000],[1787955180000,26.92000000],[1787955480000,27.04000000],[1787955780000,27.10000000],[1787956080000,27.20000000],[1787956380000,27.20000000],[1787956680000,27.24000000],[1787956980000,27.16000000],[1787957280000,27.16000000],[1787957580000,27.16000000],[1787957880000,27.04000000],[1787958180000,27.00000000],[1787958480000,26.94000000],[1787958780000,26.94000000],[1787959080000,26.84000000],[1787959380000,26.76000000],[1787959680000,26.80000000],[1787959980000,26.70000000],[1787960280000,26.70000000],[1787960580000,26.66000000],[1787960880000,26.60000000],[1787961180000,26.52000000],[1787961480000,26.50000000],[1787961780000,26.36000000],[1787962080000,26.38000000],[1787962380000,26.40000000],[1787962680000,26.34000000],[1787962980000,26.24000000],[1787963280000,26.18000000],[1787963580000,26.20000000],[1787963880000,26.00000000],[1787964180000,25.80000000],[1787964480000,25.98000000],[1787964780000,26.18000000],[1787965080000,26.16000000],[1787965380000,25.48000000],[1787965680000,24.58000000],[1787965980000,24.36000000],[1787966280000,24.28000000],[1787966580000,24.16000000],[1787966880000,24.16000000],[1787967180000,24.22000000],[1787967480000,24.48000000],[1787967780000,24.40000000],[1787968080000,24.28000000],[1787968380000,23.52000000],[1787968680000,22.76000000],[1787968980000,22.44000000],[1787969280000,21.82000000],[1787969580000,21.24000000],[1787969880000,21.04000000],[1787970180000,20.84000000],[1787970480000,20.66000000],[1787970780000,20.46000000],[1787971080000,20.40000000],[1787971380000,20.36000000],[1787971680000,20.24000000],[1787971980000,20.04000000],[1787972280000,19.90000000],[1787972580000,19.90000000],[1787972880000,19.84000000],[1787973180000,19.78000000],[1787973480000,19.40000000],[1787973780000,19.02000000],[1787974080000,18.80000000],[1787974380000,18.80000000],[1787974680000,18.74000000],[1787974980000,18.80000000],[1787975280000,18.88000000],[1787975580000,18.90000000],[1787975880000,18.88000000],[1787976180000,18.98000000],[1787976480000,19.00000000],[1787976780000,19.00000000],[1787977080000,19.08000000],[1787977380000,19.10000000],[1787977680000,19.06000000],[1787977980000,19.00000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,8.4],[1787954580000,8.5],[1787954880000,8.2],[1787955180000,8.3],[1787955480000,8.2],[1787955780000,8],[1787956080000,8.1],[1787956380000,8.1],[1787956680000,8.2],[1787956980000,8.1],[1787957280000,8.1],[1787957580000,8.1],[1787957880000,8],[1787958180000,8],[1787958480000,7.9],[1787958780000,7.9],[1787959080000,7.8],[1787959380000,7.7],[1787959680000,7.8],[1787959980000,7.7],[1787960280000,7.7],[1787960580000,7.7],[1787960880000,7.6],[1787961180000,7.7],[1787961480000,8],[1787961780000,7.9],[1787962080000,7.9],[1787962380000,7.9],[1787962680000,7.9],[1787962980000,7.8],[1787963280000,7.8],[1787963580000,7.7],[1787963880000,8],[1787964180000,7.8],[1787964480000,7.7],[1787964780000,7.7],[1787965080000,7.7],[1787965380000,9.1],[1787965680000,8.3],[1787965980000,7.7],[1787966280000,7.8],[1787966580000,7.7],[1787966880000,7.6],[1787967180000,7.7],[1787967480000,7.6],[1787967780000,7.9],[1787968080000,10.3],[1787968380000,15.2],[1787968680000,16.2],[1787968980000,16.4],[1787969280000,16.7],[1787969580000,16.8],[1787969880000,16.8],[1787970180000,16.6],[1787970480000,16.7],[1787970780000,16.8],[1787971080000,16.7],[1787971380000,16.4],[1787971680000,16.5],[1787971980000,16.3],[1787972280000,16.1],[1787972580000,16.1],[1787972880000,16],[1787973180000,15.9],[1787973480000,16],[1787973780000,16.1],[1787974080000,16],[1787974380000,15.8],[1787974680000,15.8],[1787974980000,15.8],[1787975280000,15.8],[1787975580000,15.9],[1787975880000,15.9],[1787976180000,15.8],[1787976480000,15.8],[1787976780000,15.8],[1787977080000,15.8],[1787977380000,15.7],[1787977680000,15.8],[1787977980000,15.8],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { var dataset = [{label: "5 cm nad povrchom (\u00b0C)", data: [[1787954400000,24.63333333],[1787954580000,24.70000000],[1787954880000,25.14000000],[1787955180000,25.78000000],[1787955480000,26.00000000],[1787955780000,26.22000000],[1787956080000,26.36000000],[1787956380000,26.44000000],[1787956680000,26.48000000],[1787956980000,26.48000000],[1787957280000,26.46000000],[1787957580000,26.40000000],[1787957880000,26.30000000],[1787958180000,26.14000000],[1787958480000,26.00000000],[1787958780000,25.84000000],[1787959080000,25.66000000],[1787959380000,25.40000000],[1787959680000,25.40000000],[1787959980000,25.38000000],[1787960280000,25.36000000],[1787960580000,25.44000000],[1787960880000,25.40000000],[1787961180000,25.38000000],[1787961480000,25.16000000],[1787961780000,25.06000000],[1787962080000,25.02000000],[1787962380000,25.00000000],[1787962680000,24.82000000],[1787962980000,24.84000000],[1787963280000,24.74000000],[1787963580000,24.90000000],[1787963880000,24.84000000],[1787964180000,24.80000000],[1787964480000,25.08000000],[1787964780000,25.20000000],[1787965080000,25.06000000],[1787965380000,18.98000000],[1787965680000,17.76000000],[1787965980000,19.28000000],[1787966280000,20.60000000],[1787966580000,21.66000000],[1787966880000,22.00000000],[1787967180000,22.40000000],[1787967480000,22.68000000],[1787967780000,22.80000000],[1787968080000,22.82000000],[1787968380000,22.66000000],[1787968680000,22.24000000],[1787968980000,21.92000000],[1787969280000,21.50000000],[1787969580000,20.98000000],[1787969880000,20.72000000],[1787970180000,20.54000000],[1787970480000,20.36000000],[1787970780000,20.22000000],[1787971080000,20.10000000],[1787971380000,20.06000000],[1787971680000,19.94000000],[1787971980000,19.76000000],[1787972280000,19.62000000],[1787972580000,19.60000000],[1787972880000,19.50000000],[1787973180000,19.22000000],[1787973480000,18.56000000],[1787973780000,17.76000000],[1787974080000,17.32000000],[1787974380000,17.68000000],[1787974680000,17.94000000],[1787974980000,18.18000000],[1787975280000,18.36000000],[1787975580000,18.44000000],[1787975880000,18.46000000],[1787976180000,18.60000000],[1787976480000,18.64000000],[1787976780000,18.68000000],[1787977080000,18.70000000],[1787977380000,18.78000000],[1787977680000,18.70000000],[1787977980000,18.70000000],], color: "#f39c12"}]; var options = { points: { show: false }, lines: { show: true, lineWidth: 2, fill: false }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser' }, grid: { hoverable: true, clickable: true, borderWidth: 0 }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-ground-temperature-legend' } }; graphs['#chart-ground-temperature'] = $.plot('#chart-ground-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1787954400000,33.00000000],[1787954580000,33.00000000],[1787954880000,31.80000000],[1787955180000,30.80000000],[1787955480000,30.40000000],[1787955780000,30.00000000],[1787956080000,30.00000000],[1787956380000,30.00000000],[1787956680000,30.00000000],[1787956980000,30.00000000],[1787957280000,30.00000000],[1787957580000,30.00000000],[1787957880000,30.00000000],[1787958180000,30.00000000],[1787958480000,30.00000000],[1787958780000,30.00000000],[1787959080000,30.00000000],[1787959380000,30.00000000],[1787959680000,30.00000000],[1787959980000,30.00000000],[1787960280000,30.00000000],[1787960580000,30.00000000],[1787960880000,30.00000000],[1787961180000,30.40000000],[1787961480000,31.00000000],[1787961780000,31.00000000],[1787962080000,31.00000000],[1787962380000,31.00000000],[1787962680000,31.00000000],[1787962980000,31.00000000],[1787963280000,31.20000000],[1787963580000,31.00000000],[1787963880000,32.00000000],[1787964180000,32.00000000],[1787964480000,31.40000000],[1787964780000,31.00000000],[1787965080000,31.00000000],[1787965380000,35.60000000],[1787965680000,35.40000000],[1787965980000,34.60000000],[1787966280000,35.00000000],[1787966580000,35.00000000],[1787966880000,34.80000000],[1787967180000,34.80000000],[1787967480000,34.00000000],[1787967780000,35.00000000],[1787968080000,41.40000000],[1787968380000,59.60000000],[1787968680000,66.80000000],[1787968980000,68.80000000],[1787969280000,73.00000000],[1787969580000,76.00000000],[1787969880000,77.00000000],[1787970180000,77.00000000],[1787970480000,78.00000000],[1787970780000,79.40000000],[1787971080000,79.40000000],[1787971380000,78.00000000],[1787971680000,79.00000000],[1787971980000,79.00000000],[1787972280000,79.00000000],[1787972580000,79.00000000],[1787972880000,78.60000000],[1787973180000,78.40000000],[1787973480000,80.80000000],[1787973780000,83.20000000],[1787974080000,83.80000000],[1787974380000,83.00000000],[1787974680000,83.20000000],[1787974980000,83.00000000],[1787975280000,82.40000000],[1787975580000,82.60000000],[1787975880000,82.80000000],[1787976180000,82.00000000],[1787976480000,82.00000000],[1787976780000,82.00000000],[1787977080000,81.20000000],[1787977380000,81.00000000],[1787977680000,81.40000000],[1787977980000,82.00000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1787954400000,1010.5],[1787954580000,1010.4],[1787954880000,1010.2],[1787955180000,1009.7],[1787955480000,1009.6],[1787955780000,1009.7],[1787956080000,1009.7],[1787956380000,1009.7],[1787956680000,1010],[1787956980000,1010.2],[1787957280000,1010.3],[1787957580000,1010.4],[1787957880000,1010.3],[1787958180000,1010.2],[1787958480000,1010],[1787958780000,1009.8],[1787959080000,1009.6],[1787959380000,1009.5],[1787959680000,1009.5],[1787959980000,1009.6],[1787960280000,1009.8],[1787960580000,1009.8],[1787960880000,1009.8],[1787961180000,1009.8],[1787961480000,1009.8],[1787961780000,1009.7],[1787962080000,1009.8],[1787962380000,1010],[1787962680000,1010.2],[1787962980000,1010.4],[1787963280000,1010.5],[1787963580000,1010.6],[1787963880000,1010.8],[1787964180000,1011],[1787964480000,1011.1],[1787964780000,1011.1],[1787965080000,1011.2],[1787965380000,1011.3],[1787965680000,1011.4],[1787965980000,1011.8],[1787966280000,1011.9],[1787966580000,1012],[1787966880000,1012.1],[1787967180000,1012.3],[1787967480000,1012.2],[1787967780000,1012.3],[1787968080000,1012.5],[1787968380000,1012.8],[1787968680000,1013.1],[1787968980000,1013.3],[1787969280000,1013.5],[1787969580000,1013.7],[1787969880000,1013.8],[1787970180000,1013.8],[1787970480000,1013.8],[1787970780000,1013.9],[1787971080000,1014],[1787971380000,1013.9],[1787971680000,1014],[1787971980000,1014.1],[1787972280000,1014],[1787972580000,1013.9],[1787972880000,1013.8],[1787973180000,1014.1],[1787973480000,1014.3],[1787973780000,1014.3],[1787974080000,1014.4],[1787974380000,1014.5],[1787974680000,1014.4],[1787974980000,1014.6],[1787975280000,1014.8],[1787975580000,1015],[1787975880000,1015],[1787976180000,1015.1],[1787976480000,1015.2],[1787976780000,1015],[1787977080000,1014.9],[1787977380000,1014.8],[1787977680000,1014.6],[1787977980000,1014.4],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1787954400000,8.160000012],[1787954580000,5.76],[1787954880000,3.816],[1787955180000,5.688],[1787955480000,12.24],[1787955780000,16.632],[1787956080000,20.52],[1787956380000,19.8],[1787956680000,19.512],[1787956980000,21.312],[1787957280000,12.528],[1787957580000,12.528],[1787957880000,11.16],[1787958180000,11.448],[1787958480000,7.488],[1787958780000,13.248],[1787959080000,8.928],[1787959380000,9.36],[1787959680000,12.456],[1787959980000,12.816],[1787960280000,13.104],[1787960580000,10.8],[1787960880000,12.456],[1787961180000,12.528],[1787961480000,8.64],[1787961780000,4.104],[1787962080000,4.32],[1787962380000,6.264],[1787962680000,9.36],[1787962980000,12.24],[1787963280000,9.432],[1787963580000,10.728],[1787963880000,15.264],[1787964180000,20.232],[1787964480000,22.608],[1787964780000,16.128],[1787965080000,12.6],[1787965380000,14.184],[1787965680000,16.992],[1787965980000,18.576],[1787966280000,15.264],[1787966580000,13.68],[1787966880000,11.232],[1787967180000,15.336],[1787967480000,15.12],[1787967780000,16.056],[1787968080000,23.832],[1787968380000,32.04],[1787968680000,26.064],[1787968980000,26.352],[1787969280000,24.48],[1787969580000,27.792],[1787969880000,25.344],[1787970180000,25.848],[1787970480000,22.608],[1787970780000,18.792],[1787971080000,24.048],[1787971380000,24.48],[1787971680000,24.696],[1787971980000,24.912],[1787972280000,25.416],[1787972580000,31.104],[1787972880000,31.536],[1787973180000,32.688],[1787973480000,28.152],[1787973780000,27.216],[1787974080000,30.672],[1787974380000,33.336],[1787974680000,31.752],[1787974980000,23.472],[1787975280000,19.224],[1787975580000,21.096],[1787975880000,25.776],[1787976180000,22.392],[1787976480000,26.928],[1787976780000,24.48],[1787977080000,26.568],[1787977380000,23.472],[1787977680000,22.896],[1787977980000,19.35],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,11.040000012],[1787954580000,8.064],[1787954880000,6.84],[1787955180000,9.648],[1787955480000,18.72],[1787955780000,23.04],[1787956080000,27.504],[1787956380000,26.136],[1787956680000,25.488],[1787956980000,27.72],[1787957280000,18.504],[1787957580000,19.512],[1787957880000,18.504],[1787958180000,17.424],[1787958480000,12.096],[1787958780000,18.36],[1787959080000,13.464],[1787959380000,17.208],[1787959680000,17.928],[1787959980000,18.72],[1787960280000,19.368],[1787960580000,15.696],[1787960880000,18.144],[1787961180000,17.496],[1787961480000,11.376],[1787961780000,6.48],[1787962080000,6.552],[1787962380000,9.504],[1787962680000,12.6],[1787962980000,14.976],[1787963280000,11.808],[1787963580000,14.184],[1787963880000,18.648],[1787964180000,26.28],[1787964480000,26.496],[1787964780000,20.232],[1787965080000,17.424],[1787965380000,17.496],[1787965680000,20.88],[1787965980000,22.176],[1787966280000,17.784],[1787966580000,15.552],[1787966880000,13.392],[1787967180000,19.296],[1787967480000,18.936],[1787967780000,20.664],[1787968080000,29.304],[1787968380000,37.944],[1787968680000,30.816],[1787968980000,34.992],[1787969280000,30.096],[1787969580000,35.424],[1787969880000,32.976],[1787970180000,32.976],[1787970480000,29.016],[1787970780000,23.688],[1787971080000,29.448],[1787971380000,32.976],[1787971680000,30.096],[1787971980000,31.896],[1787972280000,32.472],[1787972580000,38.88],[1787972880000,40.32],[1787973180000,41.976],[1787973480000,34.776],[1787973780000,35.568],[1787974080000,40.176],[1787974380000,41.184],[1787974680000,37.944],[1787974980000,29.592],[1787975280000,25.272],[1787975580000,25.416],[1787975880000,30.096],[1787976180000,27.288],[1787976480000,31.68],[1787976780000,29.16],[1787977080000,32.688],[1787977380000,27.648],[1787977680000,27],[1787977980000,23.22],], color: '#EF9856', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1km/h' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-legend' } }; graphs['#chart-wind'] = $.plot('#chart-wind', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Smer vetra', data: [[1787954400000,133.00000000],[1787954580000,58.20000000],[1787954880000,211.20000000],[1787955180000,100.60000000],[1787955480000,99.60000000],[1787955780000,109.80000000],[1787956080000,109.00000000],[1787956380000,114.20000000],[1787956680000,121.00000000],[1787956980000,122.80000000],[1787957280000,125.20000000],[1787957580000,129.20000000],[1787957880000,80.20000000],[1787958180000,70.40000000],[1787958480000,71.60000000],[1787958780000,75.40000000],[1787959080000,89.60000000],[1787959380000,123.40000000],[1787959680000,121.40000000],[1787959980000,124.20000000],[1787960280000,131.60000000],[1787960580000,139.00000000],[1787960880000,113.40000000],[1787961180000,142.40000000],[1787961480000,172.60000000],[1787961780000,92.40000000],[1787962080000,223.20000000],[1787962380000,187.80000000],[1787962680000,237.80000000],[1787962980000,267.80000000],[1787963280000,262.00000000],[1787963580000,240.80000000],[1787963880000,248.40000000],[1787964180000,238.60000000],[1787964480000,230.80000000],[1787964780000,189.60000000],[1787965080000,213.20000000],[1787965380000,235.80000000],[1787965680000,267.00000000],[1787965980000,263.20000000],[1787966280000,256.20000000],[1787966580000,245.80000000],[1787966880000,253.60000000],[1787967180000,253.40000000],[1787967480000,263.80000000],[1787967780000,266.00000000],[1787968080000,269.80000000],[1787968380000,281.80000000],[1787968680000,271.80000000],[1787968980000,267.60000000],[1787969280000,274.40000000],[1787969580000,278.40000000],[1787969880000,284.40000000],[1787970180000,283.20000000],[1787970480000,295.00000000],[1787970780000,289.20000000],[1787971080000,289.20000000],[1787971380000,294.20000000],[1787971680000,290.60000000],[1787971980000,287.20000000],[1787972280000,302.00000000],[1787972580000,303.00000000],[1787972880000,307.80000000],[1787973180000,304.20000000],[1787973480000,301.40000000],[1787973780000,300.40000000],[1787974080000,306.20000000],[1787974380000,309.40000000],[1787974680000,326.80000000],[1787974980000,347.20000000],[1787975280000,342.20000000],[1787975580000,332.20000000],[1787975880000,327.20000000],[1787976180000,321.80000000],[1787976480000,322.20000000],[1787976780000,328.00000000],[1787977080000,339.00000000],[1787977380000,205.80000000],[1787977680000,16.40000000],[1787977980000,24.50000000],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1787954400000,0],[1787954580000,0],[1787954880000,0],[1787955180000,0],[1787955480000,0],[1787955780000,0],[1787956080000,0],[1787956380000,0],[1787956680000,0],[1787956980000,0],[1787957280000,0],[1787957580000,0],[1787957880000,0],[1787958180000,0],[1787958480000,0],[1787958780000,0],[1787959080000,0],[1787959380000,0],[1787959680000,0],[1787959980000,0],[1787960280000,0],[1787960580000,0],[1787960880000,0],[1787961180000,0],[1787961480000,0],[1787961780000,0],[1787962080000,0],[1787962380000,0],[1787962680000,0],[1787962980000,0],[1787963280000,0],[1787963580000,0],[1787963880000,0],[1787964180000,0],[1787964480000,0],[1787964780000,0],[1787965080000,0],[1787965380000,0.02],[1787965680000,0.02],[1787965980000,0.02],[1787966280000,0.02],[1787966580000,0.02],[1787966880000,0.02],[1787967180000,0.02],[1787967480000,0.02],[1787967780000,0.02],[1787968080000,0.02],[1787968380000,0.02],[1787968680000,0.02],[1787968980000,0.02],[1787969280000,0.02],[1787969580000,0.02],[1787969880000,0.02],[1787970180000,0.02],[1787970480000,0.02],[1787970780000,0.02],[1787971080000,0.02],[1787971380000,0.02],[1787971680000,0.02],[1787971980000,0.02],[1787972280000,0.02],[1787972580000,0.02],[1787972880000,0.02],[1787973180000,0.02],[1787973480000,0.02],[1787973780000,0.02],[1787974080000,0.02],[1787974380000,0.02],[1787974680000,0.02],[1787974980000,0.02],[1787975280000,0.02],[1787975580000,0.02],[1787975880000,0.02],[1787976180000,0.02],[1787976480000,0.02],[1787976780000,0.02],[1787977080000,0.02],[1787977380000,0.02],[1787977680000,0.02],[1787977980000,0.02],], color: '#008fbf' } ]; var options = { xaxes: [{ axisLabel: 'rain', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.3mm' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-rain-legend' } }; graphs['#chart-rain'] = $.plot('#chart-rain', dataset, options); }); $('.modal').on('hide.bs.modal', function() { var memory = $(this).html(); $(this).html(memory); }); function meteo_wind_direction_name(wind_direction) { if (wind_direction >= 0.00 && wind_direction <= 11.25) { ret = 'S'; } else if (wind_direction > 11.25 && wind_direction <= 33.75) { ret = 'SSV'; } else if (wind_direction > 33.75 && wind_direction <= 56.25) { ret = 'SV'; } else if (wind_direction > 56.25 && wind_direction <= 78.75) { // 67.5 ret = 'VSV'; } else if (wind_direction > 78.75 && wind_direction <= 101.25) { // 90 ret = 'V'; } else if (wind_direction > 101.25 && wind_direction <= 123.75) { //112.5 ret = 'VJV'; } else if (wind_direction > 123.75 && wind_direction <= 146.25) { // 135 ret = 'JV'; } else if (wind_direction > 146.25 && wind_direction <= 168.75) { // 157.5 ret = 'JJV'; } else if (wind_direction > 168.75 && wind_direction <= 191.25) { // 180 ret = 'J'; } else if (wind_direction > 191.25 && wind_direction <= 213.75) { // 202.5 ret = 'JJZ'; } else if (wind_direction > 213.75 && wind_direction <= 236.25) { // 225 ret = 'JZ'; } else if (wind_direction > 236.25 && wind_direction <= 258.75) { // 247.5 ret = 'ZJZ'; } else if (wind_direction > 258.75 && wind_direction <= 281.25) { // 270 ret = 'Z'; } else if (wind_direction > 281.25 && wind_direction <= 303.75) { // 292.5 ret = 'ZSZ'; } else if (wind_direction > 303.75 && wind_direction <= 326.25) { // 315 ret = 'SZ'; } else if (wind_direction > 326.25 && wind_direction <= 348.75) { // 337.5 ret = 'SSZ'; } else if (wind_direction > 348.75 && wind_direction <= 360.0) { // 337.5 ret = 'S'; } else { return ''; } return ret; }