var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,15.60000000],[1786140180000,15.50000000],[1786140480000,15.42000000],[1786140780000,15.28000000],[1786141080000,15.18000000],[1786141380000,15.16000000],[1786141680000,15.10000000],[1786141980000,15.10000000],[1786142280000,15.10000000],[1786142580000,15.16000000],[1786142880000,15.26000000],[1786143180000,15.38000000],[1786143480000,15.48000000],[1786143780000,15.54000000],[1786144080000,15.70000000],[1786144380000,15.70000000],[1786144680000,15.78000000],[1786144980000,15.82000000],[1786145280000,15.90000000],[1786145580000,15.90000000],[1786145880000,15.88000000],[1786146180000,15.74000000],[1786146480000,15.68000000],[1786146780000,15.56000000],[1786147080000,15.42000000],[1786147380000,15.32000000],[1786147680000,15.16000000],[1786147980000,15.02000000],[1786148280000,14.88000000],[1786148580000,14.76000000],[1786148880000,14.60000000],[1786149180000,14.46000000],[1786149480000,14.40000000],[1786149780000,14.32000000],[1786150080000,14.30000000],[1786150380000,14.24000000],[1786150680000,14.14000000],[1786150980000,14.10000000],[1786151280000,13.98000000],[1786151580000,13.88000000],[1786151880000,13.80000000],[1786152180000,13.74000000],[1786152480000,13.66000000],[1786152780000,13.56000000],[1786153080000,13.50000000],[1786153380000,13.38000000],[1786153680000,13.28000000],[1786153980000,13.20000000],[1786154280000,13.16000000],[1786154580000,13.04000000],[1786154880000,12.98000000],[1786155180000,12.90000000],[1786155480000,12.88000000],[1786155780000,12.80000000],[1786156080000,12.80000000],[1786156380000,12.80000000],[1786156680000,12.80000000],[1786156980000,12.80000000],[1786157280000,12.80000000],[1786157580000,12.72000000],[1786157880000,12.70000000],[1786158180000,12.72000000],[1786158480000,12.74000000],[1786158780000,12.70000000],[1786159080000,12.70000000],[1786159380000,12.60000000],[1786159680000,12.60000000],[1786159980000,12.60000000],[1786160280000,12.60000000],[1786160580000,12.58000000],[1786160880000,12.60000000],[1786161180000,12.60000000],[1786161480000,12.60000000],[1786161780000,12.66000000],[1786162080000,12.76000000],[1786162380000,12.80000000],[1786162680000,12.88000000],[1786162980000,12.90000000],[1786163280000,12.98000000],[1786163580000,13.00000000],[1786163880000,13.10000000],[1786164180000,13.20000000],[1786164480000,13.32000000],[1786164780000,13.46000000],[1786165080000,13.64000000],[1786165380000,13.86000000],[1786165680000,14.06000000],[1786165980000,14.24000000],[1786166280000,14.50000000],[1786166580000,14.70000000],[1786166880000,14.76000000],[1786167180000,14.88000000],[1786167480000,15.00000000],[1786167780000,15.14000000],[1786168080000,15.28000000],[1786168380000,15.40000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,13.4],[1786140180000,13.3],[1786140480000,13.4],[1786140780000,13.4],[1786141080000,13.4],[1786141380000,13.4],[1786141680000,13.4],[1786141980000,13.4],[1786142280000,13.4],[1786142580000,13.4],[1786142880000,13.4],[1786143180000,13.4],[1786143480000,13.5],[1786143780000,13.4],[1786144080000,13.4],[1786144380000,13.5],[1786144680000,13.5],[1786144980000,13.4],[1786145280000,13.4],[1786145580000,13.4],[1786145880000,13.4],[1786146180000,13.4],[1786146480000,13.4],[1786146780000,13.2],[1786147080000,13],[1786147380000,12.8],[1786147680000,12.7],[1786147980000,12.7],[1786148280000,12.6],[1786148580000,12.6],[1786148880000,12.5],[1786149180000,12.5],[1786149480000,12.5],[1786149780000,12.4],[1786150080000,12.4],[1786150380000,12.4],[1786150680000,12.3],[1786150980000,12.3],[1786151280000,12.2],[1786151580000,12.2],[1786151880000,12.2],[1786152180000,12.1],[1786152480000,12.1],[1786152780000,12.1],[1786153080000,12],[1786153380000,11.9],[1786153680000,11.7],[1786153980000,11.8],[1786154280000,11.7],[1786154580000,11.5],[1786154880000,11.5],[1786155180000,11.4],[1786155480000,11.5],[1786155780000,11.4],[1786156080000,11.5],[1786156380000,11.5],[1786156680000,11.5],[1786156980000,11.4],[1786157280000,11.4],[1786157580000,11.4],[1786157880000,11.5],[1786158180000,11.6],[1786158480000,11.6],[1786158780000,11.5],[1786159080000,11.4],[1786159380000,11.3],[1786159680000,11.4],[1786159980000,11.5],[1786160280000,11.5],[1786160580000,11.5],[1786160880000,11.5],[1786161180000,11.5],[1786161480000,11.5],[1786161780000,11.5],[1786162080000,11.6],[1786162380000,11.6],[1786162680000,11.6],[1786162980000,11.6],[1786163280000,11.6],[1786163580000,11.6],[1786163880000,11.7],[1786164180000,11.8],[1786164480000,11.9],[1786164780000,12],[1786165080000,12.1],[1786165380000,12.3],[1786165680000,12.2],[1786165980000,12.3],[1786166280000,12.4],[1786166580000,12.4],[1786166880000,12.4],[1786167180000,12.5],[1786167480000,12.6],[1786167780000,12.7],[1786168080000,12.7],[1786168380000,12.8],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { var dataset = [{label: "5 cm nad povrchom (\u00b0C)", data: [[1786140000000,13.26666667],[1786140180000,13.24000000],[1786140480000,13.00000000],[1786140780000,12.92000000],[1786141080000,12.82000000],[1786141380000,12.54000000],[1786141680000,12.48000000],[1786141980000,12.64000000],[1786142280000,13.44000000],[1786142580000,13.70000000],[1786142880000,14.08000000],[1786143180000,14.20000000],[1786143480000,14.30000000],[1786143780000,14.48000000],[1786144080000,14.82000000],[1786144380000,14.96000000],[1786144680000,15.10000000],[1786144980000,15.24000000],[1786145280000,15.14000000],[1786145580000,14.98000000],[1786145880000,14.50000000],[1786146180000,14.00000000],[1786146480000,13.54000000],[1786146780000,13.66000000],[1786147080000,13.34000000],[1786147380000,12.92000000],[1786147680000,12.44000000],[1786147980000,12.30000000],[1786148280000,11.86000000],[1786148580000,12.02000000],[1786148880000,11.58000000],[1786149180000,11.58000000],[1786149480000,12.24000000],[1786149780000,12.28000000],[1786150080000,11.88000000],[1786150380000,12.10000000],[1786150680000,12.18000000],[1786150980000,12.12000000],[1786151280000,12.12000000],[1786151580000,11.90000000],[1786151880000,11.84000000],[1786152180000,11.83333333],[1786155540000,11.35000000],[1786155780000,11.18000000],[1786156080000,11.40000000],[1786156380000,11.52000000],[1786156680000,11.62000000],[1786156980000,11.62000000],[1786157280000,11.56000000],[1786157580000,11.44000000],[1786157880000,11.62000000],[1786158180000,11.36000000],[1786158480000,11.64000000],[1786158780000,11.48000000],[1786159080000,11.32000000],[1786159380000,11.48000000],[1786159680000,11.28000000],[1786159980000,11.42000000],[1786160280000,11.54000000],[1786160580000,11.34000000],[1786160880000,11.46000000],[1786161180000,11.74000000],[1786161480000,11.98000000],[1786161780000,12.12000000],[1786162080000,12.34000000],[1786162380000,12.56000000],[1786162680000,12.70000000],[1786162980000,12.86000000],[1786163280000,12.94000000],[1786163580000,13.08000000],[1786163880000,13.38000000],[1786164180000,13.58000000],[1786164480000,13.80000000],[1786164780000,14.12000000],[1786165080000,14.42000000],[1786165380000,14.88000000],[1786165680000,15.10000000],[1786165980000,15.58000000],[1786166280000,15.84000000],[1786166580000,15.60000000],[1786166880000,15.64000000],[1786167180000,15.98000000],[1786167480000,16.10000000],[1786167780000,16.56000000],[1786168080000,16.60000000],[1786168380000,16.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: [[1786140000000,86.83333333],[1786140180000,87.04000000],[1786140480000,87.96000000],[1786140780000,88.66000000],[1786141080000,89.22000000],[1786141380000,89.60000000],[1786141680000,89.54000000],[1786141980000,89.58000000],[1786142280000,89.72000000],[1786142580000,89.48000000],[1786142880000,88.98000000],[1786143180000,88.36000000],[1786143480000,87.88000000],[1786143780000,86.96000000],[1786144080000,86.40000000],[1786144380000,86.72000000],[1786144680000,86.32000000],[1786144980000,85.66000000],[1786145280000,85.32000000],[1786145580000,85.28000000],[1786145880000,85.40000000],[1786146180000,85.96000000],[1786146480000,86.26000000],[1786146780000,85.96000000],[1786147080000,85.42000000],[1786147380000,85.18000000],[1786147680000,85.58000000],[1786147980000,86.28000000],[1786148280000,86.56000000],[1786148580000,87.04000000],[1786148880000,87.50000000],[1786149180000,88.00000000],[1786149480000,88.32000000],[1786149780000,88.44000000],[1786150080000,88.64000000],[1786150380000,88.62000000],[1786150680000,88.76000000],[1786150980000,88.94000000],[1786151280000,89.16000000],[1786151580000,89.50000000],[1786151880000,89.96000000],[1786152180000,90.12000000],[1786152480000,90.36000000],[1786152780000,90.68000000],[1786153080000,90.88000000],[1786153380000,90.62000000],[1786153680000,90.40000000],[1786153980000,91.14000000],[1786154280000,90.86000000],[1786154580000,90.48000000],[1786154880000,90.64000000],[1786155180000,90.84000000],[1786155480000,91.32000000],[1786155780000,91.42000000],[1786156080000,91.60000000],[1786156380000,91.80000000],[1786156680000,91.66000000],[1786156980000,91.50000000],[1786157280000,91.44000000],[1786157580000,91.86000000],[1786157880000,92.54000000],[1786158180000,92.92000000],[1786158480000,92.74000000],[1786158780000,92.54000000],[1786159080000,92.02000000],[1786159380000,92.12000000],[1786159680000,92.56000000],[1786159980000,92.86000000],[1786160280000,92.90000000],[1786160580000,92.94000000],[1786160880000,93.24000000],[1786161180000,93.20000000],[1786161480000,93.14000000],[1786161780000,92.76000000],[1786162080000,93.00000000],[1786162380000,92.46000000],[1786162680000,92.14000000],[1786162980000,91.84000000],[1786163280000,91.56000000],[1786163580000,91.26000000],[1786163880000,91.26000000],[1786164180000,91.38000000],[1786164480000,91.06000000],[1786164780000,91.02000000],[1786165080000,90.66000000],[1786165380000,90.12000000],[1786165680000,88.92000000],[1786165980000,88.10000000],[1786166280000,87.26000000],[1786166580000,86.44000000],[1786166880000,86.14000000],[1786167180000,85.90000000],[1786167480000,85.46000000],[1786167780000,85.24000000],[1786168080000,84.90000000],[1786168380000,84.80000000],], 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,1019.9],[1786140180000,1019.9],[1786140480000,1019.8],[1786140780000,1019.9],[1786141080000,1019.9],[1786141380000,1019.8],[1786141680000,1019.8],[1786141980000,1019.9],[1786142280000,1019.9],[1786142580000,1019.9],[1786142880000,1019.9],[1786143180000,1019.9],[1786143480000,1019.8],[1786143780000,1019.9],[1786144080000,1020],[1786144380000,1020],[1786144680000,1020],[1786144980000,1020.1],[1786145280000,1020.1],[1786145580000,1020.1],[1786145880000,1020.1],[1786146180000,1020.1],[1786146480000,1020.2],[1786146780000,1020.2],[1786147080000,1020.1],[1786147380000,1020.1],[1786147680000,1020.2],[1786147980000,1020.2],[1786148280000,1020.2],[1786148580000,1020.1],[1786148880000,1020.2],[1786149180000,1020.3],[1786149480000,1020.3],[1786149780000,1020.3],[1786150080000,1020.3],[1786150380000,1020.5],[1786150680000,1020.6],[1786150980000,1020.6],[1786151280000,1020.6],[1786151580000,1020.6],[1786151880000,1020.7],[1786152180000,1020.8],[1786152480000,1020.8],[1786152780000,1020.8],[1786153080000,1020.8],[1786153380000,1020.9],[1786153680000,1020.8],[1786153980000,1020.9],[1786154280000,1020.9],[1786154580000,1020.9],[1786154880000,1021],[1786155180000,1021],[1786155480000,1021],[1786155780000,1021],[1786156080000,1020.9],[1786156380000,1020.9],[1786156680000,1020.9],[1786156980000,1021],[1786157280000,1021],[1786157580000,1021],[1786157880000,1021.1],[1786158180000,1021.1],[1786158480000,1021.1],[1786158780000,1021.1],[1786159080000,1021.2],[1786159380000,1021.3],[1786159680000,1021.3],[1786159980000,1021.3],[1786160280000,1021.4],[1786160580000,1021.3],[1786160880000,1021.4],[1786161180000,1021.5],[1786161480000,1021.5],[1786161780000,1021.5],[1786162080000,1021.5],[1786162380000,1021.5],[1786162680000,1021.5],[1786162980000,1021.4],[1786163280000,1021.4],[1786163580000,1021.5],[1786163880000,1021.5],[1786164180000,1021.5],[1786164480000,1021.5],[1786164780000,1021.5],[1786165080000,1021.5],[1786165380000,1021.6],[1786165680000,1021.7],[1786165980000,1021.6],[1786166280000,1021.6],[1786166580000,1021.4],[1786166880000,1021.5],[1786167180000,1021.4],[1786167480000,1021.4],[1786167780000,1021.4],[1786168080000,1021.3],[1786168380000,1021.2],], 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,2.52],[1786140180000,1.224],[1786140480000,0.72],[1786140780000,0.936],[1786141080000,1.224],[1786141380000,1.512],[1786141680000,1.224],[1786141980000,1.224],[1786142280000,1.656],[1786142580000,1.152],[1786142880000,1.728],[1786143180000,1.44],[1786143480000,1.944],[1786143780000,2.088],[1786144080000,2.376],[1786144380000,3.024],[1786144680000,2.16],[1786144980000,1.656],[1786145280000,1.872],[1786145580000,2.088],[1786145880000,1.152],[1786146180000,1.584],[1786146480000,2.736],[1786146780000,2.16],[1786147080000,2.016],[1786147380000,1.44],[1786147680000,1.224],[1786147980000,1.224],[1786148280000,0.864],[1786148580000,1.44],[1786148880000,1.08],[1786149180000,0.72],[1786149480000,2.016],[1786149780000,1.872],[1786150080000,2.448],[1786150380000,3.096],[1786150680000,3.456],[1786150980000,2.16],[1786151280000,3.024],[1786151580000,2.448],[1786151880000,1.44],[1786152180000,3.096],[1786152480000,2.448],[1786152780000,1.368],[1786153080000,1.512],[1786153380000,1.152],[1786153680000,1.008],[1786153980000,1.512],[1786154280000,3.456],[1786154580000,2.736],[1786154880000,2.52],[1786155180000,3.096],[1786155480000,2.376],[1786155780000,2.52],[1786156080000,2.952],[1786156380000,3.24],[1786156680000,2.664],[1786156980000,1.584],[1786157280000,1.224],[1786157580000,1.296],[1786157880000,1.008],[1786158180000,1.44],[1786158480000,2.736],[1786158780000,2.88],[1786159080000,1.512],[1786159380000,1.224],[1786159680000,0.72],[1786159980000,1.224],[1786160280000,1.368],[1786160580000,0.576],[1786160880000,1.296],[1786161180000,0.936],[1786161480000,2.52],[1786161780000,1.8],[1786162080000,2.448],[1786162380000,2.88],[1786162680000,3.96],[1786162980000,3.168],[1786163280000,3.528],[1786163580000,2.736],[1786163880000,1.728],[1786164180000,2.808],[1786164480000,2.16],[1786164780000,2.448],[1786165080000,1.224],[1786165380000,1.152],[1786165680000,1.44],[1786165980000,1.656],[1786166280000,1.944],[1786166580000,2.088],[1786166880000,1.296],[1786167180000,2.592],[1786167480000,1.584],[1786167780000,1.512],[1786168080000,1.8],[1786168380000,1.08],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,3.480000012],[1786140180000,1.584],[1786140480000,1.008],[1786140780000,1.44],[1786141080000,1.728],[1786141380000,2.592],[1786141680000,2.232],[1786141980000,2.376],[1786142280000,3.024],[1786142580000,2.16],[1786142880000,2.88],[1786143180000,2.448],[1786143480000,3.096],[1786143780000,3.384],[1786144080000,3.384],[1786144380000,4.536],[1786144680000,3.528],[1786144980000,2.16],[1786145280000,2.592],[1786145580000,2.808],[1786145880000,1.728],[1786146180000,2.304],[1786146480000,3.744],[1786146780000,4.032],[1786147080000,3.168],[1786147380000,2.16],[1786147680000,2.664],[1786147980000,2.16],[1786148280000,1.368],[1786148580000,2.016],[1786148880000,1.728],[1786149180000,1.08],[1786149480000,2.52],[1786149780000,2.376],[1786150080000,3.384],[1786150380000,3.6],[1786150680000,4.392],[1786150980000,3.312],[1786151280000,4.104],[1786151580000,3.384],[1786151880000,2.232],[1786152180000,3.816],[1786152480000,3.6],[1786152780000,2.16],[1786153080000,2.52],[1786153380000,1.944],[1786153680000,1.44],[1786153980000,2.376],[1786154280000,4.968],[1786154580000,4.104],[1786154880000,3.672],[1786155180000,4.176],[1786155480000,3.24],[1786155780000,3.384],[1786156080000,4.032],[1786156380000,4.248],[1786156680000,3.888],[1786156980000,2.736],[1786157280000,1.656],[1786157580000,1.728],[1786157880000,1.944],[1786158180000,2.16],[1786158480000,3.312],[1786158780000,4.248],[1786159080000,2.304],[1786159380000,1.944],[1786159680000,1.08],[1786159980000,1.656],[1786160280000,2.16],[1786160580000,1.008],[1786160880000,2.088],[1786161180000,1.44],[1786161480000,3.528],[1786161780000,2.376],[1786162080000,3.744],[1786162380000,4.32],[1786162680000,5.4],[1786162980000,4.608],[1786163280000,4.824],[1786163580000,4.32],[1786163880000,2.736],[1786164180000,4.032],[1786164480000,3.096],[1786164780000,3.24],[1786165080000,1.944],[1786165380000,1.872],[1786165680000,1.872],[1786165980000,2.376],[1786166280000,2.952],[1786166580000,3.384],[1786166880000,2.16],[1786167180000,3.744],[1786167480000,2.448],[1786167780000,2.304],[1786168080000,2.664],[1786168380000,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: [[1786140000000,128.13333333],[1786140180000,33.68000000],[1786140480000,123.20000000],[1786140780000,97.76000000],[1786141080000,93.54000000],[1786141380000,94.66000000],[1786141680000,93.22000000],[1786141980000,77.06000000],[1786142280000,54.02000000],[1786142580000,77.20000000],[1786142880000,63.50000000],[1786143180000,88.08000000],[1786143480000,58.46000000],[1786143780000,53.54000000],[1786144080000,27.72000000],[1786144380000,83.96000000],[1786144680000,213.72000000],[1786144980000,236.88000000],[1786145280000,216.82000000],[1786145580000,209.86000000],[1786145880000,198.74000000],[1786146180000,144.14000000],[1786146480000,180.70000000],[1786146780000,108.00000000],[1786147080000,118.28000000],[1786147380000,106.12000000],[1786147680000,87.04000000],[1786147980000,95.76000000],[1786148280000,131.32000000],[1786148580000,88.42000000],[1786148880000,98.38000000],[1786149180000,122.18000000],[1786149480000,85.12000000],[1786149780000,25.06000000],[1786150080000,147.44000000],[1786150380000,284.32000000],[1786150680000,144.48000000],[1786150980000,85.80000000],[1786151280000,15.58000000],[1786151580000,15.22000000],[1786151880000,344.22000000],[1786152180000,75.12000000],[1786152480000,65.98000000],[1786152780000,159.80000000],[1786153080000,114.12000000],[1786153380000,84.96000000],[1786153680000,77.76000000],[1786153980000,96.48000000],[1786154280000,78.36000000],[1786154580000,79.24000000],[1786154880000,146.04000000],[1786155180000,22.74000000],[1786155480000,7.70000000],[1786155780000,283.70000000],[1786156080000,15.46000000],[1786156380000,9.10000000],[1786156680000,73.94000000],[1786156980000,144.92000000],[1786157280000,20.38000000],[1786157580000,130.26000000],[1786157880000,99.70000000],[1786158180000,265.40000000],[1786158480000,19.72000000],[1786158780000,14.08000000],[1786159080000,223.22000000],[1786159380000,53.06000000],[1786159680000,256.78000000],[1786159980000,45.66000000],[1786160280000,104.50000000],[1786160580000,154.58000000],[1786160880000,42.58000000],[1786161180000,55.36000000],[1786161480000,15.20000000],[1786161780000,97.44000000],[1786162080000,46.20000000],[1786162380000,23.46000000],[1786162680000,17.30000000],[1786162980000,93.18000000],[1786163280000,82.66000000],[1786163580000,60.58000000],[1786163880000,270.30000000],[1786164180000,27.86000000],[1786164480000,97.52000000],[1786164780000,154.74000000],[1786165080000,128.80000000],[1786165380000,130.20000000],[1786165680000,216.64000000],[1786165980000,139.20000000],[1786166280000,95.90000000],[1786166580000,127.30000000],[1786166880000,141.02000000],[1786167180000,140.96000000],[1786167480000,97.50000000],[1786167780000,129.28000000],[1786168080000,100.88000000],[1786168380000,133.40000000],], 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],[1786168080000,0],[1786168380000,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; }