var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787868000000,18.90000000],[1787868180000,18.86000000],[1787868480000,18.80000000],[1787868780000,18.68000000],[1787869080000,18.54000000],[1787869380000,18.38000000],[1787869680000,18.30000000],[1787869980000,18.18000000],[1787870280000,18.04000000],[1787870580000,18.00000000],[1787870880000,18.10000000],[1787871180000,18.12000000],[1787871480000,18.10000000],[1787871780000,18.12000000],[1787872080000,17.98000000],[1787872380000,17.90000000],[1787872680000,17.92000000],[1787872980000,17.86000000],[1787873280000,17.88000000],[1787873580000,17.72000000],[1787873880000,17.58000000],[1787874180000,17.60000000],[1787874480000,17.44000000],[1787874780000,17.40000000],[1787875080000,17.46000000],[1787875380000,17.60000000],[1787875680000,17.52000000],[1787875980000,17.48000000],[1787876280000,17.60000000],[1787876580000,17.44000000],[1787876880000,17.36000000],[1787877180000,17.06000000],[1787877480000,16.70000000],[1787877780000,16.36000000],[1787878080000,16.06000000],[1787878380000,15.82000000],[1787878680000,15.80000000],[1787878980000,15.68000000],[1787879280000,15.38000000],[1787879580000,15.10000000],[1787879880000,14.90000000],[1787880180000,14.84000000],[1787880480000,14.84000000],[1787880780000,14.90000000],[1787881080000,14.84000000],[1787881380000,14.70000000],[1787881680000,14.54000000],[1787881980000,14.42000000],[1787882280000,14.36000000],[1787882580000,14.32000000],[1787882880000,14.28000000],[1787883180000,14.20000000],[1787883480000,14.22000000],[1787883780000,14.20000000],[1787884080000,14.12000000],[1787884380000,14.04000000],[1787884680000,13.90000000],[1787884980000,13.76000000],[1787885280000,13.68000000],[1787885580000,13.78000000],[1787885880000,13.72000000],[1787886180000,13.52000000],[1787886480000,13.40000000],[1787886780000,13.30000000],[1787887080000,13.24000000],[1787887380000,13.12000000],[1787887680000,13.10000000],[1787887980000,13.02000000],[1787888280000,13.00000000],[1787888580000,13.04000000],[1787888880000,13.00000000],[1787889180000,13.04000000],[1787889480000,13.08000000],[1787889780000,13.00000000],[1787890080000,13.04000000],[1787890380000,13.16000000],[1787890680000,13.20000000],[1787890980000,13.30000000],[1787891280000,13.34000000],[1787891580000,13.46000000],[1787891880000,13.54000000],[1787892180000,13.72000000],[1787892480000,13.92000000],[1787892780000,14.10000000],[1787893080000,14.24000000],[1787893380000,14.44000000],[1787893680000,14.72000000],[1787893980000,14.94000000],[1787894280000,15.10000000],[1787894580000,15.10000000],[1787894880000,15.28000000],[1787895180000,15.40000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787868000000,7.7],[1787868180000,7.7],[1787868480000,7.7],[1787868780000,7.8],[1787869080000,7.9],[1787869380000,7.7],[1787869680000,7.8],[1787869980000,8.1],[1787870280000,8],[1787870580000,7.8],[1787870880000,7.5],[1787871180000,7.5],[1787871480000,7.4],[1787871780000,7.4],[1787872080000,7.5],[1787872380000,7.2],[1787872680000,7.2],[1787872980000,7.1],[1787873280000,7.1],[1787873580000,7.1],[1787873880000,7],[1787874180000,6.9],[1787874480000,7],[1787874780000,6.8],[1787875080000,6.7],[1787875380000,6.7],[1787875680000,6.8],[1787875980000,6.8],[1787876280000,6.7],[1787876580000,6.8],[1787876880000,6.9],[1787877180000,7.3],[1787877480000,7.9],[1787877780000,8.5],[1787878080000,8.4],[1787878380000,8.3],[1787878680000,8.1],[1787878980000,8.6],[1787879280000,8.7],[1787879580000,8.7],[1787879880000,8.6],[1787880180000,8.5],[1787880480000,8.5],[1787880780000,8.4],[1787881080000,8.5],[1787881380000,8.6],[1787881680000,8.6],[1787881980000,8.6],[1787882280000,8.6],[1787882580000,8.6],[1787882880000,8.6],[1787883180000,8.7],[1787883480000,8.6],[1787883780000,8.7],[1787884080000,8.7],[1787884380000,8.7],[1787884680000,8.7],[1787884980000,8.7],[1787885280000,8.7],[1787885580000,8.5],[1787885880000,8.7],[1787886180000,8.8],[1787886480000,8.8],[1787886780000,8.7],[1787887080000,8.7],[1787887380000,8.6],[1787887680000,8.6],[1787887980000,8.6],[1787888280000,8.5],[1787888580000,8.5],[1787888880000,8.6],[1787889180000,8.6],[1787889480000,8.7],[1787889780000,8.6],[1787890080000,8.7],[1787890380000,8.7],[1787890680000,8.8],[1787890980000,8.8],[1787891280000,8.8],[1787891580000,9],[1787891880000,8.9],[1787892180000,9],[1787892480000,9.1],[1787892780000,9.2],[1787893080000,9.1],[1787893380000,9.2],[1787893680000,9.3],[1787893980000,9.4],[1787894280000,9.4],[1787894580000,9.4],[1787894880000,9.4],[1787895180000,9.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,15.70000000],[1787868180000,15.72000000],[1787868480000,15.60000000],[1787868780000,15.14000000],[1787869080000,15.26000000],[1787869380000,15.64000000],[1787869680000,16.28000000],[1787869980000,16.20000000],[1787870280000,16.08000000],[1787870580000,16.08000000],[1787870880000,16.16000000],[1787871180000,16.04000000],[1787871480000,16.02000000],[1787871780000,16.04000000],[1787872080000,15.00000000],[1787872380000,14.36000000],[1787872680000,14.46000000],[1787872980000,14.32000000],[1787873280000,14.44000000],[1787873580000,13.52000000],[1787873880000,13.34000000],[1787874180000,13.62000000],[1787874480000,13.46000000],[1787874780000,14.24000000],[1787875080000,14.08000000],[1787875380000,14.80000000],[1787875680000,14.50000000],[1787875980000,14.78000000],[1787876280000,15.28000000],[1787876580000,15.06000000],[1787876880000,14.64000000],[1787877180000,13.96000000],[1787877480000,12.98000000],[1787877780000,12.54000000],[1787878080000,12.82000000],[1787878380000,12.38000000],[1787878680000,11.86000000],[1787878980000,12.00000000],[1787879280000,12.42000000],[1787879580000,11.80000000],[1787879880000,11.66000000],[1787880180000,11.88000000],[1787880480000,11.64000000],[1787880780000,11.64000000],[1787881080000,11.38000000],[1787881380000,11.76000000],[1787881680000,11.70000000],[1787881980000,12.46000000],[1787882280000,12.20000000],[1787882580000,11.46000000],[1787882880000,11.24000000],[1787883180000,10.94000000],[1787883480000,10.36000000],[1787883780000,10.08000000],[1787884080000,10.18000000],[1787884380000,10.32000000],[1787884680000,10.06000000],[1787884980000,10.48000000],[1787885280000,10.62000000],[1787885580000,10.04000000],[1787885880000,10.30000000],[1787886180000,10.12000000],[1787886480000,9.96000000],[1787886780000,10.10000000],[1787887080000,9.92000000],[1787887380000,9.98000000],[1787887680000,10.78000000],[1787887980000,10.24000000],[1787888280000,9.92000000],[1787888580000,9.96000000],[1787888880000,10.08000000],[1787889180000,10.60000000],[1787889480000,11.08000000],[1787889780000,10.54000000],[1787890080000,10.88000000],[1787890380000,11.74000000],[1787890680000,12.12000000],[1787890980000,12.42000000],[1787891280000,12.70000000],[1787891580000,12.90000000],[1787891880000,13.22000000],[1787892180000,13.56000000],[1787892480000,13.90000000],[1787892780000,14.16000000],[1787893080000,14.48000000],[1787893380000,14.84000000],[1787893680000,15.22000000],[1787893980000,15.52000000],[1787894280000,15.66000000],[1787894580000,15.76000000],[1787894880000,16.04000000],[1787895180000,16.00000000],], 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,48.33333333],[1787868180000,48.64000000],[1787868480000,48.72000000],[1787868780000,49.40000000],[1787869080000,50.04000000],[1787869380000,50.02000000],[1787869680000,50.70000000],[1787869980000,51.84000000],[1787870280000,52.08000000],[1787870580000,51.44000000],[1787870880000,50.26000000],[1787871180000,50.12000000],[1787871480000,49.92000000],[1787871780000,49.68000000],[1787872080000,50.38000000],[1787872380000,49.76000000],[1787872680000,49.54000000],[1787872980000,49.46000000],[1787873280000,49.44000000],[1787873580000,49.88000000],[1787873880000,49.98000000],[1787874180000,49.78000000],[1787874480000,50.64000000],[1787874780000,50.06000000],[1787875080000,49.34000000],[1787875380000,49.16000000],[1787875680000,49.66000000],[1787875980000,49.58000000],[1787876280000,49.16000000],[1787876580000,50.00000000],[1787876880000,50.50000000],[1787877180000,52.80000000],[1787877480000,56.30000000],[1787877780000,59.80000000],[1787878080000,60.68000000],[1787878380000,61.36000000],[1787878680000,60.64000000],[1787878980000,62.86000000],[1787879280000,64.78000000],[1787879580000,65.84000000],[1787879880000,66.00000000],[1787880180000,65.86000000],[1787880480000,65.88000000],[1787880780000,65.48000000],[1787881080000,66.18000000],[1787881380000,67.08000000],[1787881680000,67.96000000],[1787881980000,68.46000000],[1787882280000,68.32000000],[1787882580000,68.50000000],[1787882880000,69.04000000],[1787883180000,69.50000000],[1787883480000,69.00000000],[1787883780000,69.56000000],[1787884080000,69.90000000],[1787884380000,70.48000000],[1787884680000,71.10000000],[1787884980000,71.78000000],[1787885280000,72.02000000],[1787885580000,70.72000000],[1787885880000,71.72000000],[1787886180000,73.16000000],[1787886480000,73.78000000],[1787886780000,73.72000000],[1787887080000,73.94000000],[1787887380000,74.46000000],[1787887680000,74.44000000],[1787887980000,74.76000000],[1787888280000,74.40000000],[1787888580000,74.40000000],[1787888880000,74.72000000],[1787889180000,74.88000000],[1787889480000,74.84000000],[1787889780000,75.04000000],[1787890080000,75.14000000],[1787890380000,74.76000000],[1787890680000,74.76000000],[1787890980000,74.62000000],[1787891280000,74.36000000],[1787891580000,74.42000000],[1787891880000,73.88000000],[1787892180000,73.20000000],[1787892480000,72.80000000],[1787892780000,72.46000000],[1787893080000,71.56000000],[1787893380000,70.96000000],[1787893680000,70.40000000],[1787893980000,69.88000000],[1787894280000,68.96000000],[1787894580000,68.74000000],[1787894880000,68.16000000],[1787895180000,66.70000000],], 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,1019.8],[1787868180000,1019.9],[1787868480000,1020],[1787868780000,1020],[1787869080000,1020.1],[1787869380000,1020.2],[1787869680000,1020.2],[1787869980000,1020.2],[1787870280000,1020.3],[1787870580000,1020.3],[1787870880000,1020.2],[1787871180000,1020.1],[1787871480000,1020.1],[1787871780000,1020.1],[1787872080000,1020.2],[1787872380000,1020.2],[1787872680000,1020.1],[1787872980000,1020.1],[1787873280000,1020.1],[1787873580000,1020.1],[1787873880000,1020.2],[1787874180000,1020.2],[1787874480000,1020.4],[1787874780000,1020.3],[1787875080000,1020.2],[1787875380000,1020.1],[1787875680000,1020.1],[1787875980000,1020],[1787876280000,1019.9],[1787876580000,1019.9],[1787876880000,1019.8],[1787877180000,1019.8],[1787877480000,1019.9],[1787877780000,1020.1],[1787878080000,1020.2],[1787878380000,1020.2],[1787878680000,1020.2],[1787878980000,1020.1],[1787879280000,1020.1],[1787879580000,1020.2],[1787879880000,1020.2],[1787880180000,1020.3],[1787880480000,1020.3],[1787880780000,1020.2],[1787881080000,1020.1],[1787881380000,1020.1],[1787881680000,1020.1],[1787881980000,1020.2],[1787882280000,1020.3],[1787882580000,1020.3],[1787882880000,1020.3],[1787883180000,1020.4],[1787883480000,1020.3],[1787883780000,1020.2],[1787884080000,1020.1],[1787884380000,1020.2],[1787884680000,1020.2],[1787884980000,1020.1],[1787885280000,1020.3],[1787885580000,1020.3],[1787885880000,1020.4],[1787886180000,1020.5],[1787886480000,1020.5],[1787886780000,1020.6],[1787887080000,1020.5],[1787887380000,1020.6],[1787887680000,1020.6],[1787887980000,1020.8],[1787888280000,1020.8],[1787888580000,1020.8],[1787888880000,1020.7],[1787889180000,1020.7],[1787889480000,1020.8],[1787889780000,1020.8],[1787890080000,1020.8],[1787890380000,1020.9],[1787890680000,1020.8],[1787890980000,1020.7],[1787891280000,1020.7],[1787891580000,1020.8],[1787891880000,1020.8],[1787892180000,1020.8],[1787892480000,1020.7],[1787892780000,1020.7],[1787893080000,1020.6],[1787893380000,1020.6],[1787893680000,1020.7],[1787893980000,1020.7],[1787894280000,1020.7],[1787894580000,1020.6],[1787894880000,1020.5],[1787895180000,1020.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: [[1787868000000,6.360000012],[1787868180000,4.104],[1787868480000,4.248],[1787868780000,3.816],[1787869080000,4.392],[1787869380000,7.272],[1787869680000,11.016],[1787869980000,9.432],[1787870280000,7.776],[1787870580000,8.856],[1787870880000,5.832],[1787871180000,6.696],[1787871480000,6.192],[1787871780000,4.176],[1787872080000,2.664],[1787872380000,3.024],[1787872680000,2.448],[1787872980000,4.536],[1787873280000,2.88],[1787873580000,2.952],[1787873880000,3.24],[1787874180000,2.88],[1787874480000,2.952],[1787874780000,5.184],[1787875080000,5.04],[1787875380000,6.192],[1787875680000,4.608],[1787875980000,6.624],[1787876280000,6.264],[1787876580000,5.832],[1787876880000,4.032],[1787877180000,3.024],[1787877480000,3.312],[1787877780000,4.464],[1787878080000,4.464],[1787878380000,3.384],[1787878680000,2.448],[1787878980000,4.608],[1787879280000,6.192],[1787879580000,5.112],[1787879880000,5.616],[1787880180000,4.896],[1787880480000,4.248],[1787880780000,4.248],[1787881080000,5.4],[1787881380000,5.976],[1787881680000,7.2],[1787881980000,8.208],[1787882280000,6.84],[1787882580000,6.264],[1787882880000,4.968],[1787883180000,2.88],[1787883480000,1.584],[1787883780000,2.736],[1787884080000,2.232],[1787884380000,3.384],[1787884680000,4.896],[1787884980000,5.184],[1787885280000,2.88],[1787885580000,3.888],[1787885880000,5.328],[1787886180000,6.264],[1787886480000,4.68],[1787886780000,4.248],[1787887080000,6.552],[1787887380000,6.336],[1787887680000,6.264],[1787887980000,4.536],[1787888280000,4.248],[1787888580000,4.968],[1787888880000,6.12],[1787889180000,6.192],[1787889480000,5.616],[1787889780000,5.76],[1787890080000,5.688],[1787890380000,5.544],[1787890680000,6.408],[1787890980000,5.04],[1787891280000,5.616],[1787891580000,4.824],[1787891880000,4.536],[1787892180000,4.464],[1787892480000,4.248],[1787892780000,4.752],[1787893080000,3.456],[1787893380000,4.032],[1787893680000,3.312],[1787893980000,4.68],[1787894280000,4.104],[1787894580000,5.688],[1787894880000,5.976],[1787895180000,7.2],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787868000000,9.36],[1787868180000,5.544],[1787868480000,6.192],[1787868780000,5.616],[1787869080000,6.912],[1787869380000,11.304],[1787869680000,16.488],[1787869980000,14.04],[1787870280000,11.16],[1787870580000,13.536],[1787870880000,8.496],[1787871180000,10.224],[1787871480000,10.656],[1787871780000,5.904],[1787872080000,4.104],[1787872380000,4.608],[1787872680000,3.528],[1787872980000,7.056],[1787873280000,4.752],[1787873580000,4.608],[1787873880000,4.896],[1787874180000,4.68],[1787874480000,4.824],[1787874780000,7.776],[1787875080000,7.632],[1787875380000,8.928],[1787875680000,6.408],[1787875980000,10.152],[1787876280000,8.712],[1787876580000,7.776],[1787876880000,6.12],[1787877180000,3.744],[1787877480000,3.816],[1787877780000,5.256],[1787878080000,5.76],[1787878380000,4.248],[1787878680000,3.024],[1787878980000,5.616],[1787879280000,6.984],[1787879580000,5.976],[1787879880000,6.696],[1787880180000,5.976],[1787880480000,4.896],[1787880780000,5.328],[1787881080000,6.408],[1787881380000,6.984],[1787881680000,7.776],[1787881980000,9.432],[1787882280000,7.704],[1787882580000,7.2],[1787882880000,6.048],[1787883180000,3.96],[1787883480000,2.304],[1787883780000,3.744],[1787884080000,3.24],[1787884380000,3.816],[1787884680000,5.688],[1787884980000,5.616],[1787885280000,3.528],[1787885580000,4.824],[1787885880000,6.552],[1787886180000,7.272],[1787886480000,5.328],[1787886780000,4.752],[1787887080000,7.272],[1787887380000,7.416],[1787887680000,7.344],[1787887980000,5.184],[1787888280000,5.112],[1787888580000,6.264],[1787888880000,7.056],[1787889180000,6.84],[1787889480000,6.552],[1787889780000,6.408],[1787890080000,6.336],[1787890380000,6.192],[1787890680000,6.984],[1787890980000,6.48],[1787891280000,6.552],[1787891580000,6.048],[1787891880000,5.616],[1787892180000,5.4],[1787892480000,5.04],[1787892780000,6.48],[1787893080000,4.68],[1787893380000,4.896],[1787893680000,4.536],[1787893980000,6.624],[1787894280000,5.544],[1787894580000,7.2],[1787894880000,7.776],[1787895180000,8.28],], 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,142.83333333],[1787868180000,93.88000000],[1787868480000,90.44000000],[1787868780000,85.22000000],[1787869080000,82.78000000],[1787869380000,96.80000000],[1787869680000,112.00000000],[1787869980000,112.22000000],[1787870280000,120.20000000],[1787870580000,123.18000000],[1787870880000,139.58000000],[1787871180000,133.48000000],[1787871480000,127.14000000],[1787871780000,154.26000000],[1787872080000,211.56000000],[1787872380000,166.90000000],[1787872680000,190.56000000],[1787872980000,178.36000000],[1787873280000,149.32000000],[1787873580000,179.96000000],[1787873880000,176.46000000],[1787874180000,225.58000000],[1787874480000,216.84000000],[1787874780000,147.48000000],[1787875080000,154.66000000],[1787875380000,137.52000000],[1787875680000,137.90000000],[1787875980000,139.78000000],[1787876280000,138.88000000],[1787876580000,142.90000000],[1787876880000,135.82000000],[1787877180000,44.74000000],[1787877480000,51.62000000],[1787877780000,61.06000000],[1787878080000,44.94000000],[1787878380000,27.62000000],[1787878680000,43.16000000],[1787878980000,78.66000000],[1787879280000,66.80000000],[1787879580000,62.86000000],[1787879880000,50.88000000],[1787880180000,43.92000000],[1787880480000,49.72000000],[1787880780000,55.32000000],[1787881080000,59.38000000],[1787881380000,70.10000000],[1787881680000,56.92000000],[1787881980000,54.54000000],[1787882280000,33.22000000],[1787882580000,37.92000000],[1787882880000,54.66000000],[1787883180000,170.02000000],[1787883480000,118.96000000],[1787883780000,96.24000000],[1787884080000,82.04000000],[1787884380000,55.46000000],[1787884680000,48.34000000],[1787884980000,48.46000000],[1787885280000,50.64000000],[1787885580000,112.54000000],[1787885880000,49.44000000],[1787886180000,63.08000000],[1787886480000,56.22000000],[1787886780000,53.36000000],[1787887080000,57.52000000],[1787887380000,59.60000000],[1787887680000,47.16000000],[1787887980000,36.02000000],[1787888280000,51.12000000],[1787888580000,70.32000000],[1787888880000,65.64000000],[1787889180000,48.48000000],[1787889480000,46.72000000],[1787889780000,50.26000000],[1787890080000,56.10000000],[1787890380000,49.76000000],[1787890680000,47.68000000],[1787890980000,55.84000000],[1787891280000,52.06000000],[1787891580000,47.66000000],[1787891880000,59.24000000],[1787892180000,60.88000000],[1787892480000,74.80000000],[1787892780000,58.66000000],[1787893080000,60.16000000],[1787893380000,56.84000000],[1787893680000,143.38000000],[1787893980000,81.42000000],[1787894280000,75.04000000],[1787894580000,59.34000000],[1787894880000,76.18000000],[1787895180000,54.50000000],], 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],[1787895180000,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; }