var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,14.10000000],[1786140180000,14.08000000],[1786140480000,14.00000000],[1786140780000,14.00000000],[1786141080000,13.92000000],[1786141380000,13.92000000],[1786141680000,13.98000000],[1786141980000,14.00000000],[1786142280000,14.00000000],[1786142580000,13.90000000],[1786142880000,13.80000000],[1786143180000,13.80000000],[1786143480000,13.80000000],[1786143780000,13.74000000],[1786144080000,13.62000000],[1786144380000,13.52000000],[1786144680000,13.46000000],[1786144980000,13.34000000],[1786145280000,13.22000000],[1786145580000,13.10000000],[1786145880000,13.10000000],[1786146180000,13.02000000],[1786146480000,12.80000000],[1786146780000,12.74000000],[1786147080000,12.72000000],[1786147380000,12.80000000],[1786147680000,12.80000000],[1786147980000,12.80000000],[1786148280000,12.90000000],[1786148580000,12.90000000],[1786148880000,12.90000000],[1786149180000,12.82000000],[1786149480000,12.80000000],[1786149780000,12.72000000],[1786150080000,12.76000000],[1786150380000,12.86000000],[1786150680000,12.94000000],[1786150980000,13.00000000],[1786151280000,13.00000000],[1786151580000,13.02000000],[1786151880000,13.00000000],[1786152180000,13.00000000],[1786152480000,13.10000000],[1786152780000,12.98000000],[1786153080000,12.90000000],[1786153380000,12.80000000],[1786153680000,12.82000000],[1786153980000,12.78000000],[1786154280000,12.70000000],[1786154580000,12.70000000],[1786154880000,12.62000000],[1786155180000,12.60000000],[1786155480000,12.54000000],[1786155780000,12.50000000],[1786156080000,12.40000000],[1786156380000,12.40000000],[1786156680000,12.40000000],[1786156980000,12.34000000],[1786157280000,12.30000000],[1786157580000,12.24000000],[1786157880000,12.30000000],[1786158180000,12.30000000],[1786158480000,12.30000000],[1786158780000,12.26000000],[1786159080000,12.20000000],[1786159380000,12.14000000],[1786159680000,12.10000000],[1786159980000,12.02000000],[1786160280000,12.00000000],[1786160580000,12.00000000],[1786160880000,12.08000000],[1786161180000,12.18000000],[1786161480000,12.20000000],[1786161780000,12.24000000],[1786162080000,12.28000000],[1786162380000,12.38000000],[1786162680000,12.46000000],[1786162980000,12.56000000],[1786163280000,12.66000000],[1786163580000,12.80000000],[1786163880000,12.98000000],[1786164180000,13.14000000],[1786164480000,13.24000000],[1786164780000,13.30000000],[1786165080000,13.34000000],[1786165380000,13.44000000],[1786165680000,13.66000000],[1786165980000,13.86000000],[1786166280000,14.04000000],[1786166580000,14.26000000],[1786166880000,14.48000000],[1786167180000,14.64000000],[1786167480000,14.82000000],[1786167780000,14.90000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,14.1],[1786140180000,14.1],[1786140480000,14],[1786140780000,14],[1786141080000,13.9],[1786141380000,13.9],[1786141680000,14],[1786141980000,14],[1786142280000,14],[1786142580000,13.9],[1786142880000,13.8],[1786143180000,13.8],[1786143480000,13.8],[1786143780000,13.7],[1786144080000,13.6],[1786144380000,13.5],[1786144680000,13.5],[1786144980000,13.3],[1786145280000,13.2],[1786145580000,13.1],[1786145880000,13.1],[1786146180000,13],[1786146480000,12.8],[1786146780000,12.7],[1786147080000,12.7],[1786147380000,12.8],[1786147680000,12.8],[1786147980000,12.8],[1786148280000,12.9],[1786148580000,12.9],[1786148880000,12.9],[1786149180000,12.8],[1786149480000,12.8],[1786149780000,12.7],[1786150080000,12.8],[1786150380000,12.9],[1786150680000,12.9],[1786150980000,13],[1786151280000,13],[1786151580000,13],[1786151880000,13],[1786152180000,13],[1786152480000,13.1],[1786152780000,13],[1786153080000,12.9],[1786153380000,12.8],[1786153680000,12.8],[1786153980000,12.8],[1786154280000,12.7],[1786154580000,12.7],[1786154880000,12.6],[1786155180000,12.6],[1786155480000,12.5],[1786155780000,12.5],[1786156080000,12.4],[1786156380000,12.4],[1786156680000,12.4],[1786156980000,12.3],[1786157280000,12.3],[1786157580000,12.2],[1786157880000,12.3],[1786158180000,12.3],[1786158480000,12.3],[1786158780000,12.3],[1786159080000,12.2],[1786159380000,12.1],[1786159680000,12.1],[1786159980000,12],[1786160280000,12],[1786160580000,12],[1786160880000,12.1],[1786161180000,12.2],[1786161480000,12.2],[1786161780000,12.2],[1786162080000,12.3],[1786162380000,12.4],[1786162680000,12.5],[1786162980000,12.6],[1786163280000,12.7],[1786163580000,12.8],[1786163880000,13],[1786164180000,13.1],[1786164480000,13.2],[1786164780000,13.3],[1786165080000,13.3],[1786165380000,13.4],[1786165680000,13.7],[1786165980000,13.9],[1786166280000,14],[1786166580000,14.3],[1786166880000,14.5],[1786167180000,14.6],[1786167480000,14.8],[1786167780000,14.9],], 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.20000000],[1786140180000,12.90000000],[1786140480000,12.82000000],[1786140780000,13.08000000],[1786141080000,13.10000000],[1786141380000,13.20000000],[1786141680000,13.26000000],[1786141980000,13.30000000],[1786142280000,13.28000000],[1786142580000,13.04000000],[1786142880000,12.68000000],[1786143180000,12.52000000],[1786143480000,12.22000000],[1786143780000,11.98000000],[1786144080000,12.06000000],[1786144380000,11.92000000],[1786144680000,12.28000000],[1786144980000,12.26000000],[1786145280000,11.96000000],[1786145580000,11.58000000],[1786145880000,11.36000000],[1786146180000,11.84000000],[1786146480000,11.96000000],[1786146780000,12.06000000],[1786147080000,12.32000000],[1786147380000,12.48000000],[1786147680000,12.54000000],[1786147980000,12.38000000],[1786148280000,12.00000000],[1786148580000,12.02000000],[1786148880000,12.04000000],[1786149180000,12.20000000],[1786149480000,12.32000000],[1786149780000,12.64000000],[1786150080000,12.88000000],[1786150380000,12.94000000],[1786150680000,12.86000000],[1786150980000,12.80000000],[1786151280000,12.72000000],[1786151580000,12.64000000],[1786151880000,12.84000000],[1786152180000,12.88000000],[1786152480000,12.54000000],[1786152780000,12.12000000],[1786153080000,11.60000000],[1786153380000,11.20000000],[1786153680000,11.30000000],[1786153980000,11.48000000],[1786154280000,11.48000000],[1786154580000,11.46000000],[1786154880000,11.76000000],[1786155180000,11.56000000],[1786155480000,11.18000000],[1786155780000,11.10000000],[1786156080000,11.36000000],[1786156380000,11.54000000],[1786156680000,11.34000000],[1786156980000,11.26000000],[1786157280000,10.98000000],[1786157580000,11.02000000],[1786157880000,11.04000000],[1786158180000,11.28000000],[1786158480000,11.56000000],[1786158780000,11.64000000],[1786159080000,11.68000000],[1786159380000,11.72000000],[1786159680000,11.68000000],[1786159980000,11.70000000],[1786160280000,11.82000000],[1786160580000,11.96000000],[1786160880000,12.10000000],[1786161180000,12.26000000],[1786161480000,12.36000000],[1786161780000,12.48000000],[1786162080000,12.66000000],[1786162380000,12.86000000],[1786162680000,12.96000000],[1786162980000,13.16000000],[1786163280000,13.40000000],[1786163580000,13.76000000],[1786163880000,13.98000000],[1786164180000,14.18000000],[1786164480000,14.36000000],[1786164780000,14.44000000],[1786165080000,14.42000000],[1786165380000,14.62000000],[1786165680000,15.02000000],[1786165980000,15.44000000],[1786166280000,15.78000000],[1786166580000,16.08000000],[1786166880000,16.08000000],[1786167180000,15.94000000],[1786167480000,16.10000000],[1786167780000,16.10000000],], 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,100.00000000],[1786140180000,100.00000000],[1786140480000,100.00000000],[1786140780000,100.00000000],[1786141080000,100.00000000],[1786141380000,100.00000000],[1786141680000,100.00000000],[1786141980000,100.00000000],[1786142280000,100.00000000],[1786142580000,100.00000000],[1786142880000,100.00000000],[1786143180000,100.00000000],[1786143480000,100.00000000],[1786143780000,100.00000000],[1786144080000,100.00000000],[1786144380000,100.00000000],[1786144680000,100.00000000],[1786144980000,100.00000000],[1786145280000,100.00000000],[1786145580000,100.00000000],[1786145880000,100.00000000],[1786146180000,100.00000000],[1786146480000,100.00000000],[1786146780000,100.00000000],[1786147080000,100.00000000],[1786147380000,100.00000000],[1786147680000,100.00000000],[1786147980000,100.00000000],[1786148280000,100.00000000],[1786148580000,100.00000000],[1786148880000,100.00000000],[1786149180000,100.00000000],[1786149480000,100.00000000],[1786149780000,100.00000000],[1786150080000,100.00000000],[1786150380000,100.00000000],[1786150680000,100.00000000],[1786150980000,100.00000000],[1786151280000,100.00000000],[1786151580000,100.00000000],[1786151880000,100.00000000],[1786152180000,100.00000000],[1786152480000,100.00000000],[1786152780000,100.00000000],[1786153080000,100.00000000],[1786153380000,100.00000000],[1786153680000,100.00000000],[1786153980000,100.00000000],[1786154280000,100.00000000],[1786154580000,100.00000000],[1786154880000,100.00000000],[1786155180000,100.00000000],[1786155480000,100.00000000],[1786155780000,100.00000000],[1786156080000,100.00000000],[1786156380000,100.00000000],[1786156680000,100.00000000],[1786156980000,100.00000000],[1786157280000,100.00000000],[1786157580000,100.00000000],[1786157880000,100.00000000],[1786158180000,100.00000000],[1786158480000,100.00000000],[1786158780000,100.00000000],[1786159080000,100.00000000],[1786159380000,100.00000000],[1786159680000,100.00000000],[1786159980000,100.00000000],[1786160280000,100.00000000],[1786160580000,100.00000000],[1786160880000,100.00000000],[1786161180000,100.00000000],[1786161480000,100.00000000],[1786161780000,100.00000000],[1786162080000,100.00000000],[1786162380000,100.00000000],[1786162680000,100.00000000],[1786162980000,100.00000000],[1786163280000,100.00000000],[1786163580000,100.00000000],[1786163880000,100.00000000],[1786164180000,100.00000000],[1786164480000,100.00000000],[1786164780000,100.00000000],[1786165080000,100.00000000],[1786165380000,100.00000000],[1786165680000,100.00000000],[1786165980000,100.00000000],[1786166280000,100.00000000],[1786166580000,100.00000000],[1786166880000,100.00000000],[1786167180000,100.00000000],[1786167480000,100.00000000],[1786167780000,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: [[1786140000000,1021.8],[1786140180000,1021.8],[1786140480000,1021.9],[1786140780000,1022],[1786141080000,1022.1],[1786141380000,1022],[1786141680000,1021.9],[1786141980000,1021.9],[1786142280000,1021.8],[1786142580000,1021.9],[1786142880000,1021.8],[1786143180000,1021.8],[1786143480000,1021.8],[1786143780000,1021.7],[1786144080000,1021.7],[1786144380000,1021.7],[1786144680000,1021.6],[1786144980000,1021.7],[1786145280000,1021.7],[1786145580000,1021.7],[1786145880000,1021.8],[1786146180000,1021.9],[1786146480000,1022],[1786146780000,1022.1],[1786147080000,1022],[1786147380000,1022.1],[1786147680000,1022.2],[1786147980000,1022.4],[1786148280000,1022.4],[1786148580000,1022.4],[1786148880000,1022.5],[1786149180000,1022.5],[1786149480000,1022.4],[1786149780000,1022.4],[1786150080000,1022.3],[1786150380000,1022.2],[1786150680000,1022.2],[1786150980000,1022.2],[1786151280000,1022.2],[1786151580000,1022.2],[1786151880000,1022.2],[1786152180000,1022.1],[1786152480000,1022],[1786152780000,1022],[1786153080000,1022.1],[1786153380000,1022.2],[1786153680000,1022.3],[1786153980000,1022.3],[1786154280000,1022.4],[1786154580000,1022.4],[1786154880000,1022.4],[1786155180000,1022.4],[1786155480000,1022.4],[1786155780000,1022.5],[1786156080000,1022.4],[1786156380000,1022.4],[1786156680000,1022.4],[1786156980000,1022.4],[1786157280000,1022.4],[1786157580000,1022.5],[1786157880000,1022.5],[1786158180000,1022.6],[1786158480000,1022.6],[1786158780000,1022.7],[1786159080000,1022.8],[1786159380000,1022.8],[1786159680000,1022.8],[1786159980000,1022.9],[1786160280000,1023],[1786160580000,1022.9],[1786160880000,1022.9],[1786161180000,1022.8],[1786161480000,1022.8],[1786161780000,1022.8],[1786162080000,1022.7],[1786162380000,1022.8],[1786162680000,1022.7],[1786162980000,1022.6],[1786163280000,1022.6],[1786163580000,1022.7],[1786163880000,1022.6],[1786164180000,1022.6],[1786164480000,1022.6],[1786164780000,1022.6],[1786165080000,1022.5],[1786165380000,1022.6],[1786165680000,1022.7],[1786165980000,1022.6],[1786166280000,1022.6],[1786166580000,1022.6],[1786166880000,1022.6],[1786167180000,1022.6],[1786167480000,1022.6],[1786167780000,1022.6],], 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,1.08],[1786140180000,1.224],[1786140480000,2.376],[1786140780000,1.296],[1786141080000,1.656],[1786141380000,1.512],[1786141680000,1.944],[1786141980000,1.8],[1786142280000,2.592],[1786142580000,2.664],[1786142880000,2.664],[1786143180000,2.664],[1786143480000,2.232],[1786143780000,2.088],[1786144080000,3.528],[1786144380000,2.88],[1786144680000,3.168],[1786144980000,2.592],[1786145280000,2.088],[1786145580000,1.656],[1786145880000,2.304],[1786146180000,2.736],[1786146480000,4.032],[1786146780000,2.304],[1786147080000,2.304],[1786147380000,1.728],[1786147680000,3.744],[1786147980000,2.376],[1786148280000,2.664],[1786148580000,2.376],[1786148880000,2.088],[1786149180000,2.088],[1786149480000,2.376],[1786149780000,3.888],[1786150080000,5.04],[1786150380000,4.464],[1786150680000,4.392],[1786150980000,3.168],[1786151280000,1.296],[1786151580000,1.8],[1786151880000,0.864],[1786152180000,1.656],[1786152480000,2.664],[1786152780000,2.952],[1786153080000,3.168],[1786153380000,3.456],[1786153680000,1.584],[1786153980000,2.088],[1786154280000,2.52],[1786154580000,1.656],[1786154880000,2.592],[1786155180000,2.16],[1786155480000,2.088],[1786155780000,1.584],[1786156080000,2.736],[1786156380000,3.24],[1786156680000,3.672],[1786156980000,3.456],[1786157280000,3.312],[1786157580000,1.944],[1786157880000,2.376],[1786158180000,1.872],[1786158480000,2.736],[1786158780000,1.512],[1786159080000,2.16],[1786159380000,2.952],[1786159680000,2.952],[1786159980000,3.24],[1786160280000,3.456],[1786160580000,3.024],[1786160880000,3.024],[1786161180000,3.096],[1786161480000,2.232],[1786161780000,1.656],[1786162080000,1.656],[1786162380000,2.448],[1786162680000,3.024],[1786162980000,0.576],[1786163280000,0.936],[1786163580000,1.296],[1786163880000,1.656],[1786164180000,1.152],[1786164480000,1.152],[1786164780000,2.232],[1786165080000,3.528],[1786165380000,1.224],[1786165680000,0.648],[1786165980000,0.72],[1786166280000,0.792],[1786166580000,1.368],[1786166880000,1.44],[1786167180000,1.224],[1786167480000,2.088],[1786167780000,1.98],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,1.559999988],[1786140180000,1.584],[1786140480000,3.096],[1786140780000,1.728],[1786141080000,1.872],[1786141380000,2.088],[1786141680000,2.304],[1786141980000,2.232],[1786142280000,3.24],[1786142580000,3.384],[1786142880000,3.168],[1786143180000,3.6],[1786143480000,2.952],[1786143780000,3.024],[1786144080000,4.176],[1786144380000,3.528],[1786144680000,3.888],[1786144980000,3.024],[1786145280000,2.736],[1786145580000,2.304],[1786145880000,3.096],[1786146180000,3.528],[1786146480000,4.68],[1786146780000,2.736],[1786147080000,3.096],[1786147380000,2.448],[1786147680000,4.68],[1786147980000,3.384],[1786148280000,3.24],[1786148580000,3.168],[1786148880000,2.88],[1786149180000,2.664],[1786149480000,3.24],[1786149780000,4.968],[1786150080000,6.12],[1786150380000,6.624],[1786150680000,6.192],[1786150980000,4.104],[1786151280000,2.376],[1786151580000,2.448],[1786151880000,1.368],[1786152180000,2.016],[1786152480000,3.096],[1786152780000,3.744],[1786153080000,3.888],[1786153380000,4.392],[1786153680000,2.376],[1786153980000,2.592],[1786154280000,3.168],[1786154580000,2.16],[1786154880000,3.096],[1786155180000,2.736],[1786155480000,2.808],[1786155780000,2.304],[1786156080000,3.24],[1786156380000,4.032],[1786156680000,4.536],[1786156980000,4.968],[1786157280000,4.608],[1786157580000,2.664],[1786157880000,2.88],[1786158180000,2.376],[1786158480000,3.6],[1786158780000,2.304],[1786159080000,2.592],[1786159380000,3.456],[1786159680000,3.672],[1786159980000,3.816],[1786160280000,3.96],[1786160580000,3.6],[1786160880000,3.816],[1786161180000,3.888],[1786161480000,3.096],[1786161780000,2.376],[1786162080000,2.088],[1786162380000,3.096],[1786162680000,3.816],[1786162980000,1.08],[1786163280000,1.512],[1786163580000,2.016],[1786163880000,2.16],[1786164180000,1.512],[1786164480000,1.656],[1786164780000,3.096],[1786165080000,3.96],[1786165380000,2.016],[1786165680000,0.936],[1786165980000,1.44],[1786166280000,1.008],[1786166580000,1.872],[1786166880000,1.944],[1786167180000,1.656],[1786167480000,2.52],[1786167780000,2.88],], 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,146.43333333],[1786140180000,117.18000000],[1786140480000,331.54000000],[1786140780000,93.46000000],[1786141080000,80.30000000],[1786141380000,185.86000000],[1786141680000,344.44000000],[1786141980000,104.68000000],[1786142280000,26.68000000],[1786142580000,45.82000000],[1786142880000,272.66000000],[1786143180000,71.70000000],[1786143480000,16.74000000],[1786143780000,21.62000000],[1786144080000,11.72000000],[1786144380000,82.20000000],[1786144680000,20.46000000],[1786144980000,19.30000000],[1786145280000,63.72000000],[1786145580000,50.18000000],[1786145880000,39.48000000],[1786146180000,41.10000000],[1786146480000,18.82000000],[1786146780000,42.14000000],[1786147080000,59.94000000],[1786147380000,91.92000000],[1786147680000,148.18000000],[1786147980000,75.20000000],[1786148280000,205.02000000],[1786148580000,101.38000000],[1786148880000,38.26000000],[1786149180000,68.48000000],[1786149480000,58.02000000],[1786149780000,31.16000000],[1786150080000,35.40000000],[1786150380000,42.30000000],[1786150680000,31.18000000],[1786150980000,36.12000000],[1786151280000,118.60000000],[1786151580000,344.56000000],[1786151880000,46.58000000],[1786152180000,86.02000000],[1786152480000,40.66000000],[1786152780000,89.40000000],[1786153080000,146.94000000],[1786153380000,348.64000000],[1786153680000,299.38000000],[1786153980000,159.50000000],[1786154280000,112.64000000],[1786154580000,22.80000000],[1786154880000,220.10000000],[1786155180000,37.46000000],[1786155480000,52.00000000],[1786155780000,16.54000000],[1786156080000,86.66000000],[1786156380000,21.20000000],[1786156680000,29.94000000],[1786156980000,151.46000000],[1786157280000,222.14000000],[1786157580000,276.92000000],[1786157880000,219.02000000],[1786158180000,64.12000000],[1786158480000,75.36000000],[1786158780000,77.76000000],[1786159080000,27.14000000],[1786159380000,35.62000000],[1786159680000,38.50000000],[1786159980000,33.86000000],[1786160280000,23.02000000],[1786160580000,24.18000000],[1786160880000,17.22000000],[1786161180000,30.24000000],[1786161480000,38.56000000],[1786161780000,45.90000000],[1786162080000,114.82000000],[1786162380000,88.54000000],[1786162680000,351.36000000],[1786162980000,207.86000000],[1786163280000,304.16000000],[1786163580000,173.68000000],[1786163880000,84.44000000],[1786164180000,83.76000000],[1786164480000,70.52000000],[1786164780000,34.16000000],[1786165080000,35.02000000],[1786165380000,177.28000000],[1786165680000,297.80000000],[1786165980000,85.38000000],[1786166280000,35.02000000],[1786166580000,130.02000000],[1786166880000,118.60000000],[1786167180000,86.62000000],[1786167480000,112.18000000],[1786167780000,92.25000000],], 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; }