var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,20.20000000],[1786140180000,20.20000000],[1786140480000,20.18000000],[1786140780000,20.10000000],[1786141080000,20.14000000],[1786141380000,20.12000000],[1786141680000,20.10000000],[1786141980000,20.10000000],[1786142280000,20.10000000],[1786142580000,20.14000000],[1786142880000,20.20000000],[1786143180000,20.20000000],[1786143480000,20.20000000],[1786143780000,20.20000000],[1786144080000,20.10000000],[1786144380000,20.06000000],[1786144680000,20.00000000],[1786144980000,20.00000000],[1786145280000,20.02000000],[1786145580000,20.10000000],[1786145880000,20.10000000],[1786146180000,20.10000000],[1786146480000,20.04000000],[1786146780000,20.04000000],[1786147080000,20.04000000],[1786147380000,20.08000000],[1786147680000,20.00000000],[1786147980000,20.00000000],[1786148280000,20.00000000],[1786148580000,19.92000000],[1786148880000,19.90000000],[1786149180000,19.90000000],[1786149480000,19.90000000],[1786149780000,19.84000000],[1786150080000,19.80000000],[1786150380000,19.80000000],[1786150680000,19.70000000],[1786150980000,19.70000000],[1786151280000,19.70000000],[1786151580000,19.70000000],[1786151880000,19.60000000],[1786152180000,19.60000000],[1786152480000,19.60000000],[1786152780000,19.60000000],[1786153080000,19.60000000],[1786153380000,19.52000000],[1786153680000,19.50000000],[1786153980000,19.50000000],[1786154280000,19.50000000],[1786154580000,19.50000000],[1786154880000,19.50000000],[1786155180000,19.48000000],[1786155480000,19.40000000],[1786155780000,19.40000000],[1786156080000,19.46000000],[1786156380000,19.40000000],[1786156680000,19.40000000],[1786156980000,19.40000000],[1786157280000,19.34000000],[1786157580000,19.40000000],[1786157880000,19.40000000],[1786158180000,19.40000000],[1786158480000,19.30000000],[1786158780000,19.32000000],[1786159080000,19.30000000],[1786159380000,19.30000000],[1786159680000,19.30000000],[1786159980000,19.30000000],[1786160280000,19.30000000],[1786160580000,19.30000000],[1786160880000,19.30000000],[1786161180000,19.22000000],[1786161480000,19.22000000],[1786161780000,19.30000000],[1786162080000,19.30000000],[1786162380000,19.30000000],[1786162680000,19.30000000],[1786162980000,19.28000000],[1786163280000,19.30000000],[1786163580000,19.30000000],[1786163880000,19.30000000],[1786164180000,19.36000000],[1786164480000,19.40000000],[1786164780000,19.40000000],[1786165080000,19.40000000],[1786165380000,19.50000000],[1786165680000,19.60000000],[1786165980000,19.60000000],[1786166280000,19.64000000],[1786166580000,20.00000000],[1786166880000,20.44000000],[1786167180000,20.78000000],[1786167480000,21.02000000],[1786167780000,21.24000000],[1786168080000,21.36666667],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,11.8],[1786140180000,11.9],[1786140480000,11.9],[1786140780000,11.9],[1786141080000,11.9],[1786141380000,11.9],[1786141680000,11.8],[1786141980000,11.7],[1786142280000,11.6],[1786142580000,11.6],[1786142880000,11.6],[1786143180000,11.6],[1786143480000,11.6],[1786143780000,11.6],[1786144080000,11.5],[1786144380000,11.6],[1786144680000,11.5],[1786144980000,11.5],[1786145280000,11.5],[1786145580000,11.5],[1786145880000,11.5],[1786146180000,11.5],[1786146480000,11.5],[1786146780000,11.4],[1786147080000,11.4],[1786147380000,11.4],[1786147680000,11.4],[1786147980000,11.5],[1786148280000,11.5],[1786148580000,11.5],[1786148880000,11.5],[1786149180000,11.5],[1786149480000,11.5],[1786149780000,11.5],[1786150080000,11.4],[1786150380000,11.5],[1786150680000,11.4],[1786150980000,11.4],[1786151280000,11.5],[1786151580000,11.5],[1786151880000,11.5],[1786152180000,11.5],[1786152480000,11.6],[1786152780000,11.7],[1786153080000,11.8],[1786153380000,11.8],[1786153680000,11.8],[1786153980000,11.9],[1786154280000,11.9],[1786154580000,12],[1786154880000,12],[1786155180000,12],[1786155480000,11.9],[1786155780000,11.9],[1786156080000,12],[1786156380000,12],[1786156680000,12],[1786156980000,12.1],[1786157280000,12],[1786157580000,12],[1786157880000,12.1],[1786158180000,12.1],[1786158480000,12.1],[1786158780000,12.1],[1786159080000,12],[1786159380000,11.9],[1786159680000,11.9],[1786159980000,12],[1786160280000,12.1],[1786160580000,12.1],[1786160880000,12.2],[1786161180000,12.1],[1786161480000,12],[1786161780000,12],[1786162080000,11.9],[1786162380000,11.9],[1786162680000,11.8],[1786162980000,11.8],[1786163280000,11.7],[1786163580000,11.6],[1786163880000,11.5],[1786164180000,11.5],[1786164480000,11.4],[1786164780000,11.5],[1786165080000,11.5],[1786165380000,11.6],[1786165680000,11.5],[1786165980000,11.5],[1786166280000,11.6],[1786166580000,11.7],[1786166880000,11.7],[1786167180000,11.7],[1786167480000,11.8],[1786167780000,11.7],[1786168080000,11.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,18.76666667],[1786140180000,18.78000000],[1786140480000,18.66000000],[1786140780000,18.68000000],[1786141080000,18.72000000],[1786141380000,18.72000000],[1786141680000,18.76000000],[1786141980000,18.86000000],[1786142280000,18.92000000],[1786142580000,19.04000000],[1786142880000,19.14000000],[1786143180000,19.16000000],[1786143480000,19.24000000],[1786143780000,19.12000000],[1786144080000,19.08000000],[1786144380000,19.02000000],[1786144680000,19.02000000],[1786144980000,19.04000000],[1786145280000,19.10000000],[1786145580000,19.22000000],[1786145880000,19.18000000],[1786146180000,19.22000000],[1786146480000,19.20000000],[1786146780000,19.26000000],[1786147080000,19.28000000],[1786147380000,19.28000000],[1786147680000,19.24000000],[1786147980000,19.24000000],[1786148280000,19.12000000],[1786148580000,19.12000000],[1786148880000,19.06000000],[1786149180000,19.00000000],[1786149480000,19.02000000],[1786149780000,18.92000000],[1786150080000,18.92000000],[1786150380000,18.90000000],[1786150680000,18.88000000],[1786150980000,18.90000000],[1786151280000,18.82000000],[1786151580000,18.84000000],[1786151880000,18.82000000],[1786152180000,18.86000000],[1786152480000,18.86000000],[1786152780000,18.94000000],[1786153080000,18.88000000],[1786153380000,18.76000000],[1786153680000,18.76000000],[1786153980000,18.90000000],[1786154280000,18.92000000],[1786154580000,18.90000000],[1786154880000,18.90000000],[1786155180000,18.88000000],[1786155480000,18.84000000],[1786155780000,18.90000000],[1786156080000,18.94000000],[1786156380000,18.90000000],[1786156680000,18.84000000],[1786156980000,18.82000000],[1786157280000,18.80000000],[1786157580000,18.82000000],[1786157880000,18.88000000],[1786158180000,18.90000000],[1786158480000,18.86000000],[1786158780000,18.90000000],[1786159080000,18.90000000],[1786159380000,18.90000000],[1786159680000,18.90000000],[1786159980000,18.94000000],[1786160280000,18.92000000],[1786160580000,18.94000000],[1786160880000,18.90000000],[1786161180000,18.90000000],[1786161480000,18.94000000],[1786161780000,18.96000000],[1786162080000,18.96000000],[1786162380000,18.94000000],[1786162680000,18.90000000],[1786162980000,18.90000000],[1786163280000,18.90000000],[1786163580000,18.98000000],[1786163880000,19.00000000],[1786164180000,19.10000000],[1786164480000,19.16000000],[1786164780000,19.26000000],[1786165080000,19.38000000],[1786165380000,19.60000000],[1786165680000,19.70000000],[1786165980000,19.62000000],[1786166280000,19.74000000],[1786166580000,19.94000000],[1786166880000,20.26000000],[1786167180000,20.36000000],[1786167480000,20.40000000],[1786167780000,20.82000000],[1786168080000,21.20000000],], 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,58.80000000],[1786140180000,58.98000000],[1786140480000,59.20000000],[1786140780000,59.40000000],[1786141080000,59.16000000],[1786141380000,59.20000000],[1786141680000,58.88000000],[1786141980000,58.64000000],[1786142280000,58.40000000],[1786142580000,58.10000000],[1786142880000,57.90000000],[1786143180000,57.90000000],[1786143480000,57.74000000],[1786143780000,57.86000000],[1786144080000,58.00000000],[1786144380000,58.28000000],[1786144680000,58.36000000],[1786144980000,58.20000000],[1786145280000,58.06000000],[1786145580000,57.74000000],[1786145880000,57.70000000],[1786146180000,57.74000000],[1786146480000,57.94000000],[1786146780000,57.88000000],[1786147080000,57.88000000],[1786147380000,57.68000000],[1786147680000,58.02000000],[1786147980000,58.26000000],[1786148280000,58.26000000],[1786148580000,58.38000000],[1786148880000,58.52000000],[1786149180000,58.48000000],[1786149480000,58.68000000],[1786149780000,58.76000000],[1786150080000,58.74000000],[1786150380000,58.80000000],[1786150680000,58.92000000],[1786150980000,59.08000000],[1786151280000,59.24000000],[1786151580000,59.44000000],[1786151880000,59.72000000],[1786152180000,59.78000000],[1786152480000,60.08000000],[1786152780000,60.36000000],[1786153080000,60.76000000],[1786153380000,61.12000000],[1786153680000,61.44000000],[1786153980000,61.56000000],[1786154280000,61.62000000],[1786154580000,61.86000000],[1786154880000,62.06000000],[1786155180000,62.04000000],[1786155480000,62.08000000],[1786155780000,62.18000000],[1786156080000,62.20000000],[1786156380000,62.40000000],[1786156680000,62.64000000],[1786156980000,62.72000000],[1786157280000,62.70000000],[1786157580000,62.62000000],[1786157880000,62.68000000],[1786158180000,62.80000000],[1786158480000,63.10000000],[1786158780000,63.14000000],[1786159080000,62.90000000],[1786159380000,62.52000000],[1786159680000,62.36000000],[1786159980000,62.68000000],[1786160280000,63.10000000],[1786160580000,63.38000000],[1786160880000,63.50000000],[1786161180000,63.42000000],[1786161480000,63.12000000],[1786161780000,62.88000000],[1786162080000,62.54000000],[1786162380000,62.38000000],[1786162680000,62.16000000],[1786162980000,61.96000000],[1786163280000,61.74000000],[1786163580000,61.22000000],[1786163880000,60.86000000],[1786164180000,60.52000000],[1786164480000,60.20000000],[1786164780000,60.42000000],[1786165080000,60.48000000],[1786165380000,60.30000000],[1786165680000,59.64000000],[1786165980000,59.54000000],[1786166280000,59.78000000],[1786166580000,58.86000000],[1786166880000,57.48000000],[1786167180000,56.26000000],[1786167480000,55.82000000],[1786167780000,54.56000000],[1786168080000,54.50000000],], 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,1018.8],[1786140180000,1018.8],[1786140480000,1018.8],[1786140780000,1018.8],[1786141080000,1018.8],[1786141380000,1018.9],[1786141680000,1018.9],[1786141980000,1018.9],[1786142280000,1018.8],[1786142580000,1018.7],[1786142880000,1018.7],[1786143180000,1018.7],[1786143480000,1018.8],[1786143780000,1019.1],[1786144080000,1019.1],[1786144380000,1019],[1786144680000,1019.1],[1786144980000,1019.1],[1786145280000,1019],[1786145580000,1019.1],[1786145880000,1019.1],[1786146180000,1019],[1786146480000,1019.1],[1786146780000,1019.1],[1786147080000,1019.1],[1786147380000,1019.1],[1786147680000,1019.1],[1786147980000,1019.2],[1786148280000,1019.2],[1786148580000,1019.3],[1786148880000,1019.3],[1786149180000,1019.3],[1786149480000,1019.3],[1786149780000,1019.3],[1786150080000,1019.2],[1786150380000,1019.2],[1786150680000,1019.2],[1786150980000,1019.2],[1786151280000,1019.2],[1786151580000,1019.2],[1786151880000,1019.2],[1786152180000,1019.2],[1786152480000,1019.1],[1786152780000,1019],[1786153080000,1019.1],[1786153380000,1019.2],[1786153680000,1019.2],[1786153980000,1019.1],[1786154280000,1019.2],[1786154580000,1019.2],[1786154880000,1019.2],[1786155180000,1019.2],[1786155480000,1019.3],[1786155780000,1019.3],[1786156080000,1019.4],[1786156380000,1019.4],[1786156680000,1019.4],[1786156980000,1019.4],[1786157280000,1019.5],[1786157580000,1019.5],[1786157880000,1019.6],[1786158180000,1019.7],[1786158480000,1019.8],[1786158780000,1019.7],[1786159080000,1019.8],[1786159380000,1019.8],[1786159680000,1019.8],[1786159980000,1019.8],[1786160280000,1019.9],[1786160580000,1020],[1786160880000,1020],[1786161180000,1020],[1786161480000,1020.1],[1786161780000,1020.1],[1786162080000,1020.1],[1786162380000,1020.1],[1786162680000,1020.1],[1786162980000,1020.1],[1786163280000,1020.1],[1786163580000,1020.2],[1786163880000,1020.2],[1786164180000,1020.3],[1786164480000,1020.3],[1786164780000,1020.4],[1786165080000,1020.5],[1786165380000,1020.5],[1786165680000,1020.5],[1786165980000,1020.5],[1786166280000,1020.4],[1786166580000,1020.4],[1786166880000,1020.5],[1786167180000,1020.4],[1786167480000,1020.4],[1786167780000,1020.4],[1786168080000,1020.4],], 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,17.759999988],[1786140180000,17.568],[1786140480000,16.344],[1786140780000,19.512],[1786141080000,19.296],[1786141380000,17.136],[1786141680000,18.504],[1786141980000,20.952],[1786142280000,19.44],[1786142580000,20.592],[1786142880000,21.96],[1786143180000,21.96],[1786143480000,18.288],[1786143780000,19.656],[1786144080000,21.096],[1786144380000,19.296],[1786144680000,19.512],[1786144980000,20.952],[1786145280000,21.384],[1786145580000,20.376],[1786145880000,21.024],[1786146180000,21.312],[1786146480000,20.664],[1786146780000,19.8],[1786147080000,22.896],[1786147380000,20.664],[1786147680000,22.248],[1786147980000,23.76],[1786148280000,22.968],[1786148580000,23.832],[1786148880000,20.952],[1786149180000,19.224],[1786149480000,20.88],[1786149780000,21.96],[1786150080000,22.824],[1786150380000,20.448],[1786150680000,23.112],[1786150980000,21.024],[1786151280000,22.464],[1786151580000,21.744],[1786151880000,22.104],[1786152180000,22.968],[1786152480000,21.528],[1786152780000,24.48],[1786153080000,23.112],[1786153380000,21.024],[1786153680000,22.32],[1786153980000,23.04],[1786154280000,22.248],[1786154580000,23.904],[1786154880000,23.256],[1786155180000,23.04],[1786155480000,22.536],[1786155780000,22.392],[1786156080000,20.808],[1786156380000,21.024],[1786156680000,20.088],[1786156980000,20.952],[1786157280000,21.6],[1786157580000,20.304],[1786157880000,21.672],[1786158180000,21.312],[1786158480000,21.744],[1786158780000,22.824],[1786159080000,23.04],[1786159380000,22.752],[1786159680000,24.264],[1786159980000,22.464],[1786160280000,25.488],[1786160580000,22.464],[1786160880000,22.464],[1786161180000,22.536],[1786161480000,24.552],[1786161780000,21.384],[1786162080000,21.24],[1786162380000,20.52],[1786162680000,20.16],[1786162980000,20.88],[1786163280000,20.232],[1786163580000,19.728],[1786163880000,21.456],[1786164180000,21.384],[1786164480000,18.432],[1786164780000,18.072],[1786165080000,17.856],[1786165380000,15.048],[1786165680000,15.624],[1786165980000,15.264],[1786166280000,15.408],[1786166580000,11.808],[1786166880000,10.008],[1786167180000,11.952],[1786167480000,9.576],[1786167780000,8.928],[1786168080000,9.839999988],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,21.719999988],[1786140180000,21.528],[1786140480000,19.512],[1786140780000,22.032],[1786141080000,22.608],[1786141380000,21.096],[1786141680000,22.248],[1786141980000,23.976],[1786142280000,23.904],[1786142580000,24.552],[1786142880000,27.216],[1786143180000,26.784],[1786143480000,23.904],[1786143780000,24.552],[1786144080000,25.128],[1786144380000,24.264],[1786144680000,23.976],[1786144980000,25.272],[1786145280000,27.072],[1786145580000,24.984],[1786145880000,25.632],[1786146180000,26.496],[1786146480000,24.84],[1786146780000,24.48],[1786147080000,28.296],[1786147380000,26.424],[1786147680000,26.424],[1786147980000,30.024],[1786148280000,27.792],[1786148580000,28.944],[1786148880000,26.208],[1786149180000,24.984],[1786149480000,26.496],[1786149780000,27.432],[1786150080000,29.232],[1786150380000,25.488],[1786150680000,28.8],[1786150980000,28.728],[1786151280000,27.576],[1786151580000,27.216],[1786151880000,27.648],[1786152180000,29.52],[1786152480000,26.496],[1786152780000,32.04],[1786153080000,28.152],[1786153380000,26.28],[1786153680000,27.36],[1786153980000,29.16],[1786154280000,27.648],[1786154580000,28.512],[1786154880000,29.304],[1786155180000,28.944],[1786155480000,29.16],[1786155780000,28.656],[1786156080000,27.504],[1786156380000,25.704],[1786156680000,26.136],[1786156980000,26.784],[1786157280000,25.488],[1786157580000,25.2],[1786157880000,27.288],[1786158180000,26.352],[1786158480000,27.576],[1786158780000,29.232],[1786159080000,28.44],[1786159380000,29.88],[1786159680000,30.816],[1786159980000,29.808],[1786160280000,30.528],[1786160580000,27.072],[1786160880000,28.728],[1786161180000,28.512],[1786161480000,29.52],[1786161780000,26.928],[1786162080000,27],[1786162380000,25.56],[1786162680000,24.984],[1786162980000,25.848],[1786163280000,25.56],[1786163580000,26.136],[1786163880000,25.416],[1786164180000,24.84],[1786164480000,22.464],[1786164780000,22.032],[1786165080000,21.672],[1786165380000,18.792],[1786165680000,19.8],[1786165980000,19.296],[1786166280000,19.08],[1786166580000,15.768],[1786166880000,13.536],[1786167180000,15.192],[1786167480000,13.032],[1786167780000,12.96],[1786168080000,13.200000012],], 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,27.96666667],[1786140180000,25.20000000],[1786140480000,24.54000000],[1786140780000,19.28000000],[1786141080000,17.18000000],[1786141380000,24.82000000],[1786141680000,20.54000000],[1786141980000,17.60000000],[1786142280000,24.78000000],[1786142580000,26.22000000],[1786142880000,28.14000000],[1786143180000,29.64000000],[1786143480000,26.40000000],[1786143780000,17.88000000],[1786144080000,21.90000000],[1786144380000,23.98000000],[1786144680000,18.50000000],[1786144980000,22.60000000],[1786145280000,23.16000000],[1786145580000,22.70000000],[1786145880000,22.34000000],[1786146180000,22.88000000],[1786146480000,22.84000000],[1786146780000,21.70000000],[1786147080000,23.90000000],[1786147380000,24.14000000],[1786147680000,24.88000000],[1786147980000,25.72000000],[1786148280000,23.94000000],[1786148580000,25.96000000],[1786148880000,24.68000000],[1786149180000,25.66000000],[1786149480000,24.74000000],[1786149780000,25.22000000],[1786150080000,24.06000000],[1786150380000,26.26000000],[1786150680000,27.14000000],[1786150980000,27.50000000],[1786151280000,23.54000000],[1786151580000,27.28000000],[1786151880000,22.78000000],[1786152180000,23.82000000],[1786152480000,27.24000000],[1786152780000,26.74000000],[1786153080000,26.14000000],[1786153380000,23.74000000],[1786153680000,26.28000000],[1786153980000,25.26000000],[1786154280000,24.00000000],[1786154580000,25.36000000],[1786154880000,26.60000000],[1786155180000,27.72000000],[1786155480000,27.16000000],[1786155780000,25.06000000],[1786156080000,25.08000000],[1786156380000,23.78000000],[1786156680000,23.22000000],[1786156980000,21.22000000],[1786157280000,21.92000000],[1786157580000,22.02000000],[1786157880000,24.30000000],[1786158180000,21.92000000],[1786158480000,22.92000000],[1786158780000,28.50000000],[1786159080000,25.14000000],[1786159380000,25.70000000],[1786159680000,25.00000000],[1786159980000,28.32000000],[1786160280000,25.98000000],[1786160580000,27.04000000],[1786160880000,26.82000000],[1786161180000,27.22000000],[1786161480000,29.72000000],[1786161780000,26.90000000],[1786162080000,25.84000000],[1786162380000,27.68000000],[1786162680000,26.78000000],[1786162980000,24.98000000],[1786163280000,25.16000000],[1786163580000,27.90000000],[1786163880000,29.86000000],[1786164180000,33.62000000],[1786164480000,28.30000000],[1786164780000,28.24000000],[1786165080000,27.74000000],[1786165380000,30.06000000],[1786165680000,28.74000000],[1786165980000,23.52000000],[1786166280000,26.52000000],[1786166580000,29.86000000],[1786166880000,31.60000000],[1786167180000,28.66000000],[1786167480000,28.66000000],[1786167780000,37.78000000],[1786168080000,29.33333333],], 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],], 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; }