var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787868000000,11.63333333],[1787868180000,11.96000000],[1787868480000,11.52000000],[1787868780000,11.20000000],[1787869080000,11.08000000],[1787869380000,10.88000000],[1787869680000,10.78000000],[1787869980000,10.88000000],[1787870280000,10.72000000],[1787870580000,10.80000000],[1787870880000,10.80000000],[1787871180000,10.70000000],[1787871480000,10.70000000],[1787871780000,10.64000000],[1787872080000,10.72000000],[1787872380000,10.88000000],[1787872680000,10.84000000],[1787872980000,10.58000000],[1787873280000,10.52000000],[1787873580000,10.68000000],[1787873880000,10.60000000],[1787874180000,10.50000000],[1787874480000,10.54000000],[1787874780000,10.40000000],[1787875080000,10.55000000],[1787875380000,10.72000000],[1787875680000,10.66000000],[1787875980000,10.62000000],[1787876280000,10.54000000],[1787876580000,10.72000000],[1787876880000,11.02000000],[1787877180000,11.28000000],[1787877480000,11.32000000],[1787877780000,11.62000000],[1787878080000,11.24000000],[1787878380000,10.40000000],[1787878680000,10.02000000],[1787878980000,9.94000000],[1787879280000,9.90000000],[1787879580000,9.80000000],[1787879880000,9.80000000],[1787880180000,9.94000000],[1787880480000,10.04000000],[1787880780000,10.20000000],[1787881080000,10.22000000],[1787881380000,9.94000000],[1787881680000,9.96000000],[1787881980000,9.82000000],[1787882280000,10.00000000],[1787882580000,9.86000000],[1787882880000,9.86000000],[1787883180000,9.90000000],[1787883480000,10.00000000],[1787883780000,10.00000000],[1787884080000,9.88000000],[1787884380000,9.92000000],[1787884680000,10.08000000],[1787884980000,9.64000000],[1787885280000,9.66000000],[1787885580000,9.80000000],[1787885880000,10.60000000],[1787886180000,11.64000000],[1787886480000,12.24000000],[1787886780000,12.14000000],[1787887080000,12.48000000],[1787887380000,13.00000000],[1787887680000,13.06000000],[1787887980000,13.10000000],[1787888280000,12.88000000],[1787888580000,13.08000000],[1787888880000,12.94000000],[1787889180000,13.02000000],[1787889480000,13.06000000],[1787889780000,13.26000000],[1787890080000,12.70000000],[1787890380000,12.12000000],[1787890680000,12.12000000],[1787890980000,12.70000000],[1787891280000,12.84000000],[1787891580000,13.44000000],[1787891880000,13.26000000],[1787892180000,13.84000000],[1787892480000,14.64000000],[1787892780000,15.10000000],[1787893080000,15.20000000],[1787893380000,15.18000000],[1787893680000,15.34000000],[1787893980000,15.06000000],[1787894280000,15.14000000],[1787894580000,15.28000000],[1787894880000,15.55000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787868000000,10.2],[1787868180000,10.1],[1787868480000,9.7],[1787868780000,9.6],[1787869080000,9.6],[1787869380000,9.5],[1787869680000,9.5],[1787869980000,9.6],[1787870280000,9.5],[1787870580000,9.5],[1787870880000,9.5],[1787871180000,9.5],[1787871480000,9.6],[1787871780000,9.4],[1787872080000,9.5],[1787872380000,9.6],[1787872680000,9.5],[1787872980000,9.2],[1787873280000,9.2],[1787873580000,9.3],[1787873880000,9.2],[1787874180000,9.1],[1787874480000,9.2],[1787874780000,9],[1787875080000,9.2],[1787875380000,9.2],[1787875680000,9.1],[1787875980000,9],[1787876280000,8.9],[1787876580000,9],[1787876880000,9.1],[1787877180000,8.9],[1787877480000,8.7],[1787877780000,8.7],[1787878080000,8.4],[1787878380000,8.1],[1787878680000,8.2],[1787878980000,8.4],[1787879280000,8.5],[1787879580000,8.4],[1787879880000,8.6],[1787880180000,8.8],[1787880480000,8.9],[1787880780000,9],[1787881080000,8.9],[1787881380000,8.7],[1787881680000,8.7],[1787881980000,8.6],[1787882280000,8.8],[1787882580000,8.6],[1787882880000,8.6],[1787883180000,8.6],[1787883480000,8.8],[1787883780000,8.7],[1787884080000,8.6],[1787884380000,8.8],[1787884680000,8.9],[1787884980000,8.3],[1787885280000,8.5],[1787885580000,8.5],[1787885880000,8.7],[1787886180000,8.4],[1787886480000,8],[1787886780000,7.7],[1787887080000,7.5],[1787887380000,7.4],[1787887680000,7.1],[1787887980000,7],[1787888280000,7],[1787888580000,6.9],[1787888880000,6.8],[1787889180000,6.9],[1787889480000,6.9],[1787889780000,6.8],[1787890080000,6.6],[1787890380000,6.9],[1787890680000,6.9],[1787890980000,6.8],[1787891280000,6.8],[1787891580000,6.8],[1787891880000,7.1],[1787892180000,7],[1787892480000,6.3],[1787892780000,6.4],[1787893080000,6.5],[1787893380000,6.4],[1787893680000,6.9],[1787893980000,6.5],[1787894280000,6.7],[1787894580000,6.7],[1787894880000,6.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: [[1787868000000,10.03333333],[1787868180000,10.22000000],[1787868480000,9.90000000],[1787868780000,9.84000000],[1787869080000,9.74000000],[1787869380000,9.52000000],[1787869680000,9.44000000],[1787869980000,9.50000000],[1787870280000,9.30000000],[1787870580000,9.42000000],[1787870880000,9.42000000],[1787871180000,9.18000000],[1787871480000,9.18000000],[1787871780000,9.04000000],[1787872080000,9.16000000],[1787872380000,9.14000000],[1787872680000,8.94000000],[1787872980000,8.78000000],[1787873280000,8.80000000],[1787873580000,8.78000000],[1787873880000,8.70000000],[1787874180000,8.88000000],[1787874480000,8.80000000],[1787874780000,8.66000000],[1787875080000,8.72500000],[1787875380000,8.80000000],[1787875680000,8.78000000],[1787875980000,8.80000000],[1787876280000,8.72000000],[1787876580000,8.86000000],[1787876880000,9.04000000],[1787877180000,9.04000000],[1787877480000,9.00000000],[1787877780000,9.30000000],[1787878080000,9.34000000],[1787878380000,8.82000000],[1787878680000,8.56000000],[1787878980000,8.52000000],[1787879280000,8.26000000],[1787879580000,8.34000000],[1787879880000,8.22000000],[1787880180000,8.40000000],[1787880480000,8.46000000],[1787880780000,8.72000000],[1787881080000,8.72000000],[1787881380000,8.54000000],[1787881680000,8.60000000],[1787881980000,8.52000000],[1787882280000,8.64000000],[1787882580000,8.34000000],[1787882880000,8.34000000],[1787883180000,8.36000000],[1787883480000,8.40000000],[1787883780000,8.52000000],[1787884080000,8.38000000],[1787884380000,8.52000000],[1787884680000,8.72000000],[1787884980000,8.30000000],[1787885280000,8.32000000],[1787885580000,8.50000000],[1787885880000,8.90000000],[1787886180000,9.42000000],[1787886480000,9.64000000],[1787886780000,9.94000000],[1787887080000,10.00000000],[1787887380000,10.16000000],[1787887680000,10.28000000],[1787887980000,10.48000000],[1787888280000,10.30000000],[1787888580000,10.48000000],[1787888880000,10.32000000],[1787889180000,10.64000000],[1787889480000,10.74000000],[1787889780000,10.96000000],[1787890080000,10.40000000],[1787890380000,10.18000000],[1787890680000,10.40000000],[1787890980000,10.70000000],[1787891280000,11.00000000],[1787891580000,11.66000000],[1787891880000,12.56000000],[1787892180000,13.58000000],[1787892480000,14.94000000],[1787892780000,15.90000000],[1787893080000,16.84000000],[1787893380000,17.58000000],[1787893680000,17.90000000],[1787893980000,18.64000000],[1787894280000,19.18000000],[1787894580000,19.48000000],[1787894880000,19.77500000],], 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,91.00000000],[1787868180000,88.78000000],[1787868480000,88.54000000],[1787868780000,89.70000000],[1787869080000,90.62000000],[1787869380000,91.00000000],[1787869680000,91.78000000],[1787869980000,92.00000000],[1787870280000,92.00000000],[1787870580000,92.00000000],[1787870880000,92.04000000],[1787871180000,92.40000000],[1787871480000,92.74000000],[1787871780000,92.04000000],[1787872080000,92.04000000],[1787872380000,91.98000000],[1787872680000,91.70000000],[1787872980000,91.00000000],[1787873280000,91.62000000],[1787873580000,91.36000000],[1787873880000,91.00000000],[1787874180000,91.04000000],[1787874480000,91.34000000],[1787874780000,91.20000000],[1787875080000,91.75000000],[1787875380000,90.56000000],[1787875680000,90.00000000],[1787875980000,90.00000000],[1787876280000,89.58000000],[1787876580000,89.32000000],[1787876880000,87.98000000],[1787877180000,85.36000000],[1787877480000,84.00000000],[1787877780000,82.30000000],[1787878080000,82.88000000],[1787878380000,85.58000000],[1787878680000,88.42000000],[1787878980000,90.42000000],[1787879280000,91.00000000],[1787879580000,91.00000000],[1787879880000,92.44000000],[1787880180000,93.00000000],[1787880480000,93.00000000],[1787880780000,92.50000000],[1787881080000,91.82000000],[1787881380000,91.80000000],[1787881680000,92.24000000],[1787881980000,92.24000000],[1787882280000,92.52000000],[1787882580000,92.00000000],[1787882880000,92.00000000],[1787883180000,92.00000000],[1787883480000,92.58000000],[1787883780000,92.00000000],[1787884080000,92.00000000],[1787884380000,92.58000000],[1787884680000,92.66000000],[1787884980000,91.34000000],[1787885280000,92.68000000],[1787885580000,91.72000000],[1787885880000,88.10000000],[1787886180000,80.80000000],[1787886480000,75.46000000],[1787886780000,74.52000000],[1787887080000,72.02000000],[1787887380000,68.94000000],[1787887680000,67.58000000],[1787887980000,66.58000000],[1787888280000,67.56000000],[1787888580000,66.32000000],[1787888880000,66.60000000],[1787889180000,66.42000000],[1787889480000,66.34000000],[1787889780000,65.24000000],[1787890080000,66.82000000],[1787890380000,70.54000000],[1787890680000,70.58000000],[1787890980000,67.72000000],[1787891280000,66.76000000],[1787891580000,64.36000000],[1787891880000,66.36000000],[1787892180000,63.46000000],[1787892480000,57.76000000],[1787892780000,56.44000000],[1787893080000,56.20000000],[1787893380000,56.16000000],[1787893680000,57.28000000],[1787893980000,56.96000000],[1787894280000,57.50000000],[1787894580000,56.86000000],[1787894880000,55.57500000],], 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,1025.5],[1787868180000,1025.3],[1787868480000,1025.5],[1787868780000,1025.6],[1787869080000,1025.7],[1787869380000,1025.8],[1787869680000,1025.9],[1787869980000,1025.8],[1787870280000,1025.8],[1787870580000,1025.7],[1787870880000,1025.7],[1787871180000,1025.7],[1787871480000,1025.7],[1787871780000,1025.8],[1787872080000,1025.7],[1787872380000,1025.7],[1787872680000,1025.7],[1787872980000,1025.8],[1787873280000,1025.7],[1787873580000,1025.6],[1787873880000,1025.7],[1787874180000,1025.6],[1787874480000,1025.6],[1787874780000,1025.8],[1787875080000,1025.7],[1787875380000,1025.6],[1787875680000,1025.6],[1787875980000,1025.6],[1787876280000,1025.5],[1787876580000,1025.4],[1787876880000,1025.3],[1787877180000,1025.1],[1787877480000,1025],[1787877780000,1024.8],[1787878080000,1025],[1787878380000,1025.2],[1787878680000,1025.4],[1787878980000,1025.4],[1787879280000,1025.4],[1787879580000,1025.3],[1787879880000,1025.2],[1787880180000,1025.2],[1787880480000,1025.2],[1787880780000,1025.1],[1787881080000,1025],[1787881380000,1025.1],[1787881680000,1025],[1787881980000,1025.1],[1787882280000,1025],[1787882580000,1025.1],[1787882880000,1025.1],[1787883180000,1025.1],[1787883480000,1025],[1787883780000,1024.9],[1787884080000,1025],[1787884380000,1024.9],[1787884680000,1024.8],[1787884980000,1025],[1787885280000,1024.9],[1787885580000,1024.8],[1787885880000,1024.6],[1787886180000,1024.1],[1787886480000,1023.9],[1787886780000,1023.9],[1787887080000,1023.8],[1787887380000,1023.5],[1787887680000,1023.5],[1787887980000,1023.5],[1787888280000,1023.7],[1787888580000,1023.7],[1787888880000,1023.8],[1787889180000,1023.7],[1787889480000,1023.7],[1787889780000,1023.7],[1787890080000,1023.9],[1787890380000,1024.1],[1787890680000,1024.2],[1787890980000,1024],[1787891280000,1023.9],[1787891580000,1023.7],[1787891880000,1023.8],[1787892180000,1023.6],[1787892480000,1023.4],[1787892780000,1023.2],[1787893080000,1023.2],[1787893380000,1023.1],[1787893680000,1023.1],[1787893980000,1023.1],[1787894280000,1023.1],[1787894580000,1023.1],[1787894880000,1023.1],], 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,5.04],[1787868180000,4.464],[1787868480000,2.664],[1787868780000,4.104],[1787869080000,3.312],[1787869380000,3.024],[1787869680000,3.6],[1787869980000,4.032],[1787870280000,4.032],[1787870580000,4.032],[1787870880000,4.176],[1787871180000,4.824],[1787871480000,4.536],[1787871780000,3.384],[1787872080000,3.024],[1787872380000,2.88],[1787872680000,2.88],[1787872980000,1.728],[1787873280000,1.872],[1787873580000,1.8],[1787873880000,1.296],[1787874180000,1.728],[1787874480000,2.232],[1787874780000,2.304],[1787875080000,2.07],[1787875380000,1.296],[1787875680000,1.512],[1787875980000,2.016],[1787876280000,2.88],[1787876580000,2.52],[1787876880000,1.44],[1787877180000,3.24],[1787877480000,3.312],[1787877780000,2.88],[1787878080000,1.728],[1787878380000,2.88],[1787878680000,2.52],[1787878980000,3.672],[1787879280000,2.376],[1787879580000,1.44],[1787879880000,1.296],[1787880180000,1.08],[1787880480000,0.576],[1787880780000,1.656],[1787881080000,2.088],[1787881380000,1.944],[1787881680000,2.376],[1787881980000,2.52],[1787882280000,2.664],[1787882580000,2.16],[1787882880000,1.44],[1787883180000,3.168],[1787883480000,1.872],[1787883780000,2.304],[1787884080000,2.088],[1787884380000,1.944],[1787884680000,1.944],[1787884980000,2.448],[1787885280000,3.744],[1787885580000,7.632],[1787885880000,5.4],[1787886180000,2.736],[1787886480000,2.736],[1787886780000,2.16],[1787887080000,3.024],[1787887380000,3.816],[1787887680000,3.528],[1787887980000,2.16],[1787888280000,3.096],[1787888580000,3.096],[1787888880000,3.456],[1787889180000,2.808],[1787889480000,2.952],[1787889780000,2.304],[1787890080000,4.032],[1787890380000,3.312],[1787890680000,2.736],[1787890980000,2.808],[1787891280000,4.248],[1787891580000,3.168],[1787891880000,4.752],[1787892180000,5.328],[1787892480000,3.744],[1787892780000,3.744],[1787893080000,2.448],[1787893380000,3.456],[1787893680000,3.888],[1787893980000,3.312],[1787894280000,3.528],[1787894580000,2.664],[1787894880000,2.25],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787868000000,6.12],[1787868180000,6.264],[1787868480000,3.744],[1787868780000,5.544],[1787869080000,4.464],[1787869380000,4.32],[1787869680000,4.608],[1787869980000,5.184],[1787870280000,4.824],[1787870580000,4.824],[1787870880000,5.04],[1787871180000,5.688],[1787871480000,5.4],[1787871780000,4.392],[1787872080000,3.744],[1787872380000,3.744],[1787872680000,3.96],[1787872980000,2.448],[1787873280000,2.592],[1787873580000,2.376],[1787873880000,1.728],[1787874180000,2.376],[1787874480000,2.88],[1787874780000,2.592],[1787875080000,2.7],[1787875380000,1.584],[1787875680000,2.16],[1787875980000,2.592],[1787876280000,3.456],[1787876580000,3.888],[1787876880000,2.088],[1787877180000,4.32],[1787877480000,4.248],[1787877780000,3.96],[1787878080000,2.736],[1787878380000,4.248],[1787878680000,3.672],[1787878980000,4.824],[1787879280000,3.672],[1787879580000,2.16],[1787879880000,1.8],[1787880180000,1.44],[1787880480000,1.008],[1787880780000,2.52],[1787881080000,3.384],[1787881380000,2.52],[1787881680000,3.096],[1787881980000,3.168],[1787882280000,3.168],[1787882580000,2.448],[1787882880000,2.088],[1787883180000,4.104],[1787883480000,2.736],[1787883780000,3.312],[1787884080000,2.592],[1787884380000,2.592],[1787884680000,2.952],[1787884980000,3.816],[1787885280000,5.112],[1787885580000,9.216],[1787885880000,7.776],[1787886180000,4.968],[1787886480000,4.248],[1787886780000,4.176],[1787887080000,5.184],[1787887380000,5.688],[1787887680000,5.184],[1787887980000,3.384],[1787888280000,5.688],[1787888580000,5.04],[1787888880000,5.832],[1787889180000,5.616],[1787889480000,4.968],[1787889780000,5.112],[1787890080000,4.896],[1787890380000,4.104],[1787890680000,4.104],[1787890980000,4.608],[1787891280000,7.416],[1787891580000,5.184],[1787891880000,6.696],[1787892180000,7.992],[1787892480000,6.48],[1787892780000,6.264],[1787893080000,4.824],[1787893380000,6.696],[1787893680000,5.544],[1787893980000,4.176],[1787894280000,5.544],[1787894580000,4.32],[1787894880000,4.23],], 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,59.83333333],[1787868180000,68.36000000],[1787868480000,108.50000000],[1787868780000,105.28000000],[1787869080000,118.16000000],[1787869380000,129.60000000],[1787869680000,120.74000000],[1787869980000,120.24000000],[1787870280000,98.00000000],[1787870580000,97.18000000],[1787870880000,108.92000000],[1787871180000,109.00000000],[1787871480000,102.74000000],[1787871780000,115.72000000],[1787872080000,94.50000000],[1787872380000,108.06000000],[1787872680000,137.80000000],[1787872980000,160.14000000],[1787873280000,167.08000000],[1787873580000,160.42000000],[1787873880000,159.60000000],[1787874180000,123.26000000],[1787874480000,173.64000000],[1787874780000,223.78000000],[1787875080000,229.60000000],[1787875380000,219.48000000],[1787875680000,272.84000000],[1787875980000,291.58000000],[1787876280000,316.52000000],[1787876580000,288.12000000],[1787876880000,264.02000000],[1787877180000,281.36000000],[1787877480000,256.20000000],[1787877780000,195.50000000],[1787878080000,139.38000000],[1787878380000,120.64000000],[1787878680000,117.18000000],[1787878980000,119.62000000],[1787879280000,190.50000000],[1787879580000,174.26000000],[1787879880000,161.68000000],[1787880180000,185.72000000],[1787880480000,190.88000000],[1787880780000,63.56000000],[1787881080000,89.88000000],[1787881380000,185.98000000],[1787881680000,178.10000000],[1787881980000,145.32000000],[1787882280000,169.26000000],[1787882580000,190.26000000],[1787882880000,235.46000000],[1787883180000,346.24000000],[1787883480000,156.32000000],[1787883780000,106.96000000],[1787884080000,253.28000000],[1787884380000,194.90000000],[1787884680000,94.52000000],[1787884980000,247.16000000],[1787885280000,216.48000000],[1787885580000,297.96000000],[1787885880000,248.26000000],[1787886180000,265.14000000],[1787886480000,244.94000000],[1787886780000,129.72000000],[1787887080000,175.72000000],[1787887380000,204.10000000],[1787887680000,235.54000000],[1787887980000,163.38000000],[1787888280000,162.78000000],[1787888580000,231.50000000],[1787888880000,135.10000000],[1787889180000,125.08000000],[1787889480000,70.30000000],[1787889780000,83.18000000],[1787890080000,300.70000000],[1787890380000,302.18000000],[1787890680000,232.06000000],[1787890980000,247.26000000],[1787891280000,168.30000000],[1787891580000,259.96000000],[1787891880000,293.62000000],[1787892180000,272.78000000],[1787892480000,234.20000000],[1787892780000,152.38000000],[1787893080000,212.04000000],[1787893380000,157.86000000],[1787893680000,224.82000000],[1787893980000,258.28000000],[1787894280000,299.62000000],[1787894580000,254.46000000],[1787894880000,76.07500000],], 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; }