var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,16.50000000],[1787954580000,16.58000000],[1787954880000,16.56000000],[1787955180000,16.54000000],[1787955480000,16.60000000],[1787955780000,16.60000000],[1787956080000,16.58000000],[1787956380000,16.60000000],[1787956680000,16.58000000],[1787956980000,16.48000000],[1787957280000,16.50000000],[1787957580000,16.60000000],[1787957880000,16.60000000],[1787958180000,16.60000000],[1787958480000,16.50000000],[1787958780000,16.50000000],[1787959080000,16.50000000],[1787959380000,16.52000000],[1787959680000,16.56000000],[1787959980000,16.50000000],[1787960280000,16.42000000],[1787960580000,16.34000000],[1787960880000,16.20000000],[1787961180000,15.94000000],[1787961480000,15.88000000],[1787961780000,15.90000000],[1787962080000,16.00000000],[1787962380000,15.94000000],[1787962680000,15.90000000],[1787962980000,15.84000000],[1787963280000,15.72000000],[1787963580000,15.64000000],[1787963880000,15.60000000],[1787964180000,15.58000000],[1787964480000,15.64000000],[1787964780000,15.86000000],[1787965080000,16.22000000],[1787965380000,16.36000000],[1787965680000,16.26000000],[1787965980000,16.22000000],[1787966280000,16.24000000],[1787966580000,16.36000000],[1787966880000,16.36000000],[1787967180000,16.30000000],[1787967480000,16.30000000],[1787967780000,16.20000000],[1787968080000,16.12000000],[1787968380000,16.04000000],[1787968680000,15.96000000],[1787968980000,15.82000000],[1787969280000,15.62000000],[1787969580000,15.46000000],[1787969880000,15.26000000],[1787970180000,15.18000000],[1787970480000,15.10000000],[1787970780000,15.10000000],[1787971080000,15.10000000],[1787971380000,15.10000000],[1787971680000,15.06000000],[1787971980000,15.04000000],[1787972280000,14.98000000],[1787972580000,14.98000000],[1787972880000,15.04000000],[1787973180000,15.26000000],[1787973480000,15.30000000],[1787973780000,15.30000000],[1787974080000,15.28000000],[1787974380000,15.20000000],[1787974680000,15.20000000],[1787974980000,15.16000000],[1787975280000,15.10000000],[1787975580000,14.96000000],[1787975880000,14.84000000],[1787976180000,14.76000000],[1787976480000,14.70000000],[1787976780000,14.64000000],[1787977080000,14.60000000],[1787977380000,14.58000000],[1787977680000,14.50000000],[1787977980000,14.56000000],[1787978280000,14.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,5.1],[1787954580000,5.1],[1787954880000,5.1],[1787955180000,5],[1787955480000,5],[1787955780000,5],[1787956080000,5],[1787956380000,5.1],[1787956680000,5.1],[1787956980000,5.1],[1787957280000,5.1],[1787957580000,5.2],[1787957880000,5.2],[1787958180000,5.3],[1787958480000,5.4],[1787958780000,5.3],[1787959080000,5.4],[1787959380000,5.4],[1787959680000,5.5],[1787959980000,5.5],[1787960280000,5.4],[1787960580000,5.4],[1787960880000,5.4],[1787961180000,5.4],[1787961480000,5.5],[1787961780000,5.5],[1787962080000,5.6],[1787962380000,5.6],[1787962680000,5.6],[1787962980000,5.6],[1787963280000,5.6],[1787963580000,5.7],[1787963880000,5.7],[1787964180000,5.8],[1787964480000,5.9],[1787964780000,6],[1787965080000,6.3],[1787965380000,6.3],[1787965680000,6.3],[1787965980000,6.1],[1787966280000,6.2],[1787966580000,6.4],[1787966880000,6.4],[1787967180000,6.4],[1787967480000,6.3],[1787967780000,6.3],[1787968080000,6.3],[1787968380000,6.3],[1787968680000,6.3],[1787968980000,6.5],[1787969280000,6.4],[1787969580000,6.3],[1787969880000,6.4],[1787970180000,6.5],[1787970480000,6.6],[1787970780000,6.7],[1787971080000,7.1],[1787971380000,7.4],[1787971680000,7.4],[1787971980000,7.4],[1787972280000,7.5],[1787972580000,7.6],[1787972880000,7.9],[1787973180000,8.1],[1787973480000,8.3],[1787973780000,8.4],[1787974080000,8.4],[1787974380000,8.5],[1787974680000,8.5],[1787974980000,8.6],[1787975280000,8.8],[1787975580000,8.9],[1787975880000,8.9],[1787976180000,9.2],[1787976480000,8.9],[1787976780000,8.7],[1787977080000,8.8],[1787977380000,8.9],[1787977680000,9],[1787977980000,9.5],[1787978280000,9.7],], 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,14.80000000],[1787954580000,14.84000000],[1787954880000,14.84000000],[1787955180000,14.76000000],[1787955480000,14.86000000],[1787955780000,14.90000000],[1787956080000,14.92000000],[1787956380000,14.96000000],[1787956680000,15.12000000],[1787956980000,15.16000000],[1787957280000,15.46000000],[1787957580000,15.70000000],[1787957880000,15.74000000],[1787958180000,15.80000000],[1787958480000,15.68000000],[1787958780000,15.60000000],[1787959080000,15.52000000],[1787959380000,15.60000000],[1787959680000,15.72000000],[1787959980000,15.66000000],[1787960280000,15.50000000],[1787960580000,15.16000000],[1787960880000,14.92000000],[1787961180000,14.64000000],[1787961480000,14.50000000],[1787961780000,14.72000000],[1787962080000,14.94000000],[1787962380000,14.70000000],[1787962680000,14.44000000],[1787962980000,14.32000000],[1787963280000,14.26000000],[1787963580000,14.20000000],[1787963880000,14.22000000],[1787964180000,13.98000000],[1787964480000,14.32000000],[1787964780000,14.92000000],[1787965080000,15.42000000],[1787965380000,15.58000000],[1787965680000,15.52000000],[1787965980000,15.40000000],[1787966280000,15.52000000],[1787966580000,15.70000000],[1787966880000,15.70000000],[1787967180000,15.70000000],[1787967480000,15.66000000],[1787967780000,15.48000000],[1787968080000,15.42000000],[1787968380000,15.36000000],[1787968680000,15.10000000],[1787968980000,14.52000000],[1787969280000,14.16000000],[1787969580000,13.82000000],[1787969880000,13.58000000],[1787970180000,13.46000000],[1787970480000,13.38000000],[1787970780000,13.44000000],[1787971080000,13.40000000],[1787971380000,13.44000000],[1787971680000,13.50000000],[1787971980000,13.36000000],[1787972280000,13.16000000],[1787972580000,13.42000000],[1787972880000,13.88000000],[1787973180000,14.36000000],[1787973480000,14.48000000],[1787973780000,14.54000000],[1787974080000,14.56000000],[1787974380000,14.52000000],[1787974680000,14.60000000],[1787974980000,14.52000000],[1787975280000,14.36000000],[1787975580000,14.12000000],[1787975880000,13.82000000],[1787976180000,13.74000000],[1787976480000,13.80000000],[1787976780000,13.70000000],[1787977080000,13.62000000],[1787977380000,13.72000000],[1787977680000,13.80000000],[1787977980000,13.90000000],[1787978280000,13.90000000],], 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,46.93333333],[1787954580000,46.78000000],[1787954880000,46.82000000],[1787955180000,46.70000000],[1787955480000,46.44000000],[1787955780000,46.40000000],[1787956080000,46.50000000],[1787956380000,46.70000000],[1787956680000,46.76000000],[1787956980000,47.18000000],[1787957280000,47.18000000],[1787957580000,47.26000000],[1787957880000,47.26000000],[1787958180000,47.54000000],[1787958480000,47.98000000],[1787958780000,47.90000000],[1787959080000,48.18000000],[1787959380000,48.04000000],[1787959680000,48.16000000],[1787959980000,48.34000000],[1787960280000,48.36000000],[1787960580000,48.60000000],[1787960880000,49.12000000],[1787961180000,49.86000000],[1787961480000,50.28000000],[1787961780000,50.28000000],[1787962080000,50.28000000],[1787962380000,50.46000000],[1787962680000,50.64000000],[1787962980000,50.90000000],[1787963280000,51.24000000],[1787963580000,51.82000000],[1787963880000,51.82000000],[1787964180000,52.34000000],[1787964480000,52.50000000],[1787964780000,52.32000000],[1787965080000,51.92000000],[1787965380000,51.56000000],[1787965680000,51.78000000],[1787965980000,51.46000000],[1787966280000,51.72000000],[1787966580000,51.82000000],[1787966880000,51.92000000],[1787967180000,52.06000000],[1787967480000,51.96000000],[1787967780000,52.06000000],[1787968080000,52.32000000],[1787968380000,52.72000000],[1787968680000,52.78000000],[1787968980000,53.96000000],[1787969280000,54.28000000],[1787969580000,54.68000000],[1787969880000,55.64000000],[1787970180000,56.48000000],[1787970480000,57.08000000],[1787970780000,57.58000000],[1787971080000,58.90000000],[1787971380000,60.28000000],[1787971680000,60.34000000],[1787971980000,60.48000000],[1787972280000,60.96000000],[1787972580000,61.60000000],[1787972880000,62.54000000],[1787973180000,62.72000000],[1787973480000,63.32000000],[1787973780000,63.58000000],[1787974080000,63.90000000],[1787974380000,64.52000000],[1787974680000,64.72000000],[1787974980000,64.98000000],[1787975280000,66.38000000],[1787975580000,67.08000000],[1787975880000,67.98000000],[1787976180000,69.38000000],[1787976480000,68.48000000],[1787976780000,67.98000000],[1787977080000,68.38000000],[1787977380000,69.02000000],[1787977680000,69.78000000],[1787977980000,71.66000000],[1787978280000,72.63333333],], 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,1016.1],[1787954580000,1016],[1787954880000,1016],[1787955180000,1016],[1787955480000,1015.8],[1787955780000,1015.8],[1787956080000,1015.7],[1787956380000,1015.7],[1787956680000,1015.6],[1787956980000,1015.6],[1787957280000,1015.6],[1787957580000,1015.6],[1787957880000,1015.5],[1787958180000,1015.4],[1787958480000,1015.4],[1787958780000,1015.4],[1787959080000,1015.4],[1787959380000,1015.3],[1787959680000,1015.3],[1787959980000,1015.2],[1787960280000,1015.1],[1787960580000,1014.9],[1787960880000,1014.8],[1787961180000,1014.8],[1787961480000,1014.7],[1787961780000,1014.7],[1787962080000,1014.7],[1787962380000,1014.8],[1787962680000,1014.9],[1787962980000,1014.8],[1787963280000,1014.7],[1787963580000,1014.5],[1787963880000,1014.4],[1787964180000,1014.4],[1787964480000,1014.3],[1787964780000,1014.2],[1787965080000,1014.1],[1787965380000,1014],[1787965680000,1014],[1787965980000,1014.1],[1787966280000,1014.1],[1787966580000,1014],[1787966880000,1013.9],[1787967180000,1013.9],[1787967480000,1013.7],[1787967780000,1013.6],[1787968080000,1013.5],[1787968380000,1013.3],[1787968680000,1013.2],[1787968980000,1013],[1787969280000,1012.9],[1787969580000,1012.9],[1787969880000,1013.1],[1787970180000,1013.2],[1787970480000,1013.3],[1787970780000,1013.5],[1787971080000,1013.7],[1787971380000,1013.9],[1787971680000,1014.1],[1787971980000,1014.1],[1787972280000,1014.1],[1787972580000,1014.2],[1787972880000,1014.2],[1787973180000,1014.2],[1787973480000,1014.6],[1787973780000,1014.6],[1787974080000,1014.6],[1787974380000,1014.6],[1787974680000,1014.6],[1787974980000,1014.6],[1787975280000,1014.5],[1787975580000,1014.4],[1787975880000,1014.5],[1787976180000,1014.6],[1787976480000,1014.6],[1787976780000,1014.5],[1787977080000,1014.5],[1787977380000,1014.5],[1787977680000,1014.5],[1787977980000,1014.5],[1787978280000,1014.5],], 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,15.360000012],[1787954580000,13.392],[1787954880000,14.184],[1787955180000,14.112],[1787955480000,14.832],[1787955780000,15.048],[1787956080000,16.272],[1787956380000,14.544],[1787956680000,13.68],[1787956980000,14.4],[1787957280000,14.4],[1787957580000,16.056],[1787957880000,15.552],[1787958180000,16.2],[1787958480000,17.784],[1787958780000,16.92],[1787959080000,16.632],[1787959380000,17.568],[1787959680000,15.84],[1787959980000,13.896],[1787960280000,17.064],[1787960580000,17.064],[1787960880000,17.784],[1787961180000,18.432],[1787961480000,18.144],[1787961780000,20.664],[1787962080000,19.08],[1787962380000,17.424],[1787962680000,15.48],[1787962980000,15.84],[1787963280000,16.416],[1787963580000,15.264],[1787963880000,15.84],[1787964180000,14.112],[1787964480000,13.536],[1787964780000,12.168],[1787965080000,11.016],[1787965380000,9.288],[1787965680000,10.152],[1787965980000,11.952],[1787966280000,14.328],[1787966580000,16.632],[1787966880000,17.064],[1787967180000,17.496],[1787967480000,17.28],[1787967780000,16.56],[1787968080000,17.568],[1787968380000,20.952],[1787968680000,20.808],[1787968980000,21.456],[1787969280000,21.888],[1787969580000,22.392],[1787969880000,19.8],[1787970180000,20.232],[1787970480000,17.784],[1787970780000,14.328],[1787971080000,15.84],[1787971380000,9.288],[1787971680000,9.504],[1787971980000,7.344],[1787972280000,12.096],[1787972580000,7.56],[1787972880000,11.016],[1787973180000,11.88],[1787973480000,9.72],[1787973780000,10.944],[1787974080000,7.272],[1787974380000,7.92],[1787974680000,8.136],[1787974980000,7.704],[1787975280000,11.448],[1787975580000,10.224],[1787975880000,9.576],[1787976180000,9.432],[1787976480000,7.848],[1787976780000,7.92],[1787977080000,10.224],[1787977380000,8.712],[1787977680000,6.192],[1787977980000,7.128],[1787978280000,6.84],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,18],[1787954580000,15.768],[1787954880000,17.064],[1787955180000,16.92],[1787955480000,17.712],[1787955780000,17.64],[1787956080000,19.368],[1787956380000,19.008],[1787956680000,16.992],[1787956980000,18.864],[1787957280000,18.432],[1787957580000,21.312],[1787957880000,18.792],[1787958180000,19.512],[1787958480000,22.464],[1787958780000,21.168],[1787959080000,21.744],[1787959380000,22.104],[1787959680000,19.728],[1787959980000,17.64],[1787960280000,21.168],[1787960580000,22.176],[1787960880000,22.392],[1787961180000,25.056],[1787961480000,22.968],[1787961780000,26.064],[1787962080000,24.984],[1787962380000,20.88],[1787962680000,19.512],[1787962980000,18.72],[1787963280000,19.8],[1787963580000,18.288],[1787963880000,18.072],[1787964180000,16.128],[1787964480000,16.992],[1787964780000,15.336],[1787965080000,13.68],[1787965380000,11.88],[1787965680000,12.672],[1787965980000,14.4],[1787966280000,17.712],[1787966580000,20.448],[1787966880000,21.312],[1787967180000,21.888],[1787967480000,21.24],[1787967780000,20.592],[1787968080000,22.536],[1787968380000,26.064],[1787968680000,25.632],[1787968980000,25.488],[1787969280000,26.712],[1787969580000,26.784],[1787969880000,24.192],[1787970180000,25.56],[1787970480000,23.256],[1787970780000,19.296],[1787971080000,19.584],[1787971380000,12.096],[1787971680000,12.096],[1787971980000,9.432],[1787972280000,14.904],[1787972580000,9.792],[1787972880000,13.464],[1787973180000,14.76],[1787973480000,12.096],[1787973780000,13.68],[1787974080000,9.216],[1787974380000,10.008],[1787974680000,9.792],[1787974980000,9.144],[1787975280000,13.248],[1787975580000,11.664],[1787975880000,11.232],[1787976180000,11.088],[1787976480000,9.144],[1787976780000,9],[1787977080000,12.168],[1787977380000,10.008],[1787977680000,8.064],[1787977980000,8.496],[1787978280000,7.92],], 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,94.10000000],[1787954580000,94.72000000],[1787954880000,93.44000000],[1787955180000,89.60000000],[1787955480000,88.50000000],[1787955780000,87.58000000],[1787956080000,90.84000000],[1787956380000,93.02000000],[1787956680000,84.60000000],[1787956980000,84.46000000],[1787957280000,84.64000000],[1787957580000,87.20000000],[1787957880000,89.46000000],[1787958180000,88.88000000],[1787958480000,93.84000000],[1787958780000,95.06000000],[1787959080000,102.18000000],[1787959380000,100.48000000],[1787959680000,100.04000000],[1787959980000,93.56000000],[1787960280000,92.20000000],[1787960580000,92.52000000],[1787960880000,92.20000000],[1787961180000,92.04000000],[1787961480000,95.10000000],[1787961780000,100.04000000],[1787962080000,104.98000000],[1787962380000,103.56000000],[1787962680000,104.60000000],[1787962980000,102.78000000],[1787963280000,97.84000000],[1787963580000,97.38000000],[1787963880000,103.36000000],[1787964180000,103.60000000],[1787964480000,94.94000000],[1787964780000,95.10000000],[1787965080000,92.26000000],[1787965380000,77.56000000],[1787965680000,72.80000000],[1787965980000,72.06000000],[1787966280000,82.76000000],[1787966580000,97.52000000],[1787966880000,96.50000000],[1787967180000,96.74000000],[1787967480000,92.96000000],[1787967780000,93.70000000],[1787968080000,98.42000000],[1787968380000,101.80000000],[1787968680000,106.94000000],[1787968980000,105.56000000],[1787969280000,105.78000000],[1787969580000,109.88000000],[1787969880000,110.54000000],[1787970180000,112.76000000],[1787970480000,110.98000000],[1787970780000,129.92000000],[1787971080000,122.88000000],[1787971380000,158.00000000],[1787971680000,151.32000000],[1787971980000,134.52000000],[1787972280000,130.76000000],[1787972580000,129.84000000],[1787972880000,118.10000000],[1787973180000,114.58000000],[1787973480000,137.80000000],[1787973780000,128.36000000],[1787974080000,137.02000000],[1787974380000,119.82000000],[1787974680000,102.60000000],[1787974980000,94.20000000],[1787975280000,115.66000000],[1787975580000,118.04000000],[1787975880000,118.48000000],[1787976180000,115.52000000],[1787976480000,84.02000000],[1787976780000,93.18000000],[1787977080000,115.02000000],[1787977380000,127.78000000],[1787977680000,127.66000000],[1787977980000,118.14000000],[1787978280000,113.00000000],], 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],[1787965680000,0],[1787965980000,0],[1787966280000,0],[1787966580000,0],[1787966880000,0],[1787967180000,0],[1787967480000,0],[1787967780000,0],[1787968080000,0],[1787968380000,0],[1787968680000,0],[1787968980000,0],[1787969280000,0],[1787969580000,0],[1787969880000,0],[1787970180000,0],[1787970480000,0],[1787970780000,0],[1787971080000,0],[1787971380000,0],[1787971680000,0],[1787971980000,0],[1787972280000,0],[1787972580000,0],[1787972880000,0],[1787973180000,0],[1787973480000,0],[1787973780000,0],[1787974080000,0],[1787974380000,0],[1787974680000,0],[1787974980000,0],[1787975280000,0],[1787975580000,0],[1787975880000,0],[1787976180000,0],[1787976480000,0],[1787976780000,0],[1787977080000,0],[1787977380000,0],[1787977680000,0],[1787977980000,0],[1787978280000,0],], 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; }