var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,14.40000000],[1786140180000,14.40000000],[1786140480000,14.38000000],[1786140780000,14.30000000],[1786141080000,14.20000000],[1786141380000,14.20000000],[1786141680000,14.18000000],[1786141980000,14.10000000],[1786142280000,14.08000000],[1786142580000,14.00000000],[1786142880000,13.92000000],[1786143180000,13.86000000],[1786143480000,13.92000000],[1786143780000,13.94000000],[1786144080000,13.90000000],[1786144380000,13.82000000],[1786144680000,13.90000000],[1786144980000,13.86000000],[1786145280000,13.80000000],[1786145580000,13.80000000],[1786145880000,13.80000000],[1786146180000,13.80000000],[1786146480000,13.84000000],[1786146780000,13.90000000],[1786147080000,13.90000000],[1786147380000,13.90000000],[1786147680000,13.82000000],[1786147980000,13.80000000],[1786148280000,13.80000000],[1786148580000,13.80000000],[1786148880000,13.80000000],[1786149180000,13.76000000],[1786149480000,13.70000000],[1786149780000,13.70000000],[1786150080000,13.70000000],[1786150380000,13.72000000],[1786150680000,13.70000000],[1786150980000,13.64000000],[1786151280000,13.60000000],[1786151580000,13.60000000],[1786151880000,13.62000000],[1786152180000,13.60000000],[1786152480000,13.56000000],[1786152780000,13.50000000],[1786153080000,13.50000000],[1786153380000,13.40000000],[1786153680000,13.30000000],[1786153980000,13.36000000],[1786154280000,13.32000000],[1786154580000,13.26000000],[1786154880000,13.20000000],[1786155180000,13.20000000],[1786155480000,13.18000000],[1786155780000,13.08000000],[1786156080000,12.94000000],[1786156380000,12.90000000],[1786156680000,12.90000000],[1786156980000,12.82000000],[1786157280000,12.80000000],[1786157580000,12.80000000],[1786157880000,12.78000000],[1786158180000,12.70000000],[1786158480000,12.70000000],[1786158780000,12.68000000],[1786159080000,12.60000000],[1786159560000,12.60000000],[1786159860000,12.50000000],[1786159980000,12.50000000],[1786160280000,12.42000000],[1786160640000,12.38000000],[1786160880000,12.30000000],[1786161180000,12.30000000],[1786161540000,12.30000000],[1786161900000,12.36000000],[1786162080000,12.46000000],[1786162560000,12.56000000],[1786162740000,12.60000000],[1786162980000,12.70000000],[1786163460000,12.78000000],[1786163580000,12.88000000],[1786163880000,12.98000000],[1786164180000,13.08000000],[1786164480000,13.18000000],[1786164780000,13.26000000],[1786165260000,13.36000000],[1786165440000,13.46000000],[1786165680000,13.60000000],[1786165980000,13.78000000],[1786166400000,13.96000000],[1786166580000,14.08000000],[1786166940000,14.24000000],[1786167300000,14.38000000],[1786167540000,14.46000000],[1786167780000,14.56000000],[1786168080000,14.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,14.4],[1786140180000,14.4],[1786140480000,14.4],[1786140780000,14.3],[1786141080000,14.2],[1786141380000,14.2],[1786141680000,14.2],[1786141980000,14.1],[1786142280000,14.1],[1786142580000,14],[1786142880000,13.9],[1786143180000,13.9],[1786143480000,13.9],[1786143780000,13.9],[1786144080000,13.9],[1786144380000,13.8],[1786144680000,13.9],[1786144980000,13.9],[1786145280000,13.8],[1786145580000,13.8],[1786145880000,13.8],[1786146180000,13.8],[1786146480000,13.8],[1786146780000,13.9],[1786147080000,13.9],[1786147380000,13.9],[1786147680000,13.8],[1786147980000,13.8],[1786148280000,13.8],[1786148580000,13.8],[1786148880000,13.8],[1786149180000,13.8],[1786149480000,13.7],[1786149780000,13.7],[1786150080000,13.7],[1786150380000,13.7],[1786150680000,13.7],[1786150980000,13.6],[1786151280000,13.6],[1786151580000,13.6],[1786151880000,13.6],[1786152180000,13.6],[1786152480000,13.6],[1786152780000,13.5],[1786153080000,13.5],[1786153380000,13.4],[1786153680000,13.3],[1786153980000,13.4],[1786154280000,13.3],[1786154580000,13.3],[1786154880000,13.2],[1786155180000,13.2],[1786155480000,13.2],[1786155780000,13.1],[1786156080000,12.9],[1786156380000,12.9],[1786156680000,12.9],[1786156980000,12.8],[1786157280000,12.8],[1786157580000,12.8],[1786157880000,12.8],[1786158180000,12.7],[1786158480000,12.7],[1786158780000,12.7],[1786159080000,12.6],[1786159560000,12.6],[1786159860000,12.5],[1786159980000,12.5],[1786160280000,12.4],[1786160640000,12.4],[1786160880000,12.3],[1786161180000,12.3],[1786161540000,12.3],[1786161900000,12.4],[1786162080000,12.5],[1786162560000,12.6],[1786162740000,12.6],[1786162980000,12.7],[1786163460000,12.8],[1786163580000,12.9],[1786163880000,13],[1786164180000,13.1],[1786164480000,13.2],[1786164780000,13.3],[1786165260000,13.4],[1786165440000,13.5],[1786165680000,13.6],[1786165980000,13.8],[1786166400000,14],[1786166580000,14.1],[1786166940000,14.2],[1786167300000,14.4],[1786167540000,14.5],[1786167780000,14.6],[1786168080000,14.6],], 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.70000000],[1786140180000,13.92000000],[1786140480000,13.56000000],[1786140780000,13.46000000],[1786141080000,13.34000000],[1786141380000,13.78000000],[1786141680000,13.96000000],[1786141980000,13.84000000],[1786142280000,13.78000000],[1786142580000,13.62000000],[1786142880000,13.44000000],[1786143180000,13.14000000],[1786143480000,13.42000000],[1786143780000,13.66000000],[1786144080000,13.54000000],[1786144380000,13.48000000],[1786144680000,12.94000000],[1786144980000,13.02000000],[1786145280000,13.08000000],[1786145580000,12.94000000],[1786145880000,12.90000000],[1786146180000,12.62000000],[1786146480000,12.98000000],[1786146780000,13.04000000],[1786147080000,13.08000000],[1786147380000,13.34000000],[1786147680000,13.36000000],[1786147980000,13.06000000],[1786148280000,13.08000000],[1786148580000,13.20000000],[1786148880000,13.30000000],[1786149180000,13.14000000],[1786149480000,13.14000000],[1786149780000,13.02000000],[1786150080000,12.68000000],[1786150380000,12.90000000],[1786150680000,13.26000000],[1786150980000,13.32000000],[1786151280000,12.96000000],[1786151580000,13.00000000],[1786151880000,13.08000000],[1786152180000,13.18000000],[1786152480000,13.04000000],[1786152780000,12.98000000],[1786153080000,12.32000000],[1786153380000,11.96000000],[1786153680000,11.92000000],[1786153980000,12.30000000],[1786154280000,12.82000000],[1786154580000,12.82000000],[1786154880000,12.84000000],[1786155180000,12.42000000],[1786155480000,12.06000000],[1786155780000,12.34000000],[1786156080000,11.94000000],[1786156380000,12.48000000],[1786156680000,12.62000000],[1786156980000,12.28000000],[1786157280000,11.72000000],[1786157580000,11.94000000],[1786157880000,12.34000000],[1786158180000,12.26000000],[1786158480000,11.64000000],[1786158780000,11.06000000],[1786159080000,11.22000000],[1786159380000,11.86000000],[1786159680000,11.78000000],[1786159980000,11.80000000],[1786160280000,11.80000000],[1786160580000,11.30000000],[1786160880000,10.84000000],[1786161180000,11.28000000],[1786161480000,11.70000000],[1786161780000,11.50000000],[1786162080000,11.90000000],[1786162380000,12.20000000],[1786162680000,12.30000000],[1786162980000,12.56000000],[1786163280000,12.72000000],[1786163580000,12.90000000],[1786163880000,13.26000000],[1786164180000,13.72000000],[1786164480000,13.68000000],[1786164780000,13.76000000],[1786165080000,13.98000000],[1786165380000,14.48000000],[1786165680000,14.48000000],[1786165980000,14.88000000],[1786166280000,15.14000000],[1786166580000,15.50000000],[1786166880000,16.00000000],[1786167180000,16.42000000],[1786167480000,16.56000000],[1786167780000,16.40000000],[1786168080000,16.30000000],], 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],[1786159560000,100.00000000],[1786159860000,100.00000000],[1786159980000,100.00000000],[1786160280000,100.00000000],[1786160640000,100.00000000],[1786160880000,100.00000000],[1786161180000,100.00000000],[1786161540000,100.00000000],[1786161900000,100.00000000],[1786162080000,100.00000000],[1786162560000,100.00000000],[1786162740000,100.00000000],[1786162980000,100.00000000],[1786163460000,100.00000000],[1786163580000,100.00000000],[1786163880000,100.00000000],[1786164180000,100.00000000],[1786164480000,100.00000000],[1786164780000,100.00000000],[1786165260000,100.00000000],[1786165440000,100.00000000],[1786165680000,100.00000000],[1786165980000,100.00000000],[1786166400000,100.00000000],[1786166580000,100.00000000],[1786166940000,100.00000000],[1786167300000,100.00000000],[1786167540000,100.00000000],[1786167780000,100.00000000],[1786168080000,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,963.1],[1786140180000,963.1],[1786140480000,963.1],[1786140780000,963.1],[1786141080000,963.2],[1786141380000,963.1],[1786141680000,963.1],[1786141980000,963.1],[1786142280000,963.1],[1786142580000,963],[1786142880000,963],[1786143180000,962.9],[1786143480000,962.9],[1786143780000,963],[1786144080000,963],[1786144380000,963.1],[1786144680000,963.2],[1786144980000,963.2],[1786145280000,963.3],[1786145580000,963.1],[1786145880000,963.1],[1786146180000,963.1],[1786146480000,963.2],[1786146780000,963.3],[1786147080000,963.3],[1786147380000,963.3],[1786147680000,963.3],[1786147980000,963.3],[1786148280000,963.3],[1786148580000,963.2],[1786148880000,963.2],[1786149180000,963.2],[1786149480000,963.2],[1786149780000,963.1],[1786150080000,963.2],[1786150380000,963.3],[1786150680000,963.4],[1786150980000,963.4],[1786151280000,963.4],[1786151580000,963.4],[1786151880000,963.4],[1786152180000,963.4],[1786152480000,963.4],[1786152780000,963.3],[1786153080000,963.4],[1786153380000,963.3],[1786153680000,963.3],[1786153980000,963.4],[1786154280000,963.4],[1786154580000,963.4],[1786154880000,963.4],[1786155180000,963.4],[1786155480000,963.4],[1786155780000,963.4],[1786156080000,963.3],[1786156380000,963.4],[1786156680000,963.5],[1786156980000,963.5],[1786157280000,963.4],[1786157580000,963.5],[1786157880000,963.5],[1786158180000,963.5],[1786158480000,963.5],[1786158780000,963.6],[1786159080000,963.6],[1786159560000,963.7],[1786159860000,963.7],[1786159980000,963.7],[1786160280000,963.8],[1786160640000,963.9],[1786160880000,964],[1786161180000,964],[1786161540000,964],[1786161900000,964],[1786162080000,964],[1786162560000,964],[1786162740000,964],[1786162980000,964],[1786163460000,964],[1786163580000,964.1],[1786163880000,964.2],[1786164180000,964.3],[1786164480000,964.3],[1786164780000,964.3],[1786165260000,964.3],[1786165440000,964.5],[1786165680000,964.5],[1786165980000,964.5],[1786166400000,964.6],[1786166580000,964.6],[1786166940000,964.6],[1786167300000,964.6],[1786167540000,964.7],[1786167780000,964.7],[1786168080000,964.7],], 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.120000012],[1786140180000,2.52],[1786140480000,2.592],[1786140780000,2.808],[1786141080000,2.664],[1786141380000,1.584],[1786141680000,0.792],[1786141980000,1.08],[1786142280000,1.008],[1786142580000,1.152],[1786142880000,2.16],[1786143180000,2.52],[1786143480000,2.808],[1786143780000,1.728],[1786144080000,1.656],[1786144380000,2.376],[1786144680000,4.392],[1786144980000,4.752],[1786145280000,3.024],[1786145580000,1.944],[1786145880000,1.872],[1786146180000,2.808],[1786146480000,3.24],[1786146780000,3.096],[1786147080000,2.376],[1786147380000,1.512],[1786147680000,2.52],[1786147980000,4.032],[1786148280000,2.736],[1786148580000,1.296],[1786148880000,1.872],[1786149180000,2.448],[1786149480000,1.44],[1786149780000,2.448],[1786150080000,3.528],[1786150380000,4.032],[1786150680000,1.512],[1786150980000,1.872],[1786151280000,2.52],[1786151580000,2.592],[1786151880000,3.24],[1786152180000,1.944],[1786152480000,3.024],[1786152780000,2.664],[1786153080000,1.512],[1786153380000,1.872],[1786153680000,3.312],[1786153980000,3.744],[1786154280000,2.232],[1786154580000,1.44],[1786154880000,1.368],[1786155180000,2.448],[1786155480000,1.944],[1786155780000,1.224],[1786156080000,2.16],[1786156380000,1.8],[1786156680000,2.016],[1786156980000,3.096],[1786157280000,1.944],[1786157580000,1.44],[1786157880000,0.792],[1786158180000,1.872],[1786158480000,1.944],[1786158780000,1.8],[1786159080000,1.368],[1786159380000,1.584],[1786159680000,2.304],[1786159980000,1.08],[1786160280000,1.584],[1786160580000,2.664],[1786160880000,3.24],[1786161180000,1.8],[1786161480000,1.584],[1786161780000,3.096],[1786162080000,1.728],[1786162380000,1.728],[1786162680000,1.296],[1786162980000,1.08],[1786163280000,1.872],[1786163580000,1.656],[1786163880000,1.08],[1786164180000,0.864],[1786164480000,1.08],[1786164780000,0.864],[1786165080000,1.08],[1786165380000,0.864],[1786165680000,0.936],[1786165980000,0.648],[1786166280000,0.864],[1786166580000,1.584],[1786166880000,1.512],[1786167180000,2.736],[1786167480000,2.448],[1786167780000,1.368],[1786168080000,2.88],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,3.96],[1786140180000,3.384],[1786140480000,3.456],[1786140780000,3.816],[1786141080000,3.888],[1786141380000,2.376],[1786141680000,1.152],[1786141980000,1.8],[1786142280000,1.944],[1786142580000,1.728],[1786142880000,3.384],[1786143180000,4.176],[1786143480000,3.888],[1786143780000,2.736],[1786144080000,2.664],[1786144380000,3.24],[1786144680000,5.544],[1786144980000,6.192],[1786145280000,4.104],[1786145580000,2.592],[1786145880000,2.448],[1786146180000,3.6],[1786146480000,4.248],[1786146780000,4.248],[1786147080000,3.744],[1786147380000,2.808],[1786147680000,3.744],[1786147980000,4.68],[1786148280000,3.744],[1786148580000,1.872],[1786148880000,2.952],[1786149180000,3.6],[1786149480000,2.376],[1786149780000,3.168],[1786150080000,4.896],[1786150380000,5.688],[1786150680000,2.592],[1786150980000,2.52],[1786151280000,3.528],[1786151580000,3.6],[1786151880000,4.32],[1786152180000,2.808],[1786152480000,3.744],[1786152780000,3.024],[1786153080000,2.232],[1786153380000,2.592],[1786153680000,4.608],[1786153980000,4.752],[1786154280000,3.24],[1786154580000,2.16],[1786154880000,2.16],[1786155180000,3.312],[1786155480000,2.304],[1786155780000,1.728],[1786156080000,2.808],[1786156380000,2.664],[1786156680000,3.312],[1786156980000,3.888],[1786157280000,3.528],[1786157580000,2.16],[1786157880000,1.224],[1786158180000,2.232],[1786158480000,2.376],[1786158780000,2.232],[1786159080000,1.944],[1786159380000,2.16],[1786159680000,3.024],[1786159980000,1.656],[1786160280000,2.16],[1786160580000,3.6],[1786160880000,4.104],[1786161180000,2.448],[1786161480000,2.088],[1786161780000,3.816],[1786162080000,2.376],[1786162380000,2.448],[1786162680000,2.088],[1786162980000,1.44],[1786163280000,2.376],[1786163580000,2.52],[1786163880000,1.656],[1786164180000,1.44],[1786164480000,1.8],[1786164780000,1.512],[1786165080000,1.728],[1786165380000,1.224],[1786165680000,1.368],[1786165980000,1.08],[1786166280000,1.296],[1786166580000,2.232],[1786166880000,2.232],[1786167180000,4.032],[1786167480000,3.816],[1786167780000,2.304],[1786168080000,3.96],], 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,235.10000000],[1786140180000,256.26000000],[1786140480000,255.92000000],[1786140780000,216.54000000],[1786141080000,188.42000000],[1786141380000,228.82000000],[1786141680000,234.66000000],[1786141980000,280.20000000],[1786142280000,269.10000000],[1786142580000,222.32000000],[1786142880000,194.00000000],[1786143180000,215.52000000],[1786143480000,230.56000000],[1786143780000,225.60000000],[1786144080000,239.28000000],[1786144380000,232.24000000],[1786144680000,230.94000000],[1786144980000,239.44000000],[1786145280000,230.30000000],[1786145580000,220.56000000],[1786145880000,216.52000000],[1786146180000,227.86000000],[1786146480000,239.84000000],[1786146780000,228.22000000],[1786147080000,260.76000000],[1786147380000,214.84000000],[1786147680000,243.72000000],[1786147980000,222.40000000],[1786148280000,235.32000000],[1786148580000,225.02000000],[1786148880000,246.28000000],[1786149180000,259.06000000],[1786149480000,250.24000000],[1786149780000,206.74000000],[1786150080000,221.96000000],[1786150380000,244.54000000],[1786150680000,279.14000000],[1786150980000,243.24000000],[1786151280000,194.72000000],[1786151580000,188.80000000],[1786151880000,227.92000000],[1786152180000,290.30000000],[1786152480000,332.96000000],[1786152780000,274.10000000],[1786153080000,160.14000000],[1786153380000,198.62000000],[1786153680000,201.84000000],[1786153980000,229.60000000],[1786154280000,232.14000000],[1786154580000,283.10000000],[1786154880000,287.00000000],[1786155180000,235.62000000],[1786155480000,195.32000000],[1786155780000,186.04000000],[1786156080000,195.86000000],[1786156380000,237.26000000],[1786156680000,280.90000000],[1786156980000,221.50000000],[1786157280000,178.78000000],[1786157580000,210.88000000],[1786157880000,221.54000000],[1786158180000,346.96000000],[1786158480000,322.20000000],[1786158780000,262.68000000],[1786159080000,235.46000000],[1786159380000,249.06000000],[1786159680000,258.18000000],[1786159980000,260.74000000],[1786160280000,247.52000000],[1786160580000,244.06000000],[1786160880000,236.28000000],[1786161180000,258.80000000],[1786161480000,210.72000000],[1786161780000,227.34000000],[1786162080000,239.60000000],[1786162380000,269.64000000],[1786162680000,308.28000000],[1786162980000,23.32000000],[1786163280000,344.92000000],[1786163580000,302.32000000],[1786163880000,185.14000000],[1786164180000,187.32000000],[1786164480000,275.52000000],[1786164780000,272.58000000],[1786165080000,210.30000000],[1786165380000,159.10000000],[1786165680000,153.84000000],[1786165980000,124.92000000],[1786166280000,237.34000000],[1786166580000,166.88000000],[1786166880000,231.40000000],[1786167180000,252.52000000],[1786167480000,267.18000000],[1786167780000,170.24000000],[1786168080000,105.10000000],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[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],[1786155240000,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],[1786159560000,0],[1786159860000,0],[1786159980000,0],[1786160280000,0],[1786160640000,0],[1786160880000,0],[1786161180000,0],[1786161540000,0],[1786161900000,0],[1786162080000,0],[1786162560000,0],[1786162740000,0],[1786162980000,0],[1786163460000,0],[1786163580000,0],[1786163880000,0],[1786164180000,0],[1786164480000,0],[1786164780000,0],[1786165260000,0],[1786165440000,0],[1786165680000,0],[1786165980000,0],[1786166400000,0],[1786166580000,0],[1786166940000,0],[1786167300000,0],[1786167540000,0],[1786167780000,0],[1786168080000,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; }