var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,15.80000000],[1787954580000,15.74000000],[1787954880000,15.68000000],[1787955180000,15.60000000],[1787955480000,15.60000000],[1787955780000,15.60000000],[1787956080000,15.60000000],[1787956380000,15.60000000],[1787956680000,15.60000000],[1787956980000,15.60000000],[1787957280000,15.52000000],[1787957580000,15.54000000],[1787957880000,15.50000000],[1787958180000,15.40000000],[1787958480000,15.40000000],[1787958780000,15.40000000],[1787959080000,15.50000000],[1787959380000,15.50000000],[1787959680000,15.56000000],[1787959980000,15.60000000],[1787960280000,15.70000000],[1787960580000,15.70000000],[1787960880000,15.70000000],[1787961180000,15.70000000],[1787961480000,15.72000000],[1787961780000,15.84000000],[1787962080000,15.92000000],[1787962380000,16.00000000],[1787962680000,15.98000000],[1787962980000,15.88000000],[1787963280000,15.80000000],[1787963580000,15.80000000],[1787963880000,15.84000000],[1787964180000,15.90000000],[1787964480000,15.90000000],[1787964780000,16.00000000],[1787965080000,16.00000000],[1787965380000,15.96000000],[1787965680000,16.02000000],[1787965980000,16.22000000],[1787966280000,16.40000000],[1787966580000,16.46000000],[1787966880000,16.10000000],[1787967180000,15.78000000],[1787967480000,15.66000000],[1787967780000,15.56000000],[1787968080000,15.52000000],[1787968380000,15.50000000],[1787968680000,15.50000000],[1787968980000,15.50000000],[1787969280000,15.50000000],[1787969580000,15.50000000],[1787969880000,15.50000000],[1787970180000,15.50000000],[1787970480000,15.56000000],[1787970780000,15.72000000],[1787971080000,15.90000000],[1787971380000,15.82000000],[1787971680000,15.70000000],[1787971980000,15.68000000],[1787972280000,15.62000000],[1787972580000,15.78000000],[1787972880000,15.90000000],[1787973180000,15.90000000],[1787973480000,15.90000000],[1787973780000,15.88000000],[1787974080000,15.78000000],[1787974380000,15.70000000],[1787974680000,15.64000000],[1787974980000,15.60000000],[1787975280000,15.60000000],[1787975580000,15.60000000],[1787975880000,15.50000000],[1787976180000,15.50000000],[1787976480000,15.50000000],[1787976780000,15.50000000],[1787977080000,15.50000000],[1787977380000,15.50000000],[1787977680000,15.50000000],[1787977980000,15.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,13.4],[1787954580000,13.4],[1787954880000,13.5],[1787955180000,13.6],[1787955480000,13.7],[1787955780000,13.7],[1787956080000,13.6],[1787956380000,13.4],[1787956680000,13.4],[1787956980000,13.5],[1787957280000,13.4],[1787957580000,13.5],[1787957880000,13.7],[1787958180000,13.7],[1787958480000,13.6],[1787958780000,13.5],[1787959080000,13.5],[1787959380000,13.6],[1787959680000,13.6],[1787959980000,13.6],[1787960280000,13.7],[1787960580000,13.6],[1787960880000,13.7],[1787961180000,13.6],[1787961480000,13.3],[1787961780000,13.1],[1787962080000,13],[1787962380000,13],[1787962680000,13.5],[1787962980000,13.9],[1787963280000,13.9],[1787963580000,13.6],[1787963880000,13.6],[1787964180000,13.5],[1787964480000,13.5],[1787964780000,13.6],[1787965080000,13.9],[1787965380000,13.6],[1787965680000,13.4],[1787965980000,13.1],[1787966280000,12.9],[1787966580000,13.5],[1787966880000,14.1],[1787967180000,15],[1787967480000,15],[1787967780000,15],[1787968080000,15.2],[1787968380000,15.5],[1787968680000,15.5],[1787968980000,15.5],[1787969280000,15.5],[1787969580000,15.5],[1787969880000,15.5],[1787970180000,15.5],[1787970480000,15.6],[1787970780000,15.7],[1787971080000,15.9],[1787971380000,15.8],[1787971680000,15.7],[1787971980000,15.7],[1787972280000,15.6],[1787972580000,15.8],[1787972880000,15.9],[1787973180000,15.9],[1787973480000,15.9],[1787973780000,15.9],[1787974080000,15.8],[1787974380000,15.7],[1787974680000,15.6],[1787974980000,15.6],[1787975280000,15.6],[1787975580000,15.6],[1787975880000,15.5],[1787976180000,15.5],[1787976480000,15.5],[1787976780000,15.5],[1787977080000,15.5],[1787977380000,15.5],[1787977680000,15.5],[1787977980000,15.5],], 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,13.40000000],[1787954580000,13.44000000],[1787954880000,13.44000000],[1787955180000,13.40000000],[1787955480000,13.40000000],[1787955780000,13.40000000],[1787956080000,13.40000000],[1787956380000,13.40000000],[1787956680000,13.40000000],[1787956980000,13.40000000],[1787957280000,13.40000000],[1787957580000,13.40000000],[1787957880000,13.40000000],[1787958180000,13.44000000],[1787958480000,13.56000000],[1787958780000,13.70000000],[1787959080000,13.82000000],[1787959380000,13.90000000],[1787959680000,13.90000000],[1787959980000,14.00000000],[1787960280000,14.10000000],[1787960580000,14.10000000],[1787960880000,14.10000000],[1787961180000,14.10000000],[1787961480000,14.20000000],[1787961780000,14.20000000],[1787962080000,14.30000000],[1787962380000,14.30000000],[1787962680000,14.30000000],[1787962980000,14.30000000],[1787963280000,14.30000000],[1787963580000,14.30000000],[1787963880000,14.34000000],[1787964180000,14.38000000],[1787964480000,14.40000000],[1787964780000,14.40000000],[1787965080000,14.44000000],[1787965380000,14.46000000],[1787965680000,14.50000000],[1787965980000,14.60000000],[1787966280000,14.60000000],[1787966580000,14.20000000],[1787966880000,13.68000000],[1787967180000,13.60000000],[1787967480000,13.60000000],[1787967780000,13.54000000],[1787968080000,13.58000000],[1787968380000,13.70000000],[1787968680000,13.80000000],[1787968980000,13.82000000],[1787969280000,13.90000000],[1787969580000,13.96000000],[1787969880000,14.00000000],[1787970180000,14.00000000],[1787970480000,14.06000000],[1787970780000,14.00000000],[1787971080000,14.02000000],[1787971380000,14.10000000],[1787971680000,14.10000000],[1787971980000,14.10000000],[1787972280000,14.10000000],[1787972580000,14.14000000],[1787972880000,14.20000000],[1787973180000,14.20000000],[1787973480000,14.20000000],[1787973780000,14.24000000],[1787974080000,14.20000000],[1787974380000,14.18000000],[1787974680000,14.16000000],[1787974980000,14.20000000],[1787975280000,14.20000000],[1787975580000,14.20000000],[1787975880000,14.24000000],[1787976180000,14.30000000],[1787976480000,14.24000000],[1787976780000,14.28000000],[1787977080000,14.24000000],[1787977380000,14.30000000],[1787977680000,14.32000000],[1787977980000,14.34000000],], 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,85.93333333],[1787954580000,86.20000000],[1787954880000,87.04000000],[1787955180000,88.08000000],[1787955480000,88.32000000],[1787955780000,88.52000000],[1787956080000,88.14000000],[1787956380000,86.68000000],[1787956680000,86.98000000],[1787956980000,87.54000000],[1787957280000,87.54000000],[1787957580000,87.68000000],[1787957880000,89.22000000],[1787958180000,89.80000000],[1787958480000,88.94000000],[1787958780000,88.54000000],[1787959080000,87.96000000],[1787959380000,88.82000000],[1787959680000,88.44000000],[1787959980000,88.26000000],[1787960280000,88.24000000],[1787960580000,87.66000000],[1787960880000,87.82000000],[1787961180000,87.44000000],[1787961480000,85.78000000],[1787961780000,84.06000000],[1787962080000,82.82000000],[1787962380000,82.74000000],[1787962680000,85.38000000],[1787962980000,88.14000000],[1787963280000,88.78000000],[1787963580000,86.96000000],[1787963880000,86.56000000],[1787964180000,85.82000000],[1787964480000,86.00000000],[1787964780000,85.88000000],[1787965080000,87.22000000],[1787965380000,86.22000000],[1787965680000,84.66000000],[1787965980000,82.16000000],[1787966280000,80.00000000],[1787966580000,82.78000000],[1787966880000,88.24000000],[1787967180000,94.92000000],[1787967480000,95.70000000],[1787967780000,96.46000000],[1787968080000,98.18000000],[1787968380000,99.76000000],[1787968680000,100.00000000],[1787968980000,100.00000000],[1787969280000,100.00000000],[1787969580000,100.00000000],[1787969880000,100.00000000],[1787970180000,100.00000000],[1787970480000,100.00000000],[1787970780000,100.00000000],[1787971080000,100.00000000],[1787971380000,100.00000000],[1787971680000,100.00000000],[1787971980000,100.00000000],[1787972280000,100.00000000],[1787972580000,100.00000000],[1787972880000,100.00000000],[1787973180000,100.00000000],[1787973480000,100.00000000],[1787973780000,100.00000000],[1787974080000,100.00000000],[1787974380000,100.00000000],[1787974680000,100.00000000],[1787974980000,100.00000000],[1787975280000,100.00000000],[1787975580000,100.00000000],[1787975880000,100.00000000],[1787976180000,100.00000000],[1787976480000,100.00000000],[1787976780000,100.00000000],[1787977080000,100.00000000],[1787977380000,100.00000000],[1787977680000,100.00000000],[1787977980000,100.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,956.6],[1787954580000,956.6],[1787954880000,956.5],[1787955180000,956.3],[1787955480000,956.3],[1787955780000,956.3],[1787956080000,956.3],[1787956380000,956.3],[1787956680000,956.3],[1787956980000,956.3],[1787957280000,956.3],[1787957580000,956.3],[1787957880000,956.3],[1787958180000,956.3],[1787958480000,956.2],[1787958780000,956.1],[1787959080000,955.9],[1787959380000,955.7],[1787959680000,955.6],[1787959980000,955.6],[1787960280000,955.5],[1787960580000,955.4],[1787960880000,955.5],[1787961180000,955.6],[1787961480000,955.6],[1787961780000,955.5],[1787962080000,955.3],[1787962380000,955.2],[1787962680000,955.1],[1787962980000,955.2],[1787963280000,955.4],[1787963580000,955.4],[1787963880000,955.4],[1787964180000,955.2],[1787964480000,955.2],[1787964780000,955.2],[1787965080000,955.3],[1787965380000,955.6],[1787965680000,956],[1787965980000,956],[1787966280000,955.7],[1787966580000,955.7],[1787966880000,955.9],[1787967180000,955.8],[1787967480000,956],[1787967780000,956],[1787968080000,956],[1787968380000,956.1],[1787968680000,956.1],[1787968980000,956.1],[1787969280000,956],[1787969580000,956],[1787969880000,956.2],[1787970180000,956.4],[1787970480000,956.4],[1787970780000,956.6],[1787971080000,956.6],[1787971380000,956.8],[1787971680000,956.8],[1787971980000,956.9],[1787972280000,957],[1787972580000,957.2],[1787972880000,957.3],[1787973180000,957.4],[1787973480000,957.5],[1787973780000,957.6],[1787974080000,957.6],[1787974380000,957.5],[1787974680000,957.5],[1787974980000,957.6],[1787975280000,957.4],[1787975580000,957.3],[1787975880000,957.2],[1787976180000,957.2],[1787976480000,957.2],[1787976780000,957.2],[1787977080000,957.3],[1787977380000,957.3],[1787977680000,957.3],[1787977980000,957.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,2.760000012],[1787954580000,1.152],[1787954880000,1.728],[1787955180000,2.808],[1787955480000,2.88],[1787955780000,3.384],[1787956080000,1.584],[1787956380000,2.952],[1787956680000,2.376],[1787956980000,1.584],[1787957280000,1.512],[1787957580000,2.376],[1787957880000,2.88],[1787958180000,4.608],[1787958480000,3.24],[1787958780000,2.448],[1787959080000,1.8],[1787959380000,3.528],[1787959680000,3.24],[1787959980000,1.152],[1787960280000,1.296],[1787960580000,1.368],[1787960880000,1.8],[1787961180000,1.872],[1787961480000,2.736],[1787961780000,2.664],[1787962080000,1.8],[1787962380000,1.584],[1787962680000,2.232],[1787962980000,3.312],[1787963280000,4.896],[1787963580000,3.456],[1787963880000,3.6],[1787964180000,2.304],[1787964480000,3.6],[1787964780000,1.8],[1787965080000,1.8],[1787965380000,3.744],[1787965680000,8.568],[1787965980000,4.392],[1787966280000,3.96],[1787966580000,2.952],[1787966880000,3.816],[1787967180000,4.104],[1787967480000,3.528],[1787967780000,5.112],[1787968080000,3.312],[1787968380000,2.736],[1787968680000,2.952],[1787968980000,3.168],[1787969280000,1.008],[1787969580000,3.528],[1787969880000,4.104],[1787970180000,4.104],[1787970480000,4.32],[1787970780000,5.976],[1787971080000,3.312],[1787971380000,3.528],[1787971680000,2.448],[1787971980000,2.808],[1787972280000,2.448],[1787972580000,2.592],[1787972880000,1.728],[1787973180000,4.176],[1787973480000,2.16],[1787973780000,1.944],[1787974080000,1.512],[1787974380000,1.44],[1787974680000,2.808],[1787974980000,3.6],[1787975280000,2.592],[1787975580000,2.664],[1787975880000,1.728],[1787976180000,1.512],[1787976480000,1.152],[1787976780000,1.44],[1787977080000,1.512],[1787977380000,1.584],[1787977680000,1.008],[1787977980000,1.008],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,4.079999988],[1787954580000,1.656],[1787954880000,2.448],[1787955180000,3.96],[1787955480000,3.528],[1787955780000,4.392],[1787956080000,2.736],[1787956380000,4.464],[1787956680000,3.456],[1787956980000,2.448],[1787957280000,2.592],[1787957580000,3.24],[1787957880000,3.888],[1787958180000,5.616],[1787958480000,4.248],[1787958780000,3.6],[1787959080000,2.664],[1787959380000,4.104],[1787959680000,4.104],[1787959980000,1.872],[1787960280000,1.8],[1787960580000,2.088],[1787960880000,2.952],[1787961180000,3.168],[1787961480000,4.176],[1787961780000,4.824],[1787962080000,3.096],[1787962380000,2.376],[1787962680000,3.312],[1787962980000,4.392],[1787963280000,6.696],[1787963580000,4.752],[1787963880000,5.328],[1787964180000,3.672],[1787964480000,5.256],[1787964780000,3.024],[1787965080000,2.736],[1787965380000,6.48],[1787965680000,13.536],[1787965980000,6.768],[1787966280000,5.472],[1787966580000,4.104],[1787966880000,4.752],[1787967180000,5.544],[1787967480000,5.256],[1787967780000,7.92],[1787968080000,5.04],[1787968380000,3.744],[1787968680000,4.176],[1787968980000,4.392],[1787969280000,1.872],[1787969580000,4.68],[1787969880000,6.048],[1787970180000,5.472],[1787970480000,5.472],[1787970780000,7.92],[1787971080000,4.824],[1787971380000,5.04],[1787971680000,3.528],[1787971980000,3.744],[1787972280000,3.744],[1787972580000,4.176],[1787972880000,3.528],[1787973180000,6.192],[1787973480000,3.96],[1787973780000,3.456],[1787974080000,2.304],[1787974380000,2.376],[1787974680000,3.96],[1787974980000,4.824],[1787975280000,3.456],[1787975580000,3.672],[1787975880000,2.376],[1787976180000,2.088],[1787976480000,1.728],[1787976780000,2.16],[1787977080000,2.088],[1787977380000,2.016],[1787977680000,1.368],[1787977980000,1.8],], 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,248.96666667],[1787954580000,112.98000000],[1787954880000,252.38000000],[1787955180000,292.18000000],[1787955480000,214.70000000],[1787955780000,298.38000000],[1787956080000,206.66000000],[1787956380000,295.58000000],[1787956680000,235.18000000],[1787956980000,249.66000000],[1787957280000,235.70000000],[1787957580000,229.12000000],[1787957880000,240.22000000],[1787958180000,226.92000000],[1787958480000,224.00000000],[1787958780000,203.82000000],[1787959080000,268.68000000],[1787959380000,77.66000000],[1787959680000,333.80000000],[1787959980000,287.44000000],[1787960280000,224.78000000],[1787960580000,241.42000000],[1787960880000,276.90000000],[1787961180000,223.72000000],[1787961480000,273.32000000],[1787961780000,275.78000000],[1787962080000,103.74000000],[1787962380000,263.68000000],[1787962680000,273.02000000],[1787962980000,239.16000000],[1787963280000,231.46000000],[1787963580000,213.92000000],[1787963880000,241.16000000],[1787964180000,228.58000000],[1787964480000,257.64000000],[1787964780000,241.00000000],[1787965080000,268.54000000],[1787965380000,278.36000000],[1787965680000,300.62000000],[1787965980000,183.64000000],[1787966280000,131.82000000],[1787966580000,267.58000000],[1787966880000,221.90000000],[1787967180000,282.08000000],[1787967480000,268.04000000],[1787967780000,205.06000000],[1787968080000,177.34000000],[1787968380000,219.52000000],[1787968680000,254.58000000],[1787968980000,242.96000000],[1787969280000,144.12000000],[1787969580000,246.16000000],[1787969880000,252.60000000],[1787970180000,238.82000000],[1787970480000,215.10000000],[1787970780000,211.06000000],[1787971080000,258.78000000],[1787971380000,196.86000000],[1787971680000,175.42000000],[1787971980000,196.96000000],[1787972280000,221.16000000],[1787972580000,255.48000000],[1787972880000,246.14000000],[1787973180000,236.80000000],[1787973480000,192.96000000],[1787973780000,288.30000000],[1787974080000,263.44000000],[1787974380000,212.52000000],[1787974680000,228.84000000],[1787974980000,226.10000000],[1787975280000,147.50000000],[1787975580000,63.74000000],[1787975880000,46.02000000],[1787976180000,167.40000000],[1787976480000,259.60000000],[1787976780000,225.86000000],[1787977080000,238.42000000],[1787977380000,101.18000000],[1787977680000,122.22000000],[1787977980000,122.10000000],], 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.072],[1787966880000,0.098],[1787967180000,0.16],[1787967480000,0.182],[1787967780000,0.182],[1787968080000,0.182],[1787968380000,0.182],[1787968680000,0.182],[1787968980000,0.182],[1787969280000,0.182],[1787969580000,0.182],[1787969880000,0.182],[1787970180000,0.182],[1787970480000,0.182],[1787970780000,0.182],[1787971080000,0.182],[1787971380000,0.192],[1787971680000,0.22],[1787971980000,0.224],[1787972280000,0.244],[1787972580000,0.286],[1787972880000,0.286],[1787973180000,0.286],[1787973480000,0.31],[1787973780000,0.336],[1787974080000,0.412],[1787974380000,0.512],[1787974680000,0.58],[1787974980000,0.626],[1787975280000,0.6885],[1787975580000,0.7285],[1787975880000,0.7365],[1787976180000,0.7365],[1787976480000,0.7365],[1787976780000,0.7365],[1787977080000,0.7365],[1787977380000,0.7365],[1787977680000,0.7365],[1787977980000,0.7365],], 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; }