var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787868000000,7.50000000],[1787868180000,7.82000000],[1787868480000,7.88000000],[1787868780000,7.88000000],[1787869080000,7.76000000],[1787869380000,7.66000000],[1787869680000,7.54000000],[1787869980000,7.60000000],[1787870280000,7.26000000],[1787870580000,7.00000000],[1787870880000,7.00000000],[1787871180000,7.14000000],[1787871480000,7.08000000],[1787871780000,7.30000000],[1787872080000,7.04000000],[1787872380000,6.90000000],[1787872680000,6.90000000],[1787872980000,6.80000000],[1787873280000,6.56000000],[1787873580000,6.56000000],[1787873880000,6.78000000],[1787874180000,6.64000000],[1787874480000,6.60000000],[1787874780000,6.60000000],[1787875080000,6.62000000],[1787875380000,6.64000000],[1787875680000,6.62000000],[1787875980000,6.62000000],[1787876280000,6.78000000],[1787876580000,6.58000000],[1787876880000,6.64000000],[1787877180000,6.54000000],[1787877480000,6.46000000],[1787877780000,6.56000000],[1787878080000,6.76000000],[1787878380000,6.70000000],[1787878680000,6.86000000],[1787878980000,6.50000000],[1787879280000,6.26000000],[1787879580000,6.42000000],[1787879880000,6.62000000],[1787880180000,6.34000000],[1787880480000,6.34000000],[1787880780000,6.20000000],[1787881080000,6.20000000],[1787881380000,6.44000000],[1787881680000,6.28000000],[1787881980000,6.54000000],[1787882280000,6.28000000],[1787882580000,6.60000000],[1787882880000,6.52000000],[1787883180000,6.58000000],[1787883480000,6.52000000],[1787883780000,6.24000000],[1787884080000,6.28000000],[1787884380000,6.38000000],[1787884680000,6.68000000],[1787884980000,6.20000000],[1787885280000,6.62000000],[1787885580000,6.60000000],[1787885880000,6.40000000],[1787886180000,6.40000000],[1787886480000,6.22000000],[1787886780000,6.70000000],[1787887080000,6.58000000],[1787887380000,6.54000000],[1787887680000,6.46000000],[1787887980000,6.62000000],[1787888280000,6.28000000],[1787888580000,6.00000000],[1787888880000,5.86000000],[1787889180000,5.82000000],[1787889480000,5.88000000],[1787889780000,5.76000000],[1787890080000,5.84000000],[1787890380000,5.88000000],[1787890680000,5.90000000],[1787890980000,6.14000000],[1787891280000,6.12000000],[1787891580000,6.46000000],[1787891880000,6.22000000],[1787892180000,6.62000000],[1787892480000,6.72000000],[1787892780000,6.58000000],[1787893080000,6.62000000],[1787893380000,6.74000000],[1787893680000,6.78000000],[1787893980000,7.40000000],[1787894280000,8.18000000],[1787894580000,8.80000000],[1787894880000,9.28000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787868000000,6.2],[1787868180000,6.6],[1787868480000,6.6],[1787868780000,6.7],[1787869080000,6.5],[1787869380000,6.4],[1787869680000,6.3],[1787869980000,6.4],[1787870280000,6],[1787870580000,5.7],[1787870880000,5.8],[1787871180000,5.9],[1787871480000,5.9],[1787871780000,6.1],[1787872080000,5.9],[1787872380000,5.7],[1787872680000,5.7],[1787872980000,5.6],[1787873280000,5.4],[1787873580000,5.4],[1787873880000,5.6],[1787874180000,5.5],[1787874480000,5.4],[1787874780000,5.4],[1787875080000,5.5],[1787875380000,5.5],[1787875680000,5.5],[1787875980000,5.5],[1787876280000,5.7],[1787876580000,5.4],[1787876880000,5.5],[1787877180000,5.4],[1787877480000,5.3],[1787877780000,5.4],[1787878080000,5.6],[1787878380000,5.6],[1787878680000,5.7],[1787878980000,5.4],[1787879280000,5.1],[1787879580000,5.3],[1787879880000,5.5],[1787880180000,5.2],[1787880480000,5.2],[1787880780000,5.1],[1787881080000,5.1],[1787881380000,5.3],[1787881680000,5.2],[1787881980000,5.4],[1787882280000,5.2],[1787882580000,5.5],[1787882880000,5.4],[1787883180000,5.5],[1787883480000,5.4],[1787883780000,5.1],[1787884080000,5.2],[1787884380000,5.3],[1787884680000,5.6],[1787884980000,5.1],[1787885280000,5.5],[1787885580000,5.5],[1787885880000,5.3],[1787886180000,5.3],[1787886480000,5.1],[1787886780000,5.6],[1787887080000,5.5],[1787887380000,5.5],[1787887680000,5.4],[1787887980000,5.5],[1787888280000,5.2],[1787888580000,4.9],[1787888880000,4.8],[1787889180000,4.7],[1787889480000,4.8],[1787889780000,4.7],[1787890080000,4.7],[1787890380000,4.8],[1787890680000,4.8],[1787890980000,5.1],[1787891280000,5],[1787891580000,5.4],[1787891880000,5.1],[1787892180000,5.6],[1787892480000,5.7],[1787892780000,5.5],[1787893080000,5.6],[1787893380000,5.7],[1787893680000,5.7],[1787893980000,6.4],[1787894280000,7.1],[1787894580000,7.8],[1787894880000,8.2],], 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,5.36666667],[1787868180000,5.42000000],[1787868480000,5.52000000],[1787868780000,5.32000000],[1787869080000,5.18000000],[1787869380000,4.82000000],[1787869680000,5.04000000],[1787869980000,4.50000000],[1787870280000,4.68000000],[1787870580000,4.76000000],[1787870880000,4.46000000],[1787871180000,4.54000000],[1787871480000,5.04000000],[1787871780000,5.26000000],[1787872080000,5.18000000],[1787872380000,5.02000000],[1787872680000,4.80000000],[1787872980000,5.04000000],[1787873280000,4.90000000],[1787873580000,4.88000000],[1787873880000,4.88000000],[1787874180000,4.86000000],[1787874480000,4.96000000],[1787874780000,4.56000000],[1787875080000,4.40000000],[1787875380000,4.30000000],[1787875680000,4.42000000],[1787875980000,4.38000000],[1787876280000,3.86000000],[1787876580000,4.40000000],[1787876880000,4.08000000],[1787877180000,4.06000000],[1787877480000,4.16000000],[1787877780000,4.04000000],[1787878080000,4.50000000],[1787878380000,4.42000000],[1787878680000,4.02000000],[1787878980000,4.40000000],[1787879280000,4.30000000],[1787879580000,3.78000000],[1787879880000,4.26000000],[1787880180000,3.96000000],[1787880480000,3.76000000],[1787880780000,3.94000000],[1787881080000,3.58000000],[1787881380000,3.42000000],[1787881680000,3.92000000],[1787881980000,4.44000000],[1787882280000,4.16000000],[1787882580000,4.62000000],[1787882880000,4.28000000],[1787883180000,3.78000000],[1787883480000,3.50000000],[1787883780000,3.46000000],[1787884080000,3.30000000],[1787884380000,3.70000000],[1787884680000,4.50000000],[1787884980000,3.74000000],[1787885280000,4.56000000],[1787885580000,4.28000000],[1787885880000,3.70000000],[1787886180000,3.44000000],[1787886480000,3.10000000],[1787886780000,3.42000000],[1787887080000,3.58000000],[1787887380000,3.26000000],[1787887680000,3.54000000],[1787887980000,4.24000000],[1787888280000,4.04000000],[1787888580000,3.50000000],[1787888880000,3.16000000],[1787889180000,3.28000000],[1787889480000,3.20000000],[1787889780000,3.06000000],[1787890080000,3.66000000],[1787890380000,4.04000000],[1787890680000,3.88000000],[1787890980000,3.88000000],[1787891280000,4.72000000],[1787891580000,5.02000000],[1787891880000,4.88000000],[1787892180000,5.36000000],[1787892480000,5.18000000],[1787892780000,5.12000000],[1787893080000,5.10000000],[1787893380000,5.28000000],[1787893680000,5.84000000],[1787893980000,7.70000000],[1787894280000,8.92000000],[1787894580000,9.22000000],[1787894880000,9.30000000],], color: "#f39c12"}]; var options = { points: { show: false }, lines: { show: true, lineWidth: 2, fill: false }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser' }, grid: { hoverable: true, clickable: true, borderWidth: 0 }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-ground-temperature-legend' } }; graphs['#chart-ground-temperature'] = $.plot('#chart-ground-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1787868000000,91.40000000],[1787868180000,91.78000000],[1787868480000,92.00000000],[1787868780000,92.06000000],[1787869080000,91.96000000],[1787869380000,91.92000000],[1787869680000,91.96000000],[1787869980000,92.08000000],[1787870280000,91.96000000],[1787870580000,91.82000000],[1787870880000,91.98000000],[1787871180000,92.20000000],[1787871480000,92.24000000],[1787871780000,92.36000000],[1787872080000,92.30000000],[1787872380000,92.26000000],[1787872680000,92.24000000],[1787872980000,92.28000000],[1787873280000,92.20000000],[1787873580000,92.24000000],[1787873880000,92.36000000],[1787874180000,92.40000000],[1787874480000,92.40000000],[1787874780000,92.40000000],[1787875080000,92.48000000],[1787875380000,92.50000000],[1787875680000,92.52000000],[1787875980000,92.50000000],[1787876280000,92.60000000],[1787876580000,92.58000000],[1787876880000,92.58000000],[1787877180000,92.60000000],[1787877480000,92.58000000],[1787877780000,92.56000000],[1787878080000,92.68000000],[1787878380000,92.70000000],[1787878680000,92.70000000],[1787878980000,92.68000000],[1787879280000,92.60000000],[1787879580000,92.60000000],[1787879880000,92.70000000],[1787880180000,92.70000000],[1787880480000,92.68000000],[1787880780000,92.62000000],[1787881080000,92.62000000],[1787881380000,92.70000000],[1787881680000,92.70000000],[1787881980000,92.80000000],[1787882280000,92.80000000],[1787882580000,92.82000000],[1787882880000,92.82000000],[1787883180000,92.90000000],[1787883480000,92.90000000],[1787883780000,92.82000000],[1787884080000,92.80000000],[1787884380000,92.84000000],[1787884680000,92.90000000],[1787884980000,92.86000000],[1787885280000,92.96000000],[1787885580000,93.00000000],[1787885880000,92.90000000],[1787886180000,92.90000000],[1787886480000,92.90000000],[1787886780000,92.94000000],[1787887080000,92.94000000],[1787887380000,92.92000000],[1787887680000,92.90000000],[1787887980000,92.90000000],[1787888280000,92.84000000],[1787888580000,92.72000000],[1787888880000,92.70000000],[1787889180000,92.70000000],[1787889480000,92.70000000],[1787889780000,92.74000000],[1787890080000,92.80000000],[1787890380000,92.80000000],[1787890680000,92.80000000],[1787890980000,92.88000000],[1787891280000,92.90000000],[1787891580000,93.00000000],[1787891880000,92.94000000],[1787892180000,93.00000000],[1787892480000,93.08000000],[1787892780000,93.02000000],[1787893080000,93.00000000],[1787893380000,93.00000000],[1787893680000,93.00000000],[1787893980000,93.14000000],[1787894280000,93.26000000],[1787894580000,93.30000000],[1787894880000,93.12000000],], 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,1023.8],[1787868180000,1023.7],[1787868480000,1023.6],[1787868780000,1023.5],[1787869080000,1023.6],[1787869380000,1023.5],[1787869680000,1023.5],[1787869980000,1023.5],[1787870280000,1023.5],[1787870580000,1023.6],[1787870880000,1023.7],[1787871180000,1023.7],[1787871480000,1023.6],[1787871780000,1023.5],[1787872080000,1023.5],[1787872380000,1023.5],[1787872680000,1023.5],[1787872980000,1023.6],[1787873280000,1023.7],[1787873580000,1023.6],[1787873880000,1023.6],[1787874180000,1023.6],[1787874480000,1023.5],[1787874780000,1023.5],[1787875080000,1023.5],[1787875380000,1023.4],[1787875680000,1023.4],[1787875980000,1023.5],[1787876280000,1023.4],[1787876580000,1023.5],[1787876880000,1023.5],[1787877180000,1023.5],[1787877480000,1023.4],[1787877780000,1023.4],[1787878080000,1023.3],[1787878380000,1023.4],[1787878680000,1023.3],[1787878980000,1023.4],[1787879280000,1023.4],[1787879580000,1023.2],[1787879880000,1023.2],[1787880180000,1023.2],[1787880480000,1023.2],[1787880780000,1023.1],[1787881080000,1023.1],[1787881380000,1022.9],[1787881680000,1023],[1787881980000,1022.9],[1787882280000,1022.9],[1787882580000,1022.8],[1787882880000,1022.7],[1787883180000,1022.6],[1787883480000,1022.7],[1787883780000,1022.6],[1787884080000,1022.6],[1787884380000,1022.5],[1787884680000,1022.4],[1787884980000,1022.5],[1787885280000,1022.4],[1787885580000,1022.5],[1787885880000,1022.6],[1787886180000,1022.6],[1787886480000,1022.5],[1787886780000,1022.3],[1787887080000,1022.3],[1787887380000,1022.3],[1787887680000,1022.4],[1787887980000,1022.4],[1787888280000,1022.5],[1787888580000,1022.5],[1787888880000,1022.5],[1787889180000,1022.6],[1787889480000,1022.6],[1787889780000,1022.5],[1787890080000,1022.5],[1787890380000,1022.5],[1787890680000,1022.5],[1787890980000,1022.4],[1787891280000,1022.4],[1787891580000,1022.4],[1787891880000,1022.6],[1787892180000,1022.5],[1787892480000,1022.5],[1787892780000,1022.5],[1787893080000,1022.5],[1787893380000,1022.4],[1787893680000,1022.3],[1787893980000,1022.2],[1787894280000,1022.1],[1787894580000,1022],[1787894880000,1021.9],], 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.88],[1787868180000,2.664],[1787868480000,2.304],[1787868780000,2.448],[1787869080000,2.016],[1787869380000,0.864],[1787869680000,1.872],[1787869980000,1.224],[1787870280000,1.872],[1787870580000,2.016],[1787870880000,1.296],[1787871180000,2.448],[1787871480000,3.528],[1787871780000,3.672],[1787872080000,2.016],[1787872380000,2.232],[1787872680000,2.952],[1787872980000,2.448],[1787873280000,2.736],[1787873580000,2.664],[1787873880000,3.024],[1787874180000,2.088],[1787874480000,2.88],[1787874780000,1.728],[1787875080000,1.296],[1787875380000,1.44],[1787875680000,1.224],[1787875980000,1.08],[1787876280000,1.8],[1787876580000,2.016],[1787876880000,2.664],[1787877180000,2.016],[1787877480000,1.656],[1787877780000,3.744],[1787878080000,2.232],[1787878380000,2.448],[1787878680000,2.16],[1787878980000,2.088],[1787879280000,2.16],[1787879580000,2.16],[1787879880000,2.448],[1787880180000,1.8],[1787880480000,2.088],[1787880780000,2.232],[1787881080000,1.872],[1787881380000,2.232],[1787881680000,2.448],[1787881980000,2.232],[1787882280000,3.384],[1787882580000,2.664],[1787882880000,1.944],[1787883180000,1.512],[1787883480000,1.368],[1787883780000,1.224],[1787884080000,2.016],[1787884380000,2.304],[1787884680000,2.088],[1787884980000,3.312],[1787885280000,2.736],[1787885580000,1.944],[1787885880000,1.8],[1787886180000,2.16],[1787886480000,2.448],[1787886780000,2.16],[1787887080000,2.016],[1787887380000,2.808],[1787887680000,3.456],[1787887980000,2.952],[1787888280000,1.368],[1787888580000,2.52],[1787888880000,1.8],[1787889180000,2.016],[1787889480000,1.296],[1787889780000,2.808],[1787890080000,2.808],[1787890380000,1.584],[1787890680000,2.016],[1787890980000,1.296],[1787891280000,2.088],[1787891580000,2.52],[1787891880000,3.096],[1787892180000,1.944],[1787892480000,1.368],[1787892780000,1.512],[1787893080000,2.232],[1787893380000,1.8],[1787893680000,1.08],[1787893980000,0.504],[1787894280000,0.864],[1787894580000,1.152],[1787894880000,2.016],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787868000000,3.24],[1787868180000,3.168],[1787868480000,2.736],[1787868780000,2.808],[1787869080000,2.664],[1787869380000,1.224],[1787869680000,2.376],[1787869980000,1.656],[1787870280000,2.088],[1787870580000,2.448],[1787870880000,1.512],[1787871180000,3.096],[1787871480000,4.248],[1787871780000,4.464],[1787872080000,2.808],[1787872380000,3.024],[1787872680000,4.248],[1787872980000,3.6],[1787873280000,3.168],[1787873580000,3.528],[1787873880000,3.816],[1787874180000,2.736],[1787874480000,3.312],[1787874780000,2.52],[1787875080000,1.728],[1787875380000,1.8],[1787875680000,1.656],[1787875980000,1.44],[1787876280000,2.232],[1787876580000,2.376],[1787876880000,3.24],[1787877180000,2.52],[1787877480000,2.232],[1787877780000,4.608],[1787878080000,2.664],[1787878380000,2.736],[1787878680000,2.736],[1787878980000,2.592],[1787879280000,3.024],[1787879580000,2.736],[1787879880000,2.736],[1787880180000,2.448],[1787880480000,2.592],[1787880780000,2.88],[1787881080000,2.52],[1787881380000,3.024],[1787881680000,2.952],[1787881980000,2.952],[1787882280000,4.68],[1787882580000,3.312],[1787882880000,2.52],[1787883180000,2.376],[1787883480000,1.944],[1787883780000,1.872],[1787884080000,2.592],[1787884380000,3.096],[1787884680000,2.664],[1787884980000,4.536],[1787885280000,3.888],[1787885580000,2.808],[1787885880000,2.448],[1787886180000,3.024],[1787886480000,3.024],[1787886780000,3.024],[1787887080000,2.808],[1787887380000,3.888],[1787887680000,4.32],[1787887980000,3.6],[1787888280000,1.944],[1787888580000,3.312],[1787888880000,2.592],[1787889180000,2.736],[1787889480000,2.016],[1787889780000,3.384],[1787890080000,3.168],[1787890380000,2.448],[1787890680000,2.88],[1787890980000,1.8],[1787891280000,2.736],[1787891580000,3.24],[1787891880000,3.888],[1787892180000,2.952],[1787892480000,2.232],[1787892780000,2.232],[1787893080000,2.952],[1787893380000,2.16],[1787893680000,1.584],[1787893980000,0.936],[1787894280000,1.296],[1787894580000,1.656],[1787894880000,2.664],], 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,141.03333333],[1787868180000,147.94000000],[1787868480000,133.52000000],[1787868780000,98.86000000],[1787869080000,105.54000000],[1787869380000,162.26000000],[1787869680000,192.66000000],[1787869980000,146.08000000],[1787870280000,141.50000000],[1787870580000,132.38000000],[1787870880000,116.44000000],[1787871180000,177.12000000],[1787871480000,159.94000000],[1787871780000,119.30000000],[1787872080000,144.00000000],[1787872380000,179.60000000],[1787872680000,122.72000000],[1787872980000,121.52000000],[1787873280000,131.96000000],[1787873580000,141.86000000],[1787873880000,123.36000000],[1787874180000,104.58000000],[1787874480000,131.80000000],[1787874780000,133.82000000],[1787875080000,92.32000000],[1787875380000,129.88000000],[1787875680000,88.70000000],[1787875980000,166.70000000],[1787876280000,87.62000000],[1787876580000,152.70000000],[1787876880000,125.38000000],[1787877180000,85.34000000],[1787877480000,109.80000000],[1787877780000,130.72000000],[1787878080000,112.34000000],[1787878380000,125.14000000],[1787878680000,106.54000000],[1787878980000,83.38000000],[1787879280000,145.12000000],[1787879580000,130.10000000],[1787879880000,142.48000000],[1787880180000,131.52000000],[1787880480000,104.84000000],[1787880780000,77.56000000],[1787881080000,139.98000000],[1787881380000,166.62000000],[1787881680000,164.02000000],[1787881980000,121.66000000],[1787882280000,165.32000000],[1787882580000,130.68000000],[1787882880000,141.90000000],[1787883180000,110.50000000],[1787883480000,97.52000000],[1787883780000,191.88000000],[1787884080000,169.02000000],[1787884380000,139.86000000],[1787884680000,141.78000000],[1787884980000,164.52000000],[1787885280000,133.80000000],[1787885580000,127.52000000],[1787885880000,104.50000000],[1787886180000,144.76000000],[1787886480000,162.88000000],[1787886780000,136.04000000],[1787887080000,153.24000000],[1787887380000,177.44000000],[1787887680000,158.82000000],[1787887980000,97.46000000],[1787888280000,108.86000000],[1787888580000,112.90000000],[1787888880000,126.08000000],[1787889180000,92.02000000],[1787889480000,138.18000000],[1787889780000,112.46000000],[1787890080000,149.46000000],[1787890380000,142.02000000],[1787890680000,155.14000000],[1787890980000,115.00000000],[1787891280000,115.48000000],[1787891580000,117.18000000],[1787891880000,152.14000000],[1787892180000,108.14000000],[1787892480000,117.44000000],[1787892780000,201.02000000],[1787893080000,101.58000000],[1787893380000,132.54000000],[1787893680000,149.74000000],[1787893980000,127.40000000],[1787894280000,82.12000000],[1787894580000,87.34000000],[1787894880000,81.84000000],], 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; }