var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,20.80000000],[1786140180000,20.72000000],[1786140480000,20.70000000],[1786140780000,20.70000000],[1786141080000,20.70000000],[1786141500000,20.70000000],[1786141680000,20.68000000],[1786141980000,20.60000000],[1786142280000,20.58000000],[1786142580000,20.54000000],[1786142880000,20.50000000],[1786143180000,20.50000000],[1786143480000,20.50000000],[1786143780000,20.48000000],[1786144080000,20.46000000],[1786144380000,20.38000000],[1786144920000,20.32000000],[1786144980000,20.18000000],[1786145280000,20.02000000],[1786145580000,20.00000000],[1786146060000,20.18000000],[1786146180000,20.30000000],[1786146480000,20.28000000],[1786146960000,20.32000000],[1786147080000,20.42000000],[1786147560000,20.44000000],[1786147740000,20.42000000],[1786147980000,20.34000000],[1786148340000,20.22000000],[1786148580000,20.02000000],[1786148940000,19.86000000],[1786149180000,19.78000000],[1786149480000,19.60000000],[1786149840000,19.54000000],[1786150080000,19.56000000],[1786150380000,19.56000000],[1786150680000,19.62000000],[1786150980000,19.70000000],[1786151280000,19.70000000],[1786151580000,19.70000000],[1786151880000,19.62000000],[1786152300000,19.70000000],[1786152480000,19.64000000],[1786152780000,19.56000000],[1786153080000,19.66000000],[1786153380000,19.52000000],[1786153680000,19.44000000],[1786153980000,19.30000000],[1786154280000,19.26000000],[1786154580000,19.20000000],[1786154880000,19.20000000],[1786155180000,19.20000000],[1786155480000,19.06000000],[1786155780000,19.00000000],[1786156140000,18.96000000],[1786156380000,18.86000000],[1786156680000,18.80000000],[1786156980000,18.84000000],[1786157460000,18.94000000],[1786157580000,19.00000000],[1786157940000,19.04000000],[1786158300000,19.06000000],[1786158480000,18.96000000],[1786158780000,18.84000000],[1786159080000,18.72000000],[1786159380000,18.66000000],[1786159680000,18.60000000],[1786159980000,18.64000000],[1786160280000,18.76000000],[1786160580000,18.66000000],[1786161060000,18.62000000],[1786161180000,18.60000000],[1786161480000,18.60000000],[1786161780000,18.66000000],[1786162080000,18.74000000],[1786162380000,18.80000000],[1786162680000,18.94000000],[1786163100000,18.96000000],[1786163280000,19.02000000],[1786163580000,19.10000000],[1786164000000,19.10000000],[1786164180000,19.10000000],[1786164480000,19.22000000],[1786164900000,19.30000000],[1786165320000,19.40000000],[1786165500000,19.50000000],[1786165680000,19.66000000],[1786165980000,19.80000000],[1786166280000,20.04000000],[1786166640000,20.50000000],[1786166880000,20.92000000],[1786167180000,21.28000000],[1786167480000,21.46000000],[1786167840000,21.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,16.7],[1786140180000,16.6],[1786140480000,16.6],[1786140780000,16.5],[1786141080000,16.5],[1786141500000,16.6],[1786141680000,16.5],[1786141980000,16.5],[1786142280000,16.5],[1786142580000,16.5],[1786142880000,16.5],[1786143180000,16.5],[1786143480000,16.5],[1786143780000,16.5],[1786144080000,16.5],[1786144380000,16.5],[1786144920000,16.4],[1786144980000,16.4],[1786145280000,16.4],[1786145580000,16.4],[1786146060000,16.4],[1786146180000,16.4],[1786146480000,16.4],[1786146960000,16.4],[1786147080000,16.5],[1786147560000,16.5],[1786147740000,16.5],[1786147980000,16.4],[1786148340000,16.3],[1786148580000,16.2],[1786148940000,16.2],[1786149180000,16.3],[1786149480000,16.2],[1786149840000,16.2],[1786150080000,16.2],[1786150380000,16.3],[1786150680000,16.3],[1786150980000,16.4],[1786151280000,16.3],[1786151580000,16.4],[1786151880000,16.3],[1786152300000,16.3],[1786152480000,16.2],[1786152780000,16.2],[1786153080000,16.2],[1786153380000,16.1],[1786153680000,16.1],[1786153980000,16.1],[1786154280000,15.9],[1786154580000,15.7],[1786154880000,15.5],[1786155180000,15.4],[1786155480000,15.2],[1786155780000,15.2],[1786156140000,15.3],[1786156380000,15.4],[1786156680000,15.3],[1786156980000,14.9],[1786157460000,14.4],[1786157580000,14.2],[1786157940000,14],[1786158300000,14],[1786158480000,14],[1786158780000,14.1],[1786159080000,14.1],[1786159380000,14],[1786159680000,14.1],[1786159980000,14],[1786160280000,14],[1786160580000,14],[1786161060000,14],[1786161180000,14],[1786161480000,14.1],[1786161780000,14],[1786162080000,14],[1786162380000,14.1],[1786162680000,14.1],[1786163100000,14.2],[1786163280000,14.3],[1786163580000,14.3],[1786164000000,14.4],[1786164180000,14.4],[1786164480000,14.3],[1786164900000,14.3],[1786165320000,14.4],[1786165500000,14.4],[1786165680000,14.3],[1786165980000,14.2],[1786166280000,14.3],[1786166640000,14.4],[1786166880000,14.5],[1786167180000,14.4],[1786167480000,14.5],[1786167840000,14.3],], 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,19.90000000],[1786140180000,19.98000000],[1786140480000,19.96000000],[1786140780000,19.94000000],[1786141080000,19.84000000],[1786141380000,19.80000000],[1786141680000,19.76000000],[1786141980000,19.60000000],[1786142280000,19.60000000],[1786142580000,19.60000000],[1786142880000,19.58000000],[1786143180000,19.54000000],[1786143480000,19.60000000],[1786143780000,19.48000000],[1786144080000,19.60000000],[1786144380000,19.48000000],[1786144680000,19.32000000],[1786144980000,19.22000000],[1786145280000,19.14000000],[1786145580000,19.22000000],[1786145880000,19.54000000],[1786146180000,19.60000000],[1786146480000,19.58000000],[1786146780000,19.58000000],[1786147080000,19.76000000],[1786147380000,19.66000000],[1786147680000,19.62000000],[1786147980000,19.40000000],[1786148280000,19.22000000],[1786148580000,18.96000000],[1786148880000,19.00000000],[1786149180000,18.94000000],[1786149480000,18.62000000],[1786149780000,18.60000000],[1786150080000,18.72000000],[1786150380000,18.82000000],[1786150680000,19.04000000],[1786150980000,19.22000000],[1786151280000,19.12000000],[1786151580000,18.86000000],[1786151880000,18.92000000],[1786152180000,19.12000000],[1786152480000,19.16000000],[1786152780000,19.06000000],[1786153080000,19.10000000],[1786153380000,18.64000000],[1786153680000,18.62000000],[1786153980000,18.70000000],[1786154280000,18.68000000],[1786154580000,18.72000000],[1786154880000,18.80000000],[1786155180000,18.76000000],[1786155480000,18.58000000],[1786155780000,18.46000000],[1786156080000,18.48000000],[1786156380000,18.42000000],[1786156680000,18.40000000],[1786156980000,18.44000000],[1786157280000,18.64000000],[1786157580000,18.66000000],[1786157880000,18.74000000],[1786158180000,18.66000000],[1786158480000,18.24000000],[1786158780000,18.24000000],[1786159080000,18.20000000],[1786159380000,18.20000000],[1786159680000,18.26000000],[1786159980000,18.24000000],[1786160280000,18.38000000],[1786160580000,18.32000000],[1786160880000,18.30000000],[1786161180000,18.20000000],[1786161480000,18.20000000],[1786161780000,18.40000000],[1786162080000,18.38000000],[1786162380000,18.50000000],[1786162680000,18.68000000],[1786162980000,18.80000000],[1786163280000,18.96000000],[1786163580000,19.00000000],[1786163880000,19.06000000],[1786164180000,19.04000000],[1786164480000,19.22000000],[1786164780000,19.40000000],[1786165080000,19.56000000],[1786165380000,19.74000000],[1786165680000,19.98000000],[1786165980000,20.28000000],[1786166280000,20.94000000],[1786166580000,21.60000000],[1786166880000,22.22000000],[1786167180000,22.30000000],[1786167480000,22.42000000],[1786167780000,22.34000000],], 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,77.36666667],[1786140180000,77.38000000],[1786140480000,77.30000000],[1786140780000,77.18000000],[1786141080000,77.14000000],[1786141500000,77.26000000],[1786141680000,77.26000000],[1786141980000,77.36000000],[1786142280000,77.60000000],[1786142580000,77.76000000],[1786142880000,77.90000000],[1786143180000,77.96000000],[1786143480000,78.02000000],[1786143780000,78.10000000],[1786144080000,78.16000000],[1786144380000,78.48000000],[1786144920000,78.54000000],[1786144980000,79.14000000],[1786145280000,79.76000000],[1786145580000,79.68000000],[1786146060000,78.88000000],[1786146180000,78.66000000],[1786146480000,78.66000000],[1786146960000,78.50000000],[1786147080000,78.36000000],[1786147560000,78.20000000],[1786147740000,78.10000000],[1786147980000,78.30000000],[1786148340000,78.38000000],[1786148580000,79.02000000],[1786148940000,79.72000000],[1786149180000,80.28000000],[1786149480000,80.86000000],[1786149840000,81.16000000],[1786150080000,81.26000000],[1786150380000,81.56000000],[1786150680000,81.46000000],[1786150980000,81.14000000],[1786151280000,80.94000000],[1786151580000,81.18000000],[1786151880000,81.14000000],[1786152300000,80.84000000],[1786152480000,80.90000000],[1786152780000,81.10000000],[1786153080000,80.34000000],[1786153380000,80.82000000],[1786153680000,81.34000000],[1786153980000,81.76000000],[1786154280000,80.96000000],[1786154580000,80.54000000],[1786154880000,79.26000000],[1786155180000,78.56000000],[1786155480000,78.56000000],[1786155780000,78.70000000],[1786156140000,79.60000000],[1786156380000,80.40000000],[1786156680000,80.32000000],[1786156980000,77.84000000],[1786157460000,75.00000000],[1786157580000,73.80000000],[1786157940000,72.82000000],[1786158300000,72.72000000],[1786158480000,73.24000000],[1786158780000,73.88000000],[1786159080000,74.60000000],[1786159380000,74.68000000],[1786159680000,75.24000000],[1786159980000,74.58000000],[1786160280000,73.98000000],[1786160580000,74.70000000],[1786161060000,74.46000000],[1786161180000,74.86000000],[1786161480000,75.42000000],[1786161780000,74.52000000],[1786162080000,73.96000000],[1786162380000,74.10000000],[1786162680000,73.42000000],[1786163100000,73.96000000],[1786163280000,74.06000000],[1786163580000,74.00000000],[1786164000000,74.18000000],[1786164180000,74.22000000],[1786164480000,73.22000000],[1786164900000,72.96000000],[1786165320000,72.78000000],[1786165500000,72.60000000],[1786165680000,71.52000000],[1786165980000,70.32000000],[1786166280000,69.68000000],[1786166640000,68.18000000],[1786166880000,66.92000000],[1786167180000,65.04000000],[1786167480000,64.70000000],[1786167840000,63.54000000],], 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,1017.3],[1786140180000,1017.3],[1786140480000,1017.3],[1786140780000,1017.4],[1786141080000,1017.4],[1786141500000,1017.5],[1786141680000,1017.5],[1786141980000,1017.5],[1786142280000,1017.4],[1786142580000,1017.4],[1786142880000,1017.4],[1786143180000,1017.3],[1786143480000,1017.4],[1786143780000,1017.4],[1786144080000,1017.4],[1786144380000,1017.4],[1786144920000,1017.6],[1786144980000,1017.6],[1786145280000,1017.7],[1786145580000,1017.7],[1786146060000,1017.7],[1786146180000,1017.7],[1786146480000,1017.6],[1786146960000,1017.6],[1786147080000,1017.7],[1786147560000,1017.6],[1786147740000,1017.5],[1786147980000,1017.6],[1786148340000,1017.7],[1786148580000,1017.8],[1786148940000,1017.8],[1786149180000,1017.9],[1786149480000,1017.9],[1786149840000,1017.9],[1786150080000,1017.9],[1786150380000,1017.9],[1786150680000,1017.8],[1786150980000,1017.7],[1786151280000,1017.8],[1786151580000,1017.8],[1786151880000,1017.9],[1786152300000,1017.9],[1786152480000,1017.9],[1786152780000,1017.7],[1786153080000,1017.7],[1786153380000,1017.9],[1786153680000,1017.9],[1786153980000,1017.9],[1786154280000,1017.9],[1786154580000,1017.9],[1786154880000,1017.8],[1786155180000,1017.8],[1786155480000,1017.9],[1786155780000,1018],[1786156140000,1018],[1786156380000,1018.1],[1786156680000,1018.2],[1786156980000,1018.2],[1786157460000,1018.3],[1786157580000,1018.3],[1786157940000,1018.3],[1786158300000,1018.3],[1786158480000,1018.5],[1786158780000,1018.5],[1786159080000,1018.6],[1786159380000,1018.6],[1786159680000,1018.6],[1786159980000,1018.7],[1786160280000,1018.8],[1786160580000,1018.8],[1786161060000,1018.7],[1786161180000,1018.9],[1786161480000,1018.9],[1786161780000,1018.9],[1786162080000,1018.9],[1786162380000,1018.9],[1786162680000,1018.9],[1786163100000,1019],[1786163280000,1019.1],[1786163580000,1019.2],[1786164000000,1019.3],[1786164180000,1019.3],[1786164480000,1019.4],[1786164900000,1019.5],[1786165320000,1019.5],[1786165500000,1019.4],[1786165680000,1019.3],[1786165980000,1019.4],[1786166280000,1019.4],[1786166640000,1019.4],[1786166880000,1019.5],[1786167180000,1019.5],[1786167480000,1019.5],[1786167840000,1019.5],], 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,4.920000012],[1786140180000,5.472],[1786140480000,4.752],[1786140780000,4.68],[1786141080000,4.968],[1786141380000,4.464],[1786141680000,3.96],[1786141980000,4.248],[1786142280000,4.176],[1786142580000,4.032],[1786142880000,4.752],[1786143180000,4.896],[1786143480000,3.816],[1786143780000,4.392],[1786144080000,4.392],[1786144380000,4.464],[1786144680000,3.312],[1786144980000,3.024],[1786145280000,3.528],[1786145580000,4.608],[1786145880000,4.824],[1786146180000,4.896],[1786146480000,4.68],[1786146780000,5.184],[1786147080000,5.904],[1786147380000,5.256],[1786147680000,4.32],[1786147980000,4.032],[1786148280000,2.808],[1786148580000,2.448],[1786148880000,2.376],[1786149180000,2.376],[1786149480000,3.24],[1786149780000,4.752],[1786150080000,4.248],[1786150380000,3.744],[1786150680000,3.672],[1786150980000,3.096],[1786151280000,2.232],[1786151580000,2.736],[1786151880000,2.016],[1786152180000,2.016],[1786152480000,2.88],[1786152780000,4.104],[1786153080000,4.176],[1786153380000,2.448],[1786153680000,1.224],[1786153980000,1.656],[1786154280000,1.08],[1786154580000,1.152],[1786154880000,1.584],[1786155180000,1.152],[1786155480000,0.792],[1786155780000,0.648],[1786156080000,1.08],[1786156380000,1.872],[1786156680000,1.872],[1786156980000,2.232],[1786157280000,2.88],[1786157580000,2.664],[1786157880000,2.52],[1786158180000,2.664],[1786158480000,1.656],[1786158780000,1.008],[1786159080000,1.44],[1786159380000,2.016],[1786159680000,1.728],[1786159980000,2.376],[1786160280000,1.08],[1786160580000,2.016],[1786160880000,1.296],[1786161180000,0.432],[1786161480000,1.44],[1786161780000,2.232],[1786162080000,1.08],[1786162380000,2.304],[1786162680000,3.024],[1786162980000,1.152],[1786163280000,1.152],[1786163580000,0.576],[1786163880000,1.656],[1786164180000,2.016],[1786164480000,2.232],[1786164780000,3.24],[1786165080000,2.88],[1786165380000,3.384],[1786165680000,3.24],[1786165980000,2.592],[1786166280000,2.088],[1786166580000,2.088],[1786166880000,2.664],[1786167180000,4.032],[1786167480000,3.456],[1786167780000,4.464],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,7.2],[1786140180000,7.992],[1786140480000,7.344],[1786140780000,7.776],[1786141080000,6.984],[1786141380000,6.84],[1786141680000,6.696],[1786141980000,7.056],[1786142280000,7.488],[1786142580000,6.552],[1786142880000,8.136],[1786143180000,7.416],[1786143480000,6.12],[1786143780000,6.696],[1786144080000,6.48],[1786144380000,6.696],[1786144680000,5.472],[1786144980000,4.896],[1786145280000,4.824],[1786145580000,6.768],[1786145880000,7.776],[1786146180000,7.632],[1786146480000,6.552],[1786146780000,7.056],[1786147080000,8.712],[1786147380000,8.568],[1786147680000,6.624],[1786147980000,6.408],[1786148280000,4.176],[1786148580000,3.528],[1786148880000,3.96],[1786149180000,3.744],[1786149480000,5.976],[1786149780000,6.552],[1786150080000,6.552],[1786150380000,6.336],[1786150680000,6.552],[1786150980000,5.688],[1786151280000,3.96],[1786151580000,4.608],[1786151880000,3.384],[1786152180000,3.6],[1786152480000,3.744],[1786152780000,5.472],[1786153080000,5.904],[1786153380000,3.384],[1786153680000,1.944],[1786153980000,2.232],[1786154280000,1.584],[1786154580000,1.44],[1786154880000,2.232],[1786155180000,1.728],[1786155480000,1.224],[1786155780000,0.792],[1786156080000,1.44],[1786156380000,2.808],[1786156680000,3.672],[1786156980000,3.744],[1786157280000,4.968],[1786157580000,4.248],[1786157880000,4.248],[1786158180000,3.816],[1786158480000,2.304],[1786158780000,1.512],[1786159080000,2.16],[1786159380000,2.664],[1786159680000,2.304],[1786159980000,3.528],[1786160280000,1.8],[1786160580000,2.664],[1786160880000,1.944],[1786161180000,0.648],[1786161480000,2.52],[1786161780000,3.672],[1786162080000,1.656],[1786162380000,3.24],[1786162680000,4.536],[1786162980000,2.232],[1786163280000,1.584],[1786163580000,0.936],[1786163880000,2.088],[1786164180000,2.808],[1786164480000,3.312],[1786164780000,4.896],[1786165080000,5.184],[1786165380000,5.4],[1786165680000,6.048],[1786165980000,4.896],[1786166280000,4.824],[1786166580000,3.96],[1786166880000,4.896],[1786167180000,6.192],[1786167480000,6.408],[1786167780000,7.704],], 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,76.33333333],[1786140180000,70.46000000],[1786140480000,68.34000000],[1786140780000,73.62000000],[1786141080000,78.32000000],[1786141380000,84.72000000],[1786141680000,85.46000000],[1786141980000,71.72000000],[1786142280000,83.02000000],[1786142580000,74.66000000],[1786142880000,81.18000000],[1786143180000,73.84000000],[1786143480000,72.58000000],[1786143780000,86.64000000],[1786144080000,75.58000000],[1786144380000,69.72000000],[1786144680000,62.16000000],[1786144980000,68.28000000],[1786145280000,64.64000000],[1786145580000,53.00000000],[1786145880000,55.34000000],[1786146180000,60.98000000],[1786146480000,62.72000000],[1786146780000,60.46000000],[1786147080000,63.38000000],[1786147380000,66.04000000],[1786147680000,62.38000000],[1786147980000,47.76000000],[1786148280000,55.74000000],[1786148580000,29.30000000],[1786148880000,40.16000000],[1786149180000,159.28000000],[1786149480000,148.50000000],[1786149780000,8.40000000],[1786150080000,18.42000000],[1786150380000,23.34000000],[1786150680000,37.32000000],[1786150980000,34.16000000],[1786151280000,76.72000000],[1786151580000,343.92000000],[1786151880000,98.28000000],[1786152180000,8.82000000],[1786152480000,65.64000000],[1786152780000,79.80000000],[1786153080000,67.28000000],[1786153380000,297.90000000],[1786153680000,151.40000000],[1786153980000,80.72000000],[1786154280000,184.56000000],[1786154580000,95.00000000],[1786154880000,99.04000000],[1786155180000,21.54000000],[1786155480000,208.18000000],[1786155780000,226.52000000],[1786156080000,153.32000000],[1786156380000,30.26000000],[1786156680000,33.88000000],[1786156980000,33.84000000],[1786157280000,37.60000000],[1786157580000,34.46000000],[1786157880000,49.80000000],[1786158180000,49.22000000],[1786158480000,257.96000000],[1786158780000,120.68000000],[1786159080000,29.98000000],[1786159380000,71.18000000],[1786159680000,75.90000000],[1786159980000,34.02000000],[1786160280000,51.60000000],[1786160580000,76.70000000],[1786160880000,87.74000000],[1786161180000,131.80000000],[1786161480000,113.70000000],[1786161780000,48.36000000],[1786162080000,256.74000000],[1786162380000,116.42000000],[1786162680000,129.78000000],[1786162980000,50.16000000],[1786163280000,129.16000000],[1786163580000,238.68000000],[1786163880000,78.20000000],[1786164180000,27.10000000],[1786164480000,26.28000000],[1786164780000,13.50000000],[1786165080000,24.24000000],[1786165380000,21.30000000],[1786165680000,34.86000000],[1786165980000,47.38000000],[1786166280000,103.18000000],[1786166580000,47.66000000],[1786166880000,48.66000000],[1786167180000,53.02000000],[1786167480000,53.68000000],[1786167780000,59.88000000],], 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],[1786141500000,0],[1786141680000,0],[1786141980000,0],[1786142280000,0],[1786142580000,0],[1786142880000,0],[1786143180000,0],[1786143480000,0],[1786143780000,0],[1786144080000,0],[1786144380000,0],[1786144920000,0],[1786144980000,0],[1786145280000,0],[1786145580000,0],[1786146060000,0],[1786146180000,0],[1786146480000,0],[1786146960000,0],[1786147080000,0],[1786147560000,0],[1786147740000,0],[1786147980000,0],[1786148340000,0],[1786148580000,0],[1786148940000,0],[1786149180000,0],[1786149480000,0],[1786149840000,0],[1786150080000,0],[1786150380000,0],[1786150680000,0],[1786150980000,0],[1786151280000,0],[1786151580000,0],[1786151880000,0],[1786152300000,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],[1786156140000,0],[1786156380000,0],[1786156680000,0],[1786156980000,0],[1786157460000,0],[1786157580000,0],[1786157940000,0],[1786158300000,0],[1786158480000,0],[1786158780000,0],[1786159080000,0],[1786159380000,0],[1786159680000,0],[1786159980000,0],[1786160280000,0],[1786160580000,0],[1786161060000,0],[1786161180000,0],[1786161480000,0],[1786161780000,0],[1786162080000,0],[1786162380000,0],[1786162680000,0],[1786163100000,0],[1786163280000,0],[1786163580000,0],[1786164000000,0],[1786164180000,0],[1786164480000,0],[1786164900000,0],[1786165320000,0],[1786165500000,0],[1786165680000,0],[1786165980000,0],[1786166280000,0],[1786166640000,0],[1786166880000,0],[1786167180000,0],[1786167480000,0],[1786167840000,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; }