var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,12.80000000],[1786140180000,12.80000000],[1786140480000,12.80000000],[1786140780000,12.90000000],[1786141080000,12.90000000],[1786141380000,12.90000000],[1786141680000,12.86000000],[1786141980000,12.80000000],[1786142280000,12.74000000],[1786142580000,12.70000000],[1786142880000,12.60000000],[1786143180000,12.52000000],[1786143480000,12.50000000],[1786143780000,12.50000000],[1786144080000,12.50000000],[1786144380000,12.50000000],[1786144680000,12.50000000],[1786144980000,12.50000000],[1786145280000,12.42000000],[1786145580000,12.34000000],[1786145880000,12.28000000],[1786146180000,12.20000000],[1786146480000,12.18000000],[1786146780000,12.10000000],[1786147080000,12.10000000],[1786147380000,12.10000000],[1786147680000,12.10000000],[1786147980000,12.10000000],[1786148280000,12.10000000],[1786148580000,12.00000000],[1786148880000,12.00000000],[1786149180000,12.00000000],[1786149480000,12.00000000],[1786149780000,12.00000000],[1786150080000,12.00000000],[1786150380000,12.00000000],[1786150680000,12.00000000],[1786150980000,12.00000000],[1786151280000,11.94000000],[1786151580000,11.90000000],[1786151880000,11.90000000],[1786152180000,11.88000000],[1786152480000,11.84000000],[1786152780000,11.80000000],[1786153080000,11.80000000],[1786153380000,11.72000000],[1786153680000,11.70000000],[1786153980000,11.70000000],[1786154280000,11.70000000],[1786154580000,11.70000000],[1786154880000,11.68000000],[1786155180000,11.60000000],[1786155480000,11.58000000],[1786155780000,11.52000000],[1786156080000,11.50000000],[1786156380000,11.50000000],[1786156680000,11.46000000],[1786156980000,11.40000000],[1786157280000,11.30000000],[1786157580000,11.30000000],[1786157880000,11.26000000],[1786158180000,11.20000000],[1786158480000,11.16000000],[1786158780000,11.10000000],[1786159080000,11.10000000],[1786159380000,11.08000000],[1786159680000,10.98000000],[1786159980000,10.90000000],[1786160280000,10.82000000],[1786160580000,10.74000000],[1786160880000,10.80000000],[1786161180000,10.88000000],[1786161480000,10.98000000],[1786161780000,11.02000000],[1786162080000,11.10000000],[1786162380000,11.10000000],[1786162680000,11.16000000],[1786162980000,11.24000000],[1786163280000,11.30000000],[1786163580000,11.30000000],[1786163880000,11.30000000],[1786164180000,11.38000000],[1786164480000,11.46000000],[1786164780000,11.54000000],[1786165080000,11.60000000],[1786165380000,11.64000000],[1786165680000,11.70000000],[1786165980000,11.70000000],[1786166280000,11.70000000],[1786166580000,11.68000000],[1786166880000,11.60000000],[1786167180000,11.66000000],[1786167480000,11.86000000],[1786167780000,12.24000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,12.2],[1786140180000,12.2],[1786140480000,12.1],[1786140780000,12.2],[1786141080000,12.2],[1786141380000,12.1],[1786141680000,12.1],[1786141980000,12],[1786142280000,11.9],[1786142580000,11.8],[1786142880000,11.8],[1786143180000,11.7],[1786143480000,11.7],[1786143780000,11.7],[1786144080000,11.7],[1786144380000,11.7],[1786144680000,11.7],[1786144980000,11.7],[1786145280000,11.6],[1786145580000,11.6],[1786145880000,11.6],[1786146180000,11.5],[1786146480000,11.5],[1786146780000,11.4],[1786147080000,11.5],[1786147380000,11.5],[1786147680000,11.5],[1786147980000,11.5],[1786148280000,11.5],[1786148580000,11.4],[1786148880000,11.4],[1786149180000,11.4],[1786149480000,11.4],[1786149780000,11.4],[1786150080000,11.4],[1786150380000,11.4],[1786150680000,11.4],[1786150980000,11.4],[1786151280000,11.3],[1786151580000,11.2],[1786151880000,11.2],[1786152180000,11.1],[1786152480000,11],[1786152780000,10.9],[1786153080000,10.9],[1786153380000,10.8],[1786153680000,10.8],[1786153980000,10.9],[1786154280000,10.9],[1786154580000,10.8],[1786154880000,10.7],[1786155180000,10.6],[1786155480000,10.5],[1786155780000,10.5],[1786156080000,10.4],[1786156380000,10.4],[1786156680000,10.2],[1786156980000,10.3],[1786157280000,10.3],[1786157580000,10.3],[1786157880000,10.2],[1786158180000,10.2],[1786158480000,10.1],[1786158780000,10.1],[1786159080000,10.1],[1786159380000,9.9],[1786159680000,9.7],[1786159980000,9.4],[1786160280000,9.5],[1786160580000,9.6],[1786160880000,9.8],[1786161180000,10.1],[1786161480000,10.3],[1786161780000,10.4],[1786162080000,10.4],[1786162380000,10.4],[1786162680000,10.4],[1786162980000,10.6],[1786163280000,10.6],[1786163580000,10.5],[1786163880000,10.4],[1786164180000,10.5],[1786164480000,10.5],[1786164780000,10.1],[1786165080000,10.3],[1786165380000,10.3],[1786165680000,10.4],[1786165980000,10.3],[1786166280000,10.3],[1786166580000,10.4],[1786166880000,10.5],[1786167180000,10.6],[1786167480000,10.8],[1786167780000,11.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: [[1786140000000,12.70000000],[1786140180000,12.66000000],[1786140480000,12.60000000],[1786140780000,12.68000000],[1786141080000,12.72000000],[1786141380000,12.66000000],[1786141680000,12.54000000],[1786141980000,12.48000000],[1786142280000,12.36000000],[1786142580000,12.28000000],[1786142880000,12.22000000],[1786143180000,12.20000000],[1786143480000,12.20000000],[1786143780000,12.24000000],[1786144080000,12.22000000],[1786144380000,12.30000000],[1786144680000,12.38000000],[1786144980000,12.28000000],[1786145280000,12.20000000],[1786145580000,12.12000000],[1786145880000,12.04000000],[1786146180000,12.04000000],[1786146480000,11.98000000],[1786146780000,11.94000000],[1786147080000,11.96000000],[1786147380000,11.96000000],[1786147680000,11.96000000],[1786147980000,11.98000000],[1786148280000,12.00000000],[1786148580000,11.94000000],[1786148880000,12.04000000],[1786149180000,12.06000000],[1786149480000,12.02000000],[1786149780000,11.98000000],[1786150080000,12.00000000],[1786150380000,11.92000000],[1786150680000,11.88000000],[1786150980000,11.84000000],[1786151280000,11.72000000],[1786151580000,11.74000000],[1786151880000,11.72000000],[1786152180000,11.70000000],[1786152480000,11.58000000],[1786152780000,11.50000000],[1786153080000,11.36000000],[1786153380000,11.28000000],[1786153680000,11.34000000],[1786153980000,11.46000000],[1786154280000,11.40000000],[1786154580000,11.32000000],[1786154880000,11.08000000],[1786155180000,10.92000000],[1786155480000,10.82000000],[1786155780000,10.92000000],[1786156080000,10.92000000],[1786156380000,10.78000000],[1786156680000,10.62000000],[1786156980000,10.62000000],[1786157280000,10.54000000],[1786157580000,10.52000000],[1786157880000,10.44000000],[1786158180000,10.46000000],[1786158480000,10.26000000],[1786158780000,10.24000000],[1786159080000,10.40000000],[1786159380000,10.36000000],[1786159680000,10.20000000],[1786159980000,9.96000000],[1786160280000,9.84000000],[1786160580000,10.00000000],[1786160880000,10.44000000],[1786161180000,10.82000000],[1786161480000,11.02000000],[1786161780000,11.08000000],[1786162080000,11.16000000],[1786162380000,11.18000000],[1786162680000,11.34000000],[1786162980000,11.36000000],[1786163280000,11.36000000],[1786163580000,11.30000000],[1786163880000,11.30000000],[1786164180000,11.34000000],[1786164480000,11.58000000],[1786164780000,11.72000000],[1786165080000,11.66000000],[1786165380000,11.68000000],[1786165680000,11.66000000],[1786165980000,11.70000000],[1786166280000,11.66000000],[1786166580000,11.58000000],[1786166880000,11.56000000],[1786167180000,11.76000000],[1786167480000,12.38000000],[1786167780000,13.06000000],], 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: [[1786140000000,96.26666667],[1786140180000,96.06000000],[1786140480000,95.66000000],[1786140780000,95.32000000],[1786141080000,95.46000000],[1786141380000,95.10000000],[1786141680000,95.22000000],[1786141980000,94.68000000],[1786142280000,94.60000000],[1786142580000,94.20000000],[1786142880000,94.74000000],[1786143180000,94.80000000],[1786143480000,94.82000000],[1786143780000,94.94000000],[1786144080000,95.04000000],[1786144380000,94.80000000],[1786144680000,94.96000000],[1786144980000,95.10000000],[1786145280000,95.06000000],[1786145580000,95.38000000],[1786145880000,95.36000000],[1786146180000,95.66000000],[1786146480000,95.62000000],[1786146780000,95.74000000],[1786147080000,95.86000000],[1786147380000,95.90000000],[1786147680000,96.10000000],[1786147980000,96.10000000],[1786148280000,96.28000000],[1786148580000,96.26000000],[1786148880000,96.34000000],[1786149180000,96.44000000],[1786149480000,96.42000000],[1786149780000,96.24000000],[1786150080000,96.36000000],[1786150380000,96.24000000],[1786150680000,96.26000000],[1786150980000,96.20000000],[1786151280000,95.64000000],[1786151580000,95.52000000],[1786151880000,95.32000000],[1786152180000,95.04000000],[1786152480000,94.78000000],[1786152780000,94.10000000],[1786153080000,93.98000000],[1786153380000,93.86000000],[1786153680000,94.16000000],[1786153980000,94.70000000],[1786154280000,94.60000000],[1786154580000,94.22000000],[1786154880000,93.74000000],[1786155180000,93.36000000],[1786155480000,93.36000000],[1786155780000,93.38000000],[1786156080000,93.16000000],[1786156380000,92.88000000],[1786156680000,92.32000000],[1786156980000,93.10000000],[1786157280000,93.56000000],[1786157580000,93.58000000],[1786157880000,93.40000000],[1786158180000,93.40000000],[1786158480000,93.18000000],[1786158780000,93.44000000],[1786159080000,93.52000000],[1786159380000,92.48000000],[1786159680000,92.02000000],[1786159980000,90.78000000],[1786160280000,91.56000000],[1786160580000,92.66000000],[1786160880000,93.80000000],[1786161180000,94.88000000],[1786161480000,95.80000000],[1786161780000,95.72000000],[1786162080000,95.52000000],[1786162380000,95.20000000],[1786162680000,95.22000000],[1786162980000,95.76000000],[1786163280000,95.68000000],[1786163580000,95.10000000],[1786163880000,94.24000000],[1786164180000,94.22000000],[1786164480000,93.88000000],[1786164780000,91.26000000],[1786165080000,91.76000000],[1786165380000,91.30000000],[1786165680000,91.62000000],[1786165980000,90.98000000],[1786166280000,91.10000000],[1786166580000,92.18000000],[1786166880000,92.76000000],[1786167180000,92.98000000],[1786167480000,93.48000000],[1786167780000,95.02000000],], 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: [[1786140000000,1020.1],[1786140180000,1020.1],[1786140480000,1020.2],[1786140780000,1020.1],[1786141080000,1020.1],[1786141380000,1020.1],[1786141680000,1020.1],[1786141980000,1020.1],[1786142280000,1020],[1786142580000,1020],[1786142880000,1020],[1786143180000,1019.9],[1786143480000,1019.8],[1786143780000,1019.8],[1786144080000,1019.9],[1786144380000,1020],[1786144680000,1020],[1786144980000,1020],[1786145280000,1020],[1786145580000,1020],[1786145880000,1020.1],[1786146180000,1020.1],[1786146480000,1020.1],[1786146780000,1020.3],[1786147080000,1020.3],[1786147380000,1020.3],[1786147680000,1020.4],[1786147980000,1020.4],[1786148280000,1020.4],[1786148580000,1020.3],[1786148880000,1020.4],[1786149180000,1020.4],[1786149480000,1020.3],[1786149780000,1020.3],[1786150080000,1020.2],[1786150380000,1020.2],[1786150680000,1020.2],[1786150980000,1020.2],[1786151280000,1020.3],[1786151580000,1020.4],[1786151880000,1020.4],[1786152180000,1020.4],[1786152480000,1020.4],[1786152780000,1020.5],[1786153080000,1020.7],[1786153380000,1020.7],[1786153680000,1020.7],[1786153980000,1020.7],[1786154280000,1020.7],[1786154580000,1020.6],[1786154880000,1020.6],[1786155180000,1020.5],[1786155480000,1020.5],[1786155780000,1020.5],[1786156080000,1020.6],[1786156380000,1020.6],[1786156680000,1020.6],[1786156980000,1020.7],[1786157280000,1020.8],[1786157580000,1020.8],[1786157880000,1020.9],[1786158180000,1020.9],[1786158480000,1020.9],[1786158780000,1021],[1786159080000,1020.9],[1786159380000,1020.9],[1786159680000,1021],[1786159980000,1021.1],[1786160280000,1021.1],[1786160580000,1021.2],[1786160880000,1021.1],[1786161180000,1021.1],[1786161480000,1021],[1786161780000,1021.1],[1786162080000,1021.1],[1786162380000,1021.1],[1786162680000,1021.1],[1786162980000,1021.1],[1786163280000,1021.1],[1786163580000,1021.1],[1786163880000,1021.2],[1786164180000,1021.2],[1786164480000,1021.1],[1786164780000,1021.1],[1786165080000,1021.2],[1786165380000,1021.1],[1786165680000,1021.1],[1786165980000,1021.1],[1786166280000,1021.2],[1786166580000,1021.2],[1786166880000,1021.2],[1786167180000,1021.2],[1786167480000,1021.1],[1786167780000,1020.8],], 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: [[1786140000000,3.719999988],[1786140180000,2.952],[1786140480000,1.8],[1786140780000,1.368],[1786141080000,1.728],[1786141380000,2.232],[1786141680000,1.512],[1786141980000,2.016],[1786142280000,2.376],[1786142580000,3.96],[1786142880000,3.744],[1786143180000,3.888],[1786143480000,5.04],[1786143780000,4.032],[1786144080000,2.808],[1786144380000,1.8],[1786144680000,1.512],[1786144980000,2.376],[1786145280000,2.16],[1786145580000,1.44],[1786145880000,2.016],[1786146180000,2.52],[1786146480000,1.44],[1786146780000,1.152],[1786147080000,0.792],[1786147380000,0.792],[1786147680000,1.008],[1786147980000,1.584],[1786148280000,1.8],[1786148580000,2.088],[1786148880000,1.872],[1786149180000,2.376],[1786149480000,1.008],[1786149780000,1.656],[1786150080000,2.232],[1786150380000,1.44],[1786150680000,1.296],[1786150980000,1.584],[1786151280000,2.304],[1786151580000,1.728],[1786151880000,1.656],[1786152180000,1.872],[1786152480000,1.224],[1786152780000,1.152],[1786153080000,1.872],[1786153380000,1.512],[1786153680000,2.16],[1786153980000,1.44],[1786154280000,1.296],[1786154580000,3.456],[1786154880000,2.16],[1786155180000,1.512],[1786155480000,2.16],[1786155780000,0.864],[1786156080000,1.08],[1786156380000,1.584],[1786156680000,1.296],[1786156980000,2.16],[1786157280000,2.304],[1786157580000,2.304],[1786157880000,3.456],[1786158180000,1.944],[1786158480000,2.304],[1786158780000,3.672],[1786159080000,3.312],[1786159380000,2.808],[1786159680000,3.024],[1786159980000,1.512],[1786160280000,2.232],[1786160580000,1.152],[1786160880000,2.88],[1786161180000,2.376],[1786161480000,3.312],[1786161780000,1.8],[1786162080000,2.016],[1786162380000,2.16],[1786162680000,1.944],[1786162980000,2.52],[1786163280000,3.24],[1786163580000,4.392],[1786163880000,2.952],[1786164180000,1.656],[1786164480000,4.68],[1786164780000,3.816],[1786165080000,3.528],[1786165380000,2.952],[1786165680000,2.88],[1786165980000,3.312],[1786166280000,4.608],[1786166580000,2.592],[1786166880000,2.088],[1786167180000,1.656],[1786167480000,2.664],[1786167780000,3.024],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,5.879999988],[1786140180000,4.536],[1786140480000,2.592],[1786140780000,2.232],[1786141080000,2.448],[1786141380000,3.312],[1786141680000,2.376],[1786141980000,3.456],[1786142280000,3.672],[1786142580000,5.472],[1786142880000,5.616],[1786143180000,5.472],[1786143480000,7.416],[1786143780000,5.76],[1786144080000,4.464],[1786144380000,2.88],[1786144680000,2.448],[1786144980000,4.824],[1786145280000,4.248],[1786145580000,2.448],[1786145880000,3.528],[1786146180000,4.968],[1786146480000,2.736],[1786146780000,2.664],[1786147080000,1.872],[1786147380000,1.8],[1786147680000,2.016],[1786147980000,2.736],[1786148280000,2.88],[1786148580000,2.88],[1786148880000,2.664],[1786149180000,3.312],[1786149480000,1.728],[1786149780000,3.384],[1786150080000,3.672],[1786150380000,2.232],[1786150680000,2.304],[1786150980000,2.952],[1786151280000,3.816],[1786151580000,2.952],[1786151880000,2.664],[1786152180000,2.376],[1786152480000,1.944],[1786152780000,1.656],[1786153080000,2.736],[1786153380000,2.376],[1786153680000,3.672],[1786153980000,2.52],[1786154280000,2.088],[1786154580000,4.968],[1786154880000,3.384],[1786155180000,2.664],[1786155480000,3.096],[1786155780000,1.584],[1786156080000,1.512],[1786156380000,2.304],[1786156680000,2.16],[1786156980000,3.888],[1786157280000,4.104],[1786157580000,3.456],[1786157880000,4.536],[1786158180000,3.312],[1786158480000,3.528],[1786158780000,5.328],[1786159080000,6.48],[1786159380000,3.888],[1786159680000,4.032],[1786159980000,2.16],[1786160280000,3.168],[1786160580000,1.872],[1786160880000,4.032],[1786161180000,3.96],[1786161480000,4.824],[1786161780000,2.592],[1786162080000,2.592],[1786162380000,3.096],[1786162680000,2.88],[1786162980000,3.672],[1786163280000,4.68],[1786163580000,6.264],[1786163880000,4.248],[1786164180000,2.592],[1786164480000,7.128],[1786164780000,6.624],[1786165080000,5.328],[1786165380000,4.752],[1786165680000,4.752],[1786165980000,4.968],[1786166280000,6.408],[1786166580000,4.392],[1786166880000,3.24],[1786167180000,2.52],[1786167480000,4.32],[1786167780000,5.328],], 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: [[1786140000000,54.56666667],[1786140180000,83.46000000],[1786140480000,120.32000000],[1786140780000,248.96000000],[1786141080000,209.98000000],[1786141380000,129.10000000],[1786141680000,181.20000000],[1786141980000,83.94000000],[1786142280000,75.36000000],[1786142580000,51.40000000],[1786142880000,57.06000000],[1786143180000,49.56000000],[1786143480000,38.76000000],[1786143780000,59.92000000],[1786144080000,57.10000000],[1786144380000,202.26000000],[1786144680000,248.74000000],[1786144980000,234.52000000],[1786145280000,261.82000000],[1786145580000,263.86000000],[1786145880000,256.20000000],[1786146180000,245.56000000],[1786146480000,254.90000000],[1786146780000,205.64000000],[1786147080000,213.44000000],[1786147380000,222.06000000],[1786147680000,282.46000000],[1786147980000,266.92000000],[1786148280000,250.60000000],[1786148580000,257.26000000],[1786148880000,264.90000000],[1786149180000,254.82000000],[1786149480000,175.02000000],[1786149780000,213.24000000],[1786150080000,187.08000000],[1786150380000,223.30000000],[1786150680000,238.02000000],[1786150980000,199.06000000],[1786151280000,111.70000000],[1786151580000,143.82000000],[1786151880000,238.58000000],[1786152180000,260.76000000],[1786152480000,258.74000000],[1786152780000,235.44000000],[1786153080000,234.06000000],[1786153380000,202.20000000],[1786153680000,254.48000000],[1786153980000,163.98000000],[1786154280000,242.00000000],[1786154580000,264.94000000],[1786154880000,265.72000000],[1786155180000,245.14000000],[1786155480000,201.28000000],[1786155780000,220.70000000],[1786156080000,145.58000000],[1786156380000,44.98000000],[1786156680000,198.98000000],[1786156980000,59.94000000],[1786157280000,53.48000000],[1786157580000,66.58000000],[1786157880000,53.12000000],[1786158180000,46.78000000],[1786158480000,56.02000000],[1786158780000,100.08000000],[1786159080000,48.72000000],[1786159380000,231.92000000],[1786159680000,143.90000000],[1786159980000,229.78000000],[1786160280000,186.62000000],[1786160580000,283.66000000],[1786160880000,82.16000000],[1786161180000,158.44000000],[1786161480000,324.46000000],[1786161780000,150.34000000],[1786162080000,244.10000000],[1786162380000,277.44000000],[1786162680000,280.56000000],[1786162980000,223.80000000],[1786163280000,253.06000000],[1786163580000,295.90000000],[1786163880000,311.58000000],[1786164180000,207.30000000],[1786164480000,285.70000000],[1786164780000,226.50000000],[1786165080000,209.14000000],[1786165380000,296.62000000],[1786165680000,230.44000000],[1786165980000,231.02000000],[1786166280000,262.82000000],[1786166580000,160.50000000],[1786166880000,231.60000000],[1786167180000,154.92000000],[1786167480000,203.98000000],[1786167780000,239.34000000],], 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: [[1786140000000,0],[1786140180000,0],[1786140480000,0],[1786140780000,0],[1786141080000,0],[1786141380000,0],[1786141680000,0],[1786141980000,0],[1786142280000,0],[1786142580000,0],[1786142880000,0],[1786143180000,0],[1786143480000,0],[1786143780000,0],[1786144080000,0],[1786144380000,0],[1786144680000,0],[1786144980000,0],[1786145280000,0],[1786145580000,0],[1786145880000,0],[1786146180000,0],[1786146480000,0],[1786146780000,0],[1786147080000,0],[1786147380000,0],[1786147680000,0],[1786147980000,0],[1786148280000,0],[1786148580000,0],[1786148880000,0],[1786149180000,0],[1786149480000,0],[1786149780000,0],[1786150080000,0],[1786150380000,0],[1786150680000,0],[1786150980000,0],[1786151280000,0],[1786151580000,0],[1786151880000,0],[1786152180000,0],[1786152480000,0],[1786152780000,0],[1786153080000,0],[1786153380000,0],[1786153680000,0],[1786153980000,0],[1786154280000,0],[1786154580000,0],[1786154880000,0],[1786155180000,0],[1786155480000,0],[1786155780000,0],[1786156080000,0],[1786156380000,0],[1786156680000,0],[1786156980000,0],[1786157280000,0],[1786157580000,0],[1786157880000,0],[1786158180000,0],[1786158480000,0],[1786158780000,0],[1786159080000,0],[1786159380000,0],[1786159680000,0],[1786159980000,0],[1786160280000,0],[1786160580000,0],[1786160880000,0],[1786161180000,0],[1786161480000,0],[1786161780000,0],[1786162080000,0],[1786162380000,0],[1786162680000,0],[1786162980000,0],[1786163280000,0],[1786163580000,0],[1786163880000,0],[1786164180000,0],[1786164480000,0],[1786164780000,0],[1786165080000,0],[1786165380000,0],[1786165680000,0],[1786165980000,0],[1786166280000,0],[1786166580000,0],[1786166880000,0],[1786167180000,0],[1786167480000,0],[1786167780000,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; }