var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,13.33333333],[1787954580000,13.04000000],[1787954880000,13.60000000],[1787955180000,13.92000000],[1787955480000,14.18000000],[1787955780000,14.42000000],[1787956080000,14.92000000],[1787956380000,15.56000000],[1787956680000,15.50000000],[1787956980000,15.20000000],[1787957280000,15.24000000],[1787957580000,15.86000000],[1787957880000,16.56000000],[1787958180000,17.84000000],[1787958480000,18.74000000],[1787958780000,19.96000000],[1787959080000,20.96000000],[1787959380000,21.44000000],[1787959680000,21.78000000],[1787959980000,22.00000000],[1787960280000,22.06000000],[1787960580000,22.02000000],[1787960880000,22.00000000],[1787961180000,22.00000000],[1787961480000,22.00000000],[1787961780000,22.00000000],[1787962080000,22.00000000],[1787962380000,22.10000000],[1787962680000,22.20000000],[1787962980000,22.12000000],[1787963280000,22.04000000],[1787963580000,21.90000000],[1787963880000,21.90000000],[1787964180000,21.90000000],[1787964480000,21.90000000],[1787964780000,21.78000000],[1787965080000,21.70000000],[1787965380000,21.70000000],[1787965680000,21.70000000],[1787965980000,21.66000000],[1787966280000,21.62000000],[1787966580000,21.60000000],[1787966880000,21.58000000],[1787967180000,21.58000000],[1787967480000,21.48000000],[1787967780000,21.48000000],[1787968080000,21.50000000],[1787968380000,21.40000000],[1787968680000,21.40000000],[1787968980000,21.32000000],[1787969280000,21.30000000],[1787969580000,21.30000000],[1787969880000,21.24000000],[1787970180000,21.24000000],[1787970480000,21.20000000],[1787970780000,21.20000000],[1787971080000,21.20000000],[1787971380000,21.20000000],[1787971680000,21.20000000],[1787971980000,21.20000000],[1787972280000,21.26000000],[1787972580000,21.30000000],[1787972880000,21.22000000],[1787973180000,21.20000000],[1787973480000,21.26000000],[1787973780000,21.16000000],[1787974080000,21.14000000],[1787974380000,21.10000000],[1787974680000,21.08000000],[1787974980000,21.02000000],[1787975280000,21.02000000],[1787975580000,21.00000000],[1787975880000,21.00000000],[1787976180000,21.00000000],[1787976480000,20.98000000],[1787976780000,21.00000000],[1787977080000,21.00000000],[1787977380000,21.08000000],[1787977680000,21.10000000],[1787977980000,21.00000000],[1787978280000,21.00000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,7.6],[1787954580000,7.7],[1787954880000,7.5],[1787955180000,7.6],[1787955480000,7.6],[1787955780000,7.5],[1787956080000,7.2],[1787956380000,7.5],[1787956680000,7.6],[1787956980000,7.7],[1787957280000,7.6],[1787957580000,7.3],[1787957880000,7.1],[1787958180000,7.1],[1787958480000,6.9],[1787958780000,7.1],[1787959080000,7.3],[1787959380000,7.4],[1787959680000,7.5],[1787959980000,7.5],[1787960280000,7.5],[1787960580000,7.6],[1787960880000,7.7],[1787961180000,7.6],[1787961480000,7.7],[1787961780000,7.7],[1787962080000,7.7],[1787962380000,7.7],[1787962680000,7.7],[1787962980000,7.8],[1787963280000,7.8],[1787963580000,7.8],[1787963880000,7.8],[1787964180000,7.8],[1787964480000,7.8],[1787964780000,7.8],[1787965080000,7.7],[1787965380000,7.8],[1787965680000,7.7],[1787965980000,7.8],[1787966280000,7.7],[1787966580000,7.8],[1787966880000,7.7],[1787967180000,7.7],[1787967480000,7.7],[1787967780000,7.7],[1787968080000,7.6],[1787968380000,7.6],[1787968680000,7.7],[1787968980000,7.6],[1787969280000,7.6],[1787969580000,7.6],[1787969880000,7.6],[1787970180000,7.6],[1787970480000,7.6],[1787970780000,7.6],[1787971080000,7.6],[1787971380000,7.5],[1787971680000,7.5],[1787971980000,7.4],[1787972280000,7.3],[1787972580000,7.4],[1787972880000,7.3],[1787973180000,7.2],[1787973480000,7.2],[1787973780000,7.2],[1787974080000,7.2],[1787974380000,7.2],[1787974680000,7.2],[1787974980000,7.1],[1787975280000,7.1],[1787975580000,7.1],[1787975880000,7.1],[1787976180000,7.1],[1787976480000,7.1],[1787976780000,7.1],[1787977080000,7],[1787977380000,7],[1787977680000,7.1],[1787977980000,7.1],[1787978280000,7.3],], 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,10.70000000],[1787954580000,11.04000000],[1787954880000,12.78000000],[1787955180000,12.88000000],[1787955480000,12.86000000],[1787955780000,13.12000000],[1787956080000,14.06000000],[1787956380000,14.10000000],[1787956680000,13.58000000],[1787956980000,13.34000000],[1787957280000,13.44000000],[1787957580000,15.02000000],[1787957880000,16.50000000],[1787958180000,17.22000000],[1787958480000,19.08000000],[1787958780000,20.54000000],[1787959080000,21.08000000],[1787959380000,21.20000000],[1787959680000,21.24000000],[1787959980000,21.38000000],[1787960280000,21.04000000],[1787960580000,20.90000000],[1787960880000,21.06000000],[1787961180000,20.96000000],[1787961480000,21.00000000],[1787961780000,20.92000000],[1787962080000,21.22000000],[1787962380000,21.60000000],[1787962680000,21.56000000],[1787962980000,21.20000000],[1787963280000,20.92000000],[1787963580000,20.92000000],[1787963880000,20.96000000],[1787964180000,21.10000000],[1787964480000,21.04000000],[1787964780000,20.72000000],[1787965080000,20.86000000],[1787965380000,20.88000000],[1787965680000,21.00000000],[1787965980000,20.68000000],[1787966280000,20.94000000],[1787966580000,20.68000000],[1787966880000,20.58000000],[1787967180000,20.80000000],[1787967480000,20.60000000],[1787967780000,20.70000000],[1787968080000,20.88000000],[1787968380000,20.60000000],[1787968680000,20.48000000],[1787968980000,20.56000000],[1787969280000,20.68000000],[1787969580000,20.72000000],[1787969880000,20.70000000],[1787970180000,20.78000000],[1787970480000,20.82000000],[1787970780000,20.90000000],[1787971080000,20.84000000],[1787971380000,20.86000000],[1787971680000,20.88000000],[1787971980000,20.92000000],[1787972280000,21.04000000],[1787972580000,20.98000000],[1787972880000,20.92000000],[1787973180000,20.90000000],[1787973480000,20.80000000],[1787973780000,20.56000000],[1787974080000,20.56000000],[1787974380000,20.50000000],[1787974680000,20.52000000],[1787974980000,20.60000000],[1787975280000,20.46000000],[1787975580000,20.50000000],[1787975880000,20.56000000],[1787976180000,20.74000000],[1787976480000,20.62000000],[1787976780000,20.66000000],[1787977080000,20.78000000],[1787977380000,20.92000000],[1787977680000,20.96000000],[1787977980000,20.92000000],[1787978280000,20.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,68.60000000],[1787954580000,70.36000000],[1787954880000,67.00000000],[1787955180000,66.14000000],[1787955480000,64.70000000],[1787955780000,63.40000000],[1787956080000,60.00000000],[1787956380000,58.74000000],[1787956680000,59.60000000],[1787956980000,61.24000000],[1787957280000,60.42000000],[1787957580000,56.96000000],[1787957880000,53.76000000],[1787958180000,49.54000000],[1787958480000,46.32000000],[1787958780000,43.36000000],[1787959080000,41.42000000],[1787959380000,40.36000000],[1787959680000,39.78000000],[1787959980000,39.30000000],[1787960280000,39.32000000],[1787960580000,39.64000000],[1787960880000,39.78000000],[1787961180000,39.72000000],[1787961480000,39.82000000],[1787961780000,39.84000000],[1787962080000,39.80000000],[1787962380000,39.60000000],[1787962680000,39.54000000],[1787962980000,39.84000000],[1787963280000,40.14000000],[1787963580000,40.44000000],[1787963880000,40.30000000],[1787964180000,40.32000000],[1787964480000,40.32000000],[1787964780000,40.74000000],[1787965080000,40.78000000],[1787965380000,40.88000000],[1787965680000,40.64000000],[1787965980000,40.92000000],[1787966280000,40.84000000],[1787966580000,41.04000000],[1787966880000,40.92000000],[1787967180000,40.94000000],[1787967480000,41.26000000],[1787967780000,41.06000000],[1787968080000,40.94000000],[1787968380000,41.22000000],[1787968680000,41.28000000],[1787968980000,41.42000000],[1787969280000,41.36000000],[1787969580000,41.46000000],[1787969880000,41.48000000],[1787970180000,41.40000000],[1787970480000,41.68000000],[1787970780000,41.54000000],[1787971080000,41.52000000],[1787971380000,41.42000000],[1787971680000,41.32000000],[1787971980000,41.12000000],[1787972280000,40.68000000],[1787972580000,40.68000000],[1787972880000,40.78000000],[1787973180000,40.58000000],[1787973480000,40.42000000],[1787973780000,40.70000000],[1787974080000,40.56000000],[1787974380000,40.72000000],[1787974680000,40.78000000],[1787974980000,40.74000000],[1787975280000,40.74000000],[1787975580000,40.68000000],[1787975880000,40.78000000],[1787976180000,40.70000000],[1787976480000,40.82000000],[1787976780000,40.64000000],[1787977080000,40.56000000],[1787977380000,40.36000000],[1787977680000,40.50000000],[1787977980000,40.82000000],[1787978280000,41.16666667],], 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,1017.1],[1787954580000,1017.1],[1787954880000,1017],[1787955180000,1016.9],[1787955480000,1016.8],[1787955780000,1016.6],[1787956080000,1016.4],[1787956380000,1016.4],[1787956680000,1016.3],[1787956980000,1016.3],[1787957280000,1016.2],[1787957580000,1016.3],[1787957880000,1016.4],[1787958180000,1016.2],[1787958480000,1016.1],[1787958780000,1016],[1787959080000,1015.8],[1787959380000,1015.7],[1787959680000,1015.6],[1787959980000,1015.5],[1787960280000,1015.6],[1787960580000,1015.6],[1787960880000,1015.5],[1787961180000,1015.3],[1787961480000,1015.2],[1787961780000,1015.1],[1787962080000,1014.8],[1787962380000,1014.7],[1787962680000,1014.7],[1787962980000,1014.7],[1787963280000,1014.8],[1787963580000,1014.9],[1787963880000,1015],[1787964180000,1015],[1787964480000,1014.9],[1787964780000,1014.9],[1787965080000,1014.9],[1787965380000,1014.9],[1787965680000,1014.7],[1787965980000,1014.7],[1787966280000,1014.6],[1787966580000,1014.6],[1787966880000,1014.4],[1787967180000,1014.3],[1787967480000,1014.4],[1787967780000,1014.4],[1787968080000,1014.4],[1787968380000,1014.6],[1787968680000,1014.6],[1787968980000,1014.6],[1787969280000,1014.7],[1787969580000,1014.7],[1787969880000,1014.7],[1787970180000,1014.8],[1787970480000,1014.8],[1787970780000,1014.8],[1787971080000,1014.7],[1787971380000,1014.6],[1787971680000,1014.6],[1787971980000,1014.5],[1787972280000,1014.4],[1787972580000,1014.3],[1787972880000,1014.2],[1787973180000,1014.1],[1787973480000,1014.1],[1787973780000,1014],[1787974080000,1013.9],[1787974380000,1014],[1787974680000,1014.1],[1787974980000,1014.1],[1787975280000,1014.1],[1787975580000,1014],[1787975880000,1014.1],[1787976180000,1014.2],[1787976480000,1014.3],[1787976780000,1014.3],[1787977080000,1014.3],[1787977380000,1014.5],[1787977680000,1014.7],[1787977980000,1014.9],[1787978280000,1015],], 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,6.048],[1787954880000,7.056],[1787955180000,3.96],[1787955480000,4.104],[1787955780000,6.336],[1787956080000,5.976],[1787956380000,4.536],[1787956680000,5.544],[1787956980000,3.528],[1787957280000,7.848],[1787957580000,6.192],[1787957880000,5.904],[1787958180000,6.408],[1787958480000,6.048],[1787958780000,8.784],[1787959080000,9.144],[1787959380000,8.064],[1787959680000,10.224],[1787959980000,8.568],[1787960280000,6.768],[1787960580000,8.352],[1787960880000,8.424],[1787961180000,8.136],[1787961480000,8.136],[1787961780000,7.92],[1787962080000,10.152],[1787962380000,15.264],[1787962680000,12.6],[1787962980000,13.104],[1787963280000,8.28],[1787963580000,8.208],[1787963880000,9.36],[1787964180000,15.624],[1787964480000,8.28],[1787964780000,8.136],[1787965080000,14.544],[1787965380000,13.32],[1787965680000,13.392],[1787965980000,9.72],[1787966280000,12.456],[1787966580000,6.696],[1787966880000,10.296],[1787967180000,6.912],[1787967480000,8.136],[1787967780000,12.528],[1787968080000,12.384],[1787968380000,9.936],[1787968680000,7.848],[1787968980000,10.44],[1787969280000,13.104],[1787969580000,15.624],[1787969880000,14.616],[1787970180000,14.256],[1787970480000,18],[1787970780000,17.784],[1787971080000,16.056],[1787971380000,18.648],[1787971680000,18.504],[1787971980000,20.088],[1787972280000,23.328],[1787972580000,19.944],[1787972880000,17.064],[1787973180000,18.792],[1787973480000,15.624],[1787973780000,15.696],[1787974080000,15.912],[1787974380000,16.704],[1787974680000,16.704],[1787974980000,19.368],[1787975280000,13.176],[1787975580000,16.488],[1787975880000,14.184],[1787976180000,15.552],[1787976480000,16.128],[1787976780000,14.832],[1787977080000,14.544],[1787977380000,12.816],[1787977680000,11.808],[1787977980000,8.64],[1787978280000,5.4],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,3.719999988],[1787954580000,7.344],[1787954880000,11.16],[1787955180000,6.048],[1787955480000,5.544],[1787955780000,9.072],[1787956080000,9.504],[1787956380000,6.912],[1787956680000,6.84],[1787956980000,5.976],[1787957280000,9.216],[1787957580000,8.208],[1787957880000,11.16],[1787958180000,7.848],[1787958480000,10.8],[1787958780000,15.12],[1787959080000,14.472],[1787959380000,16.776],[1787959680000,15.552],[1787959980000,15.48],[1787960280000,10.872],[1787960580000,13.248],[1787960880000,16.92],[1787961180000,13.32],[1787961480000,13.464],[1787961780000,13.176],[1787962080000,18],[1787962380000,28.152],[1787962680000,18.072],[1787962980000,20.736],[1787963280000,16.992],[1787963580000,12.744],[1787963880000,16.344],[1787964180000,24.048],[1787964480000,13.032],[1787964780000,13.32],[1787965080000,22.248],[1787965380000,21.024],[1787965680000,19.08],[1787965980000,17.928],[1787966280000,18.648],[1787966580000,10.656],[1787966880000,17.928],[1787967180000,10.872],[1787967480000,15.12],[1787967780000,20.664],[1787968080000,18.36],[1787968380000,15.336],[1787968680000,13.824],[1787968980000,16.848],[1787969280000,18.648],[1787969580000,24.264],[1787969880000,23.616],[1787970180000,22.32],[1787970480000,27.072],[1787970780000,25.416],[1787971080000,23.616],[1787971380000,27.648],[1787971680000,27.072],[1787971980000,27.36],[1787972280000,34.776],[1787972580000,33.552],[1787972880000,24.624],[1787973180000,28.872],[1787973480000,24.336],[1787973780000,22.536],[1787974080000,24.12],[1787974380000,23.616],[1787974680000,24.336],[1787974980000,29.304],[1787975280000,20.376],[1787975580000,24.408],[1787975880000,22.032],[1787976180000,22.392],[1787976480000,24.192],[1787976780000,21.096],[1787977080000,22.464],[1787977380000,19.656],[1787977680000,17.28],[1787977980000,13.104],[1787978280000,9.240000012],], 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,227.83333333],[1787954580000,267.26000000],[1787954880000,142.44000000],[1787955180000,187.92000000],[1787955480000,100.72000000],[1787955780000,98.50000000],[1787956080000,116.48000000],[1787956380000,78.52000000],[1787956680000,148.70000000],[1787956980000,104.26000000],[1787957280000,312.24000000],[1787957580000,264.92000000],[1787957880000,132.28000000],[1787958180000,216.70000000],[1787958480000,188.02000000],[1787958780000,172.46000000],[1787959080000,192.64000000],[1787959380000,180.22000000],[1787959680000,151.18000000],[1787959980000,189.22000000],[1787960280000,186.02000000],[1787960580000,193.00000000],[1787960880000,184.12000000],[1787961180000,168.84000000],[1787961480000,178.28000000],[1787961780000,156.36000000],[1787962080000,167.86000000],[1787962380000,168.04000000],[1787962680000,190.16000000],[1787962980000,188.58000000],[1787963280000,188.92000000],[1787963580000,200.14000000],[1787963880000,183.84000000],[1787964180000,178.82000000],[1787964480000,177.46000000],[1787964780000,183.30000000],[1787965080000,166.28000000],[1787965380000,174.08000000],[1787965680000,148.90000000],[1787965980000,153.80000000],[1787966280000,145.28000000],[1787966580000,143.42000000],[1787966880000,131.58000000],[1787967180000,176.20000000],[1787967480000,175.36000000],[1787967780000,174.02000000],[1787968080000,175.54000000],[1787968380000,158.62000000],[1787968680000,184.40000000],[1787968980000,198.62000000],[1787969280000,177.06000000],[1787969580000,181.68000000],[1787969880000,181.92000000],[1787970180000,177.06000000],[1787970480000,177.30000000],[1787970780000,179.04000000],[1787971080000,176.40000000],[1787971380000,183.48000000],[1787971680000,180.98000000],[1787971980000,176.76000000],[1787972280000,182.12000000],[1787972580000,181.42000000],[1787972880000,181.46000000],[1787973180000,184.66000000],[1787973480000,180.64000000],[1787973780000,180.56000000],[1787974080000,168.06000000],[1787974380000,182.28000000],[1787974680000,181.92000000],[1787974980000,177.50000000],[1787975280000,178.28000000],[1787975580000,178.40000000],[1787975880000,177.98000000],[1787976180000,185.42000000],[1787976480000,183.26000000],[1787976780000,181.22000000],[1787977080000,176.96000000],[1787977380000,173.38000000],[1787977680000,183.62000000],[1787977980000,205.02000000],[1787978280000,220.56666667],], 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.002],[1787965980000,0.002],[1787966280000,0.002],[1787966580000,0.002],[1787966880000,0.002],[1787967180000,0.002],[1787967480000,0.002],[1787967780000,0.002],[1787968080000,0.002],[1787968380000,0.002],[1787968680000,0.002],[1787968980000,0.002],[1787969280000,0.002],[1787969580000,0.002],[1787969880000,0.002],[1787970180000,0.002],[1787970480000,0.002],[1787970780000,0.002],[1787971080000,0.002],[1787971380000,0.002],[1787971680000,0.002],[1787971980000,0.002],[1787972280000,0.002],[1787972580000,0.002],[1787972880000,0.002],[1787973180000,0.002],[1787973480000,0.002],[1787973780000,0.002],[1787974080000,0.002],[1787974380000,0.002],[1787974680000,0.002],[1787974980000,0.002],[1787975280000,0.002],[1787975580000,0.002],[1787975880000,0.002],[1787976180000,0.002],[1787976480000,0.002],[1787976780000,0.002],[1787977080000,0.002],[1787977380000,0.002],[1787977680000,0.002],[1787977980000,0.002],[1787978280000,0.002],], 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; }