var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787868000000,13.40000000],[1787868180000,13.32000000],[1787868480000,13.24000000],[1787868780000,13.14000000],[1787869080000,13.06000000],[1787869380000,13.00000000],[1787869680000,12.92000000],[1787869980000,12.82000000],[1787870280000,12.70000000],[1787870580000,12.52000000],[1787870880000,12.48000000],[1787871180000,12.40000000],[1787871480000,12.32000000],[1787871780000,12.26000000],[1787872080000,12.18000000],[1787872380000,12.10000000],[1787872680000,12.10000000],[1787872980000,12.06000000],[1787873280000,12.00000000],[1787873580000,11.98000000],[1787873880000,11.88000000],[1787874180000,11.80000000],[1787874480000,11.70000000],[1787874780000,11.64000000],[1787875080000,11.56000000],[1787875380000,11.50000000],[1787875680000,11.42000000],[1787875980000,11.40000000],[1787876280000,11.36000000],[1787876580000,11.30000000],[1787876880000,11.26000000],[1787877180000,11.18000000],[1787877480000,11.10000000],[1787877780000,11.06000000],[1787878080000,10.96000000],[1787878380000,10.84000000],[1787878680000,10.78000000],[1787878980000,10.70000000],[1787879280000,10.62000000],[1787879580000,10.54000000],[1787879880000,10.50000000],[1787880180000,10.44000000],[1787880480000,10.40000000],[1787880780000,10.30000000],[1787881080000,10.30000000],[1787881380000,10.30000000],[1787881680000,10.26000000],[1787881980000,10.20000000],[1787882280000,10.12000000],[1787882580000,10.10000000],[1787882880000,10.10000000],[1787883180000,10.10000000],[1787883480000,10.10000000],[1787883780000,10.00000000],[1787884080000,9.96000000],[1787884380000,9.76000000],[1787884680000,9.70000000],[1787884980000,9.68000000],[1787885280000,9.66000000],[1787885580000,9.64000000],[1787885880000,9.60000000],[1787886180000,9.60000000],[1787886480000,9.58000000],[1787886780000,9.48000000],[1787887080000,9.40000000],[1787887380000,9.30000000],[1787887680000,9.30000000],[1787887980000,9.30000000],[1787888280000,9.28000000],[1787888580000,9.16000000],[1787888880000,9.10000000],[1787889180000,9.10000000],[1787889480000,9.06000000],[1787889780000,8.94000000],[1787890080000,8.96000000],[1787890380000,8.92000000],[1787890680000,8.94000000],[1787890980000,9.14000000],[1787891280000,9.26000000],[1787891580000,9.40000000],[1787891880000,9.62000000],[1787892180000,9.78000000],[1787892480000,9.90000000],[1787892780000,9.84000000],[1787893080000,9.94000000],[1787893380000,10.02000000],[1787893680000,10.20000000],[1787893980000,10.42000000],[1787894280000,10.50000000],[1787894580000,10.60000000],[1787894880000,10.73333333],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787868000000,11],[1787868180000,10.9],[1787868480000,10.8],[1787868780000,10.7],[1787869080000,10.7],[1787869380000,10.7],[1787869680000,10.7],[1787869980000,10.6],[1787870280000,10.4],[1787870580000,10.3],[1787870880000,10.3],[1787871180000,10.3],[1787871480000,10.2],[1787871780000,10.3],[1787872080000,10.2],[1787872380000,10],[1787872680000,10.2],[1787872980000,10.2],[1787873280000,10.1],[1787873580000,10],[1787873880000,9.9],[1787874180000,9.8],[1787874480000,9.7],[1787874780000,9.6],[1787875080000,9.5],[1787875380000,9.6],[1787875680000,9.6],[1787875980000,9.6],[1787876280000,9.5],[1787876580000,9.5],[1787876880000,9.5],[1787877180000,9.4],[1787877480000,9.4],[1787877780000,9.5],[1787878080000,9.2],[1787878380000,9.2],[1787878680000,9.2],[1787878980000,9.1],[1787879280000,9],[1787879580000,9],[1787879880000,9],[1787880180000,8.8],[1787880480000,8.9],[1787880780000,8.8],[1787881080000,8.8],[1787881380000,8.7],[1787881680000,8.6],[1787881980000,8.6],[1787882280000,8.4],[1787882580000,8.4],[1787882880000,8.4],[1787883180000,8.4],[1787883480000,8.4],[1787883780000,8.3],[1787884080000,8.2],[1787884380000,8],[1787884680000,8],[1787884980000,8.1],[1787885280000,8.1],[1787885580000,8.1],[1787885880000,8.1],[1787886180000,8.2],[1787886480000,8],[1787886780000,7.9],[1787887080000,7.8],[1787887380000,7.8],[1787887680000,7.8],[1787887980000,7.8],[1787888280000,7.7],[1787888580000,7.5],[1787888880000,7.5],[1787889180000,7.6],[1787889480000,7.4],[1787889780000,7.3],[1787890080000,7.4],[1787890380000,7.4],[1787890680000,7.5],[1787890980000,7.6],[1787891280000,7.7],[1787891580000,7.8],[1787891880000,7.8],[1787892180000,7.8],[1787892480000,7.8],[1787892780000,7.8],[1787893080000,8],[1787893380000,8.1],[1787893680000,8.3],[1787893980000,8.4],[1787894280000,8.5],[1787894580000,8.6],[1787894880000,8.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: [[1787868000000,9.46666667],[1787868180000,9.64000000],[1787868480000,9.42000000],[1787868780000,9.28000000],[1787869080000,9.30000000],[1787869380000,9.02000000],[1787869680000,8.88000000],[1787869980000,8.74000000],[1787870280000,8.90000000],[1787870580000,8.96000000],[1787870880000,8.76000000],[1787871180000,8.60000000],[1787871480000,8.50000000],[1787871780000,8.56000000],[1787872080000,8.48000000],[1787872380000,8.52000000],[1787872680000,8.26000000],[1787872980000,8.06000000],[1787873280000,7.96000000],[1787873580000,8.06000000],[1787873880000,8.70000000],[1787874180000,8.44000000],[1787874480000,8.40000000],[1787874780000,8.12000000],[1787875080000,8.14000000],[1787875380000,7.90000000],[1787875680000,7.72000000],[1787875980000,7.72000000],[1787876280000,7.80000000],[1787876580000,7.58000000],[1787876880000,7.52000000],[1787877180000,7.36000000],[1787877480000,7.22000000],[1787877780000,7.12000000],[1787878080000,7.28000000],[1787878380000,7.14000000],[1787878680000,7.02000000],[1787878980000,7.32000000],[1787879280000,7.16000000],[1787879580000,6.94000000],[1787879880000,6.86000000],[1787880180000,6.78000000],[1787880480000,6.60000000],[1787880780000,6.48000000],[1787881080000,6.42000000],[1787881380000,6.50000000],[1787881680000,6.48000000],[1787881980000,6.44000000],[1787882280000,6.46000000],[1787882580000,6.56000000],[1787882880000,6.72000000],[1787883180000,6.96000000],[1787883480000,6.80000000],[1787883780000,6.70000000],[1787884080000,6.88000000],[1787884380000,7.30000000],[1787884680000,7.02000000],[1787884980000,6.76000000],[1787885280000,6.54000000],[1787885580000,6.32000000],[1787885880000,6.14000000],[1787886180000,6.02000000],[1787886480000,5.98000000],[1787886780000,5.96000000],[1787887080000,5.74000000],[1787887380000,5.54000000],[1787887680000,5.50000000],[1787887980000,5.58000000],[1787888280000,5.82000000],[1787888580000,6.10000000],[1787888880000,5.90000000],[1787889180000,6.14000000],[1787889480000,6.58000000],[1787889780000,6.10000000],[1787890080000,6.14000000],[1787890380000,6.20000000],[1787890680000,6.30000000],[1787890980000,6.84000000],[1787891280000,7.06000000],[1787891580000,7.20000000],[1787891880000,7.70000000],[1787892180000,8.08000000],[1787892480000,8.62000000],[1787892780000,8.76000000],[1787893080000,8.80000000],[1787893380000,8.90000000],[1787893680000,9.10000000],[1787893980000,9.34000000],[1787894280000,9.52000000],[1787894580000,9.76000000],[1787894880000,10.03333333],], 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: [[1787868000000,85.33333333],[1787868180000,85.26000000],[1787868480000,85.16000000],[1787868780000,85.44000000],[1787869080000,85.62000000],[1787869380000,86.00000000],[1787869680000,86.36000000],[1787869980000,86.64000000],[1787870280000,86.24000000],[1787870580000,86.36000000],[1787870880000,86.56000000],[1787871180000,86.92000000],[1787871480000,87.30000000],[1787871780000,88.00000000],[1787872080000,87.94000000],[1787872380000,87.20000000],[1787872680000,88.04000000],[1787872980000,88.62000000],[1787873280000,88.28000000],[1787873580000,87.80000000],[1787873880000,87.58000000],[1787874180000,87.62000000],[1787874480000,87.46000000],[1787874780000,87.62000000],[1787875080000,87.52000000],[1787875380000,88.30000000],[1787875680000,88.62000000],[1787875980000,88.60000000],[1787876280000,88.58000000],[1787876580000,88.78000000],[1787876880000,88.86000000],[1787877180000,88.76000000],[1787877480000,89.60000000],[1787877780000,90.04000000],[1787878080000,89.22000000],[1787878380000,89.66000000],[1787878680000,90.02000000],[1787878980000,90.00000000],[1787879280000,89.68000000],[1787879580000,90.36000000],[1787879880000,90.40000000],[1787880180000,89.80000000],[1787880480000,90.70000000],[1787880780000,90.76000000],[1787881080000,90.36000000],[1787881380000,90.10000000],[1787881680000,89.80000000],[1787881980000,89.66000000],[1787882280000,89.34000000],[1787882580000,89.46000000],[1787882880000,89.30000000],[1787883180000,89.36000000],[1787883480000,89.20000000],[1787883780000,89.38000000],[1787884080000,89.08000000],[1787884380000,88.88000000],[1787884680000,89.46000000],[1787884980000,89.92000000],[1787885280000,90.16000000],[1787885580000,90.40000000],[1787885880000,90.76000000],[1787886180000,90.82000000],[1787886480000,90.16000000],[1787886780000,89.70000000],[1787887080000,89.94000000],[1787887380000,90.22000000],[1787887680000,90.62000000],[1787887980000,90.50000000],[1787888280000,89.98000000],[1787888580000,89.74000000],[1787888880000,90.00000000],[1787889180000,90.50000000],[1787889480000,89.56000000],[1787889780000,89.84000000],[1787890080000,90.34000000],[1787890380000,90.48000000],[1787890680000,90.90000000],[1787890980000,90.44000000],[1787891280000,89.92000000],[1787891580000,89.58000000],[1787891880000,88.78000000],[1787892180000,87.52000000],[1787892480000,86.96000000],[1787892780000,87.44000000],[1787893080000,87.70000000],[1787893380000,88.00000000],[1787893680000,88.18000000],[1787893980000,87.58000000],[1787894280000,87.42000000],[1787894580000,87.60000000],[1787894880000,87.73333333],], 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: [[1787868000000,1021.9],[1787868180000,1021.9],[1787868480000,1021.9],[1787868780000,1021.9],[1787869080000,1021.9],[1787869380000,1022],[1787869680000,1022],[1787869980000,1022.1],[1787870280000,1022.1],[1787870580000,1022.1],[1787870880000,1022.2],[1787871180000,1022.2],[1787871480000,1022.2],[1787871780000,1022.3],[1787872080000,1022.4],[1787872380000,1022.4],[1787872680000,1022.4],[1787872980000,1022.4],[1787873280000,1022.5],[1787873580000,1022.5],[1787873880000,1022.5],[1787874180000,1022.5],[1787874480000,1022.5],[1787874780000,1022.5],[1787875080000,1022.6],[1787875380000,1022.6],[1787875680000,1022.6],[1787875980000,1022.7],[1787876280000,1022.6],[1787876580000,1022.6],[1787876880000,1022.6],[1787877180000,1022.6],[1787877480000,1022.6],[1787877780000,1022.5],[1787878080000,1022.6],[1787878380000,1022.5],[1787878680000,1022.5],[1787878980000,1022.4],[1787879280000,1022.3],[1787879580000,1022.4],[1787879880000,1022.4],[1787880180000,1022.4],[1787880480000,1022.4],[1787880780000,1022.3],[1787881080000,1022.4],[1787881380000,1022.4],[1787881680000,1022.4],[1787881980000,1022.4],[1787882280000,1022.3],[1787882580000,1022.4],[1787882880000,1022.4],[1787883180000,1022.4],[1787883480000,1022.4],[1787883780000,1022.3],[1787884080000,1022.3],[1787884380000,1022.4],[1787884680000,1022.4],[1787884980000,1022.3],[1787885280000,1022.3],[1787885580000,1022.4],[1787885880000,1022.4],[1787886180000,1022.4],[1787886480000,1022.3],[1787886780000,1022.4],[1787887080000,1022.4],[1787887380000,1022.5],[1787887680000,1022.4],[1787887980000,1022.4],[1787888280000,1022.5],[1787888580000,1022.6],[1787888880000,1022.6],[1787889180000,1022.8],[1787889480000,1022.9],[1787889780000,1022.9],[1787890080000,1023],[1787890380000,1023.1],[1787890680000,1023],[1787890980000,1022.9],[1787891280000,1022.9],[1787891580000,1023],[1787891880000,1022.9],[1787892180000,1022.9],[1787892480000,1022.9],[1787892780000,1023],[1787893080000,1023],[1787893380000,1023],[1787893680000,1022.9],[1787893980000,1022.8],[1787894280000,1022.8],[1787894580000,1022.7],[1787894880000,1022.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: [[1787868000000,2.16],[1787868180000,1.512],[1787868480000,2.088],[1787868780000,3.24],[1787869080000,2.016],[1787869380000,1.08],[1787869680000,1.368],[1787869980000,1.944],[1787870280000,1.872],[1787870580000,1.44],[1787870880000,0.864],[1787871180000,1.224],[1787871480000,1.008],[1787871780000,1.512],[1787872080000,1.8],[1787872380000,1.8],[1787872680000,2.088],[1787872980000,1.584],[1787873280000,1.8],[1787873580000,1.584],[1787873880000,2.16],[1787874180000,1.944],[1787874480000,1.584],[1787874780000,1.008],[1787875080000,0.936],[1787875380000,0.72],[1787875680000,0.936],[1787875980000,2.16],[1787876280000,2.16],[1787876580000,1.872],[1787876880000,1.224],[1787877180000,0.936],[1787877480000,1.08],[1787877780000,0.936],[1787878080000,1.152],[1787878380000,1.008],[1787878680000,1.584],[1787878980000,2.016],[1787879280000,0.936],[1787879580000,1.512],[1787879880000,1.584],[1787880180000,0.936],[1787880480000,0.936],[1787880780000,1.44],[1787881080000,0.792],[1787881380000,1.224],[1787881680000,1.224],[1787881980000,1.368],[1787882280000,1.368],[1787882580000,1.728],[1787882880000,3.384],[1787883180000,2.016],[1787883480000,1.224],[1787883780000,1.728],[1787884080000,1.944],[1787884380000,1.512],[1787884680000,1.728],[1787884980000,1.44],[1787885280000,1.08],[1787885580000,1.512],[1787885880000,0.72],[1787886180000,1.296],[1787886480000,1.368],[1787886780000,1.296],[1787887080000,0.936],[1787887380000,0.72],[1787887680000,1.512],[1787887980000,2.376],[1787888280000,2.304],[1787888580000,1.08],[1787888880000,1.8],[1787889180000,2.952],[1787889480000,1.152],[1787889780000,0.936],[1787890080000,1.8],[1787890380000,1.44],[1787890680000,1.944],[1787890980000,1.8],[1787891280000,1.872],[1787891580000,2.088],[1787891880000,2.664],[1787892180000,2.736],[1787892480000,3.888],[1787892780000,3.312],[1787893080000,2.808],[1787893380000,2.808],[1787893680000,2.664],[1787893980000,3.744],[1787894280000,3.312],[1787894580000,3.24],[1787894880000,3.96],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787868000000,2.760000012],[1787868180000,2.448],[1787868480000,3.024],[1787868780000,4.392],[1787869080000,2.952],[1787869380000,1.44],[1787869680000,1.656],[1787869980000,2.304],[1787870280000,2.736],[1787870580000,2.16],[1787870880000,1.368],[1787871180000,1.728],[1787871480000,1.296],[1787871780000,2.016],[1787872080000,2.232],[1787872380000,2.52],[1787872680000,2.52],[1787872980000,2.16],[1787873280000,2.592],[1787873580000,2.304],[1787873880000,3.024],[1787874180000,2.592],[1787874480000,2.232],[1787874780000,1.368],[1787875080000,1.296],[1787875380000,1.224],[1787875680000,1.152],[1787875980000,2.88],[1787876280000,2.736],[1787876580000,2.304],[1787876880000,1.944],[1787877180000,1.44],[1787877480000,1.296],[1787877780000,1.296],[1787878080000,1.44],[1787878380000,1.296],[1787878680000,2.016],[1787878980000,2.736],[1787879280000,1.296],[1787879580000,2.088],[1787879880000,2.088],[1787880180000,1.224],[1787880480000,1.296],[1787880780000,1.8],[1787881080000,1.152],[1787881380000,1.584],[1787881680000,1.8],[1787881980000,2.232],[1787882280000,1.872],[1787882580000,2.304],[1787882880000,4.104],[1787883180000,2.88],[1787883480000,1.656],[1787883780000,2.16],[1787884080000,2.88],[1787884380000,2.016],[1787884680000,2.16],[1787884980000,1.944],[1787885280000,1.512],[1787885580000,2.016],[1787885880000,1.08],[1787886180000,1.728],[1787886480000,2.232],[1787886780000,1.584],[1787887080000,1.512],[1787887380000,1.08],[1787887680000,2.16],[1787887980000,2.952],[1787888280000,2.808],[1787888580000,1.728],[1787888880000,2.304],[1787889180000,3.816],[1787889480000,1.8],[1787889780000,1.44],[1787890080000,2.232],[1787890380000,2.088],[1787890680000,2.952],[1787890980000,2.664],[1787891280000,2.52],[1787891580000,3.096],[1787891880000,3.816],[1787892180000,4.536],[1787892480000,5.616],[1787892780000,4.392],[1787893080000,4.248],[1787893380000,3.672],[1787893680000,3.672],[1787893980000,5.472],[1787894280000,4.752],[1787894580000,4.464],[1787894880000,5.4],], 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: [[1787868000000,276.73333333],[1787868180000,186.22000000],[1787868480000,211.10000000],[1787868780000,207.16000000],[1787869080000,197.98000000],[1787869380000,234.32000000],[1787869680000,235.64000000],[1787869980000,269.92000000],[1787870280000,182.96000000],[1787870580000,179.30000000],[1787870880000,116.36000000],[1787871180000,95.10000000],[1787871480000,175.92000000],[1787871780000,228.48000000],[1787872080000,185.92000000],[1787872380000,156.22000000],[1787872680000,111.34000000],[1787872980000,96.06000000],[1787873280000,104.30000000],[1787873580000,117.36000000],[1787873880000,144.48000000],[1787874180000,166.64000000],[1787874480000,140.90000000],[1787874780000,168.98000000],[1787875080000,132.40000000],[1787875380000,43.58000000],[1787875680000,138.42000000],[1787875980000,134.66000000],[1787876280000,126.94000000],[1787876580000,158.98000000],[1787876880000,200.82000000],[1787877180000,110.36000000],[1787877480000,26.08000000],[1787877780000,154.64000000],[1787878080000,141.24000000],[1787878380000,122.58000000],[1787878680000,164.12000000],[1787878980000,140.90000000],[1787879280000,172.58000000],[1787879580000,243.26000000],[1787879880000,180.88000000],[1787880180000,89.92000000],[1787880480000,27.70000000],[1787880780000,46.54000000],[1787881080000,69.16000000],[1787881380000,121.92000000],[1787881680000,85.50000000],[1787881980000,89.86000000],[1787882280000,94.02000000],[1787882580000,129.92000000],[1787882880000,132.18000000],[1787883180000,161.28000000],[1787883480000,165.54000000],[1787883780000,153.04000000],[1787884080000,182.02000000],[1787884380000,166.38000000],[1787884680000,140.02000000],[1787884980000,112.88000000],[1787885280000,142.96000000],[1787885580000,268.72000000],[1787885880000,100.48000000],[1787886180000,118.70000000],[1787886480000,107.20000000],[1787886780000,137.44000000],[1787887080000,89.78000000],[1787887380000,102.36000000],[1787887680000,103.22000000],[1787887980000,124.24000000],[1787888280000,168.20000000],[1787888580000,146.72000000],[1787888880000,147.82000000],[1787889180000,218.48000000],[1787889480000,167.44000000],[1787889780000,176.16000000],[1787890080000,166.38000000],[1787890380000,98.88000000],[1787890680000,100.46000000],[1787890980000,98.54000000],[1787891280000,100.90000000],[1787891580000,93.36000000],[1787891880000,87.96000000],[1787892180000,88.58000000],[1787892480000,98.10000000],[1787892780000,110.82000000],[1787893080000,104.50000000],[1787893380000,96.20000000],[1787893680000,89.34000000],[1787893980000,96.16000000],[1787894280000,126.54000000],[1787894580000,174.08000000],[1787894880000,197.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: [[1787868000000,0],[1787868180000,0],[1787868480000,0],[1787868780000,0],[1787869080000,0],[1787869380000,0],[1787869680000,0],[1787869980000,0],[1787870280000,0],[1787870580000,0],[1787870880000,0],[1787871180000,0],[1787871480000,0],[1787871780000,0],[1787872080000,0],[1787872380000,0],[1787872680000,0],[1787872980000,0],[1787873280000,0],[1787873580000,0],[1787873880000,0],[1787874180000,0],[1787874480000,0],[1787874780000,0],[1787875080000,0],[1787875380000,0],[1787875680000,0],[1787875980000,0],[1787876280000,0],[1787876580000,0],[1787876880000,0],[1787877180000,0],[1787877480000,0],[1787877780000,0],[1787878080000,0],[1787878380000,0],[1787878680000,0],[1787878980000,0],[1787879280000,0],[1787879580000,0],[1787879880000,0],[1787880180000,0],[1787880480000,0],[1787880780000,0],[1787881080000,0],[1787881380000,0],[1787881680000,0],[1787881980000,0],[1787882280000,0],[1787882580000,0],[1787882880000,0],[1787883180000,0],[1787883480000,0],[1787883780000,0],[1787884080000,0],[1787884380000,0],[1787884680000,0],[1787884980000,0],[1787885280000,0],[1787885580000,0],[1787885880000,0],[1787886180000,0],[1787886480000,0],[1787886780000,0],[1787887080000,0],[1787887380000,0],[1787887680000,0],[1787887980000,0],[1787888280000,0],[1787888580000,0],[1787888880000,0],[1787889180000,0],[1787889480000,0],[1787889780000,0],[1787890080000,0],[1787890380000,0],[1787890680000,0],[1787890980000,0],[1787891280000,0],[1787891580000,0],[1787891880000,0],[1787892180000,0],[1787892480000,0],[1787892780000,0],[1787893080000,0],[1787893380000,0],[1787893680000,0],[1787893980000,0],[1787894280000,0],[1787894580000,0],[1787894880000,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; }