var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787868000000,18.60000000],[1787868180000,18.52000000],[1787868480000,18.70000000],[1787868780000,18.56000000],[1787869080000,18.46000000],[1787869380000,18.10000000],[1787869680000,17.68000000],[1787869980000,17.36000000],[1787870280000,17.24000000],[1787870580000,17.08000000],[1787870880000,16.78000000],[1787871180000,16.62000000],[1787871480000,16.04000000],[1787871780000,15.74000000],[1787872080000,15.96000000],[1787872380000,17.20000000],[1787872680000,16.86000000],[1787872980000,16.46000000],[1787873280000,17.12000000],[1787873580000,17.44000000],[1787873880000,17.44000000],[1787874180000,17.22000000],[1787874480000,16.58000000],[1787874780000,17.02000000],[1787875080000,17.35000000],[1787875380000,17.24000000],[1787875680000,16.88000000],[1787875980000,16.18000000],[1787876280000,16.98000000],[1787876580000,17.30000000],[1787876880000,17.24000000],[1787877180000,17.04000000],[1787877480000,17.12000000],[1787877780000,17.18000000],[1787878080000,17.06000000],[1787878380000,16.62000000],[1787878680000,16.16000000],[1787878980000,15.90000000],[1787879280000,15.68000000],[1787879580000,15.34000000],[1787879880000,14.86000000],[1787880180000,14.44000000],[1787880480000,14.40000000],[1787880780000,14.28000000],[1787881080000,14.02000000],[1787881380000,14.24000000],[1787881680000,15.44000000],[1787881980000,16.30000000],[1787882280000,15.64000000],[1787882580000,14.88000000],[1787882880000,14.50000000],[1787883180000,14.32000000],[1787883480000,14.60000000],[1787883780000,14.52000000],[1787884080000,14.40000000],[1787884380000,14.22000000],[1787884680000,13.94000000],[1787884980000,13.72000000],[1787885280000,13.60000000],[1787885580000,13.36000000],[1787885880000,13.00000000],[1787886180000,12.90000000],[1787886480000,13.04000000],[1787886780000,12.98000000],[1787887080000,12.90000000],[1787887380000,12.88000000],[1787887680000,13.00000000],[1787887980000,13.20000000],[1787888280000,13.32000000],[1787888580000,13.28000000],[1787888880000,12.94000000],[1787889180000,12.70000000],[1787889480000,12.86000000],[1787889780000,13.16000000],[1787890080000,13.62000000],[1787890380000,13.74000000],[1787890680000,14.34000000],[1787890980000,14.78000000],[1787891280000,15.16000000],[1787891580000,15.48000000],[1787891880000,15.64000000],[1787892180000,15.68000000],[1787892480000,15.82000000],[1787892780000,15.82000000],[1787893080000,16.12000000],[1787893380000,16.24000000],[1787893680000,16.40000000],[1787893980000,16.48000000],[1787894280000,16.64000000],[1787894580000,16.88000000],[1787894880000,16.93333333],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787868000000,12.1],[1787868180000,12],[1787868480000,11.9],[1787868780000,11.9],[1787869080000,12],[1787869380000,12],[1787869680000,12],[1787869980000,12],[1787870280000,12],[1787870580000,12],[1787870880000,11.9],[1787871180000,12],[1787871480000,12.1],[1787871780000,12.5],[1787872080000,12],[1787872380000,11.8],[1787872680000,11.7],[1787872980000,11.5],[1787873280000,11.6],[1787873580000,11.5],[1787873880000,11.5],[1787874180000,11.5],[1787874480000,11.5],[1787874780000,11.5],[1787875080000,11.4],[1787875380000,11.5],[1787875680000,11.5],[1787875980000,11.5],[1787876280000,11.6],[1787876580000,11.6],[1787876880000,11.5],[1787877180000,11.6],[1787877480000,11.6],[1787877780000,11.6],[1787878080000,11.5],[1787878380000,11.5],[1787878680000,11.5],[1787878980000,11.5],[1787879280000,11.5],[1787879580000,11.5],[1787879880000,11.6],[1787880180000,11.6],[1787880480000,11.7],[1787880780000,11.7],[1787881080000,11.7],[1787881380000,11.7],[1787881680000,11.8],[1787881980000,11.7],[1787882280000,11.5],[1787882580000,11.5],[1787882880000,11.3],[1787883180000,11.4],[1787883480000,11.5],[1787883780000,11.4],[1787884080000,11.3],[1787884380000,11.4],[1787884680000,11.4],[1787884980000,11.4],[1787885280000,11.6],[1787885580000,11.3],[1787885880000,11.1],[1787886180000,11.3],[1787886480000,11.6],[1787886780000,11.5],[1787887080000,11.5],[1787887380000,11.4],[1787887680000,11.3],[1787887980000,11.1],[1787888280000,11],[1787888580000,11],[1787888880000,10.9],[1787889180000,11],[1787889480000,11.1],[1787889780000,11.3],[1787890080000,11.4],[1787890380000,11.4],[1787890680000,11.5],[1787890980000,11.5],[1787891280000,11.5],[1787891580000,11.6],[1787891880000,11.6],[1787892180000,11.9],[1787892480000,11.9],[1787892780000,12.3],[1787893080000,12.3],[1787893380000,12.2],[1787893680000,12],[1787893980000,12.1],[1787894280000,12.1],[1787894580000,12.1],[1787894880000,12],], 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,16.40000000],[1787868180000,16.28000000],[1787868480000,16.10000000],[1787868780000,16.04000000],[1787869080000,15.88000000],[1787869380000,15.40000000],[1787869680000,14.72000000],[1787869980000,14.12000000],[1787870280000,13.78000000],[1787870580000,13.40000000],[1787870880000,13.00000000],[1787871180000,12.70000000],[1787871480000,12.52000000],[1787871780000,12.30000000],[1787872080000,12.14000000],[1787872380000,12.72000000],[1787872680000,12.86000000],[1787872980000,12.64000000],[1787873280000,12.76000000],[1787873580000,13.20000000],[1787873880000,13.54000000],[1787874180000,13.54000000],[1787874480000,13.20000000],[1787874780000,13.56000000],[1787875080000,14.37500000],[1787875380000,14.70000000],[1787875680000,14.50000000],[1787875980000,14.16000000],[1787876280000,14.20000000],[1787876580000,14.56000000],[1787876880000,14.66000000],[1787877180000,14.42000000],[1787877480000,14.48000000],[1787877780000,14.74000000],[1787878080000,14.68000000],[1787878380000,14.16000000],[1787878680000,13.60000000],[1787878980000,13.14000000],[1787879280000,12.72000000],[1787879580000,12.44000000],[1787879880000,12.30000000],[1787880180000,12.24000000],[1787880480000,12.14000000],[1787880780000,12.00000000],[1787881080000,11.82000000],[1787881380000,11.56000000],[1787881680000,12.04000000],[1787881980000,12.62000000],[1787882280000,12.58000000],[1787882580000,12.30000000],[1787882880000,11.90000000],[1787883180000,11.62000000],[1787883480000,11.34000000],[1787883780000,11.16000000],[1787884080000,11.10000000],[1787884380000,10.80000000],[1787884680000,10.72000000],[1787884980000,10.48000000],[1787885280000,10.40000000],[1787885580000,10.36000000],[1787885880000,10.16000000],[1787886180000,9.96000000],[1787886480000,9.82000000],[1787886780000,9.78000000],[1787887080000,9.70000000],[1787887380000,9.70000000],[1787887680000,9.94000000],[1787887980000,10.18000000],[1787888280000,10.40000000],[1787888580000,10.68000000],[1787888880000,10.82000000],[1787889180000,10.94000000],[1787889480000,11.18000000],[1787889780000,11.40000000],[1787890080000,11.80000000],[1787890380000,12.08000000],[1787890680000,12.60000000],[1787890980000,13.46000000],[1787891280000,14.42000000],[1787891580000,15.30000000],[1787891880000,16.04000000],[1787892180000,16.74000000],[1787892480000,17.48000000],[1787892780000,18.14000000],[1787893080000,18.92000000],[1787893380000,19.30000000],[1787893680000,19.36000000],[1787893980000,19.40000000],[1787894280000,19.44000000],[1787894580000,19.40000000],[1787894880000,18.86666667],], 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,66.00000000],[1787868180000,65.84000000],[1787868480000,65.00000000],[1787868780000,65.52000000],[1787869080000,66.00000000],[1787869380000,67.76000000],[1787869680000,69.50000000],[1787869980000,70.76000000],[1787870280000,71.26000000],[1787870580000,72.00000000],[1787870880000,73.02000000],[1787871180000,74.24000000],[1787871480000,77.80000000],[1787871780000,80.98000000],[1787872080000,77.74000000],[1787872380000,70.60000000],[1787872680000,71.68000000],[1787872980000,72.88000000],[1787873280000,70.16000000],[1787873580000,68.52000000],[1787873880000,68.12000000],[1787874180000,69.36000000],[1787874480000,72.30000000],[1787874780000,70.12000000],[1787875080000,68.32500000],[1787875380000,68.96000000],[1787875680000,70.54000000],[1787875980000,73.88000000],[1787876280000,70.88000000],[1787876580000,69.30000000],[1787876880000,69.06000000],[1787877180000,70.42000000],[1787877480000,70.22000000],[1787877780000,70.00000000],[1787878080000,70.12000000],[1787878380000,72.06000000],[1787878680000,74.16000000],[1787878980000,75.52000000],[1787879280000,76.38000000],[1787879580000,77.80000000],[1787879880000,80.74000000],[1787880180000,83.46000000],[1787880480000,84.00000000],[1787880780000,84.50000000],[1787881080000,85.84000000],[1787881380000,85.04000000],[1787881680000,78.88000000],[1787881980000,74.18000000],[1787882280000,76.36000000],[1787882580000,80.24000000],[1787882880000,81.48000000],[1787883180000,82.64000000],[1787883480000,81.56000000],[1787883780000,81.88000000],[1787884080000,82.04000000],[1787884380000,83.12000000],[1787884680000,85.02000000],[1787884980000,86.26000000],[1787885280000,87.58000000],[1787885580000,87.56000000],[1787885880000,88.58000000],[1787886180000,90.00000000],[1787886480000,90.90000000],[1787886780000,90.62000000],[1787887080000,91.00000000],[1787887380000,90.98000000],[1787887680000,89.54000000],[1787887980000,87.26000000],[1787888280000,86.12000000],[1787888580000,86.38000000],[1787888880000,87.68000000],[1787889180000,89.46000000],[1787889480000,89.14000000],[1787889780000,88.80000000],[1787890080000,86.80000000],[1787890380000,86.00000000],[1787890680000,83.08000000],[1787890980000,81.04000000],[1787891280000,79.06000000],[1787891580000,77.72000000],[1787891880000,77.20000000],[1787892180000,78.32000000],[1787892480000,77.66000000],[1787892780000,79.62000000],[1787893080000,78.28000000],[1787893380000,76.92000000],[1787893680000,75.32000000],[1787893980000,75.44000000],[1787894280000,74.80000000],[1787894580000,73.74000000],[1787894880000,73.06666667],], 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,1018.9],[1787868180000,1018.9],[1787868480000,1019],[1787868780000,1019],[1787869080000,1019],[1787869380000,1019.1],[1787869680000,1019],[1787869980000,1019],[1787870280000,1019],[1787870580000,1019],[1787870880000,1019.2],[1787871180000,1019.1],[1787871480000,1019.1],[1787871780000,1019.1],[1787872080000,1019],[1787872380000,1018.9],[1787872680000,1019],[1787872980000,1019],[1787873280000,1018.9],[1787873580000,1018.9],[1787873880000,1019],[1787874180000,1019],[1787874480000,1019],[1787874780000,1018.8],[1787875080000,1018.8],[1787875380000,1018.7],[1787875680000,1018.9],[1787875980000,1018.9],[1787876280000,1018.7],[1787876580000,1018.6],[1787876880000,1018.6],[1787877180000,1018.6],[1787877480000,1018.5],[1787877780000,1018.4],[1787878080000,1018.4],[1787878380000,1018.4],[1787878680000,1018.4],[1787878980000,1018.4],[1787879280000,1018.5],[1787879580000,1018.5],[1787879880000,1018.5],[1787880180000,1018.5],[1787880480000,1018.6],[1787880780000,1018.6],[1787881080000,1018.5],[1787881380000,1018.4],[1787881680000,1018.3],[1787881980000,1018.3],[1787882280000,1018.4],[1787882580000,1018.4],[1787882880000,1018.3],[1787883180000,1018.3],[1787883480000,1018.3],[1787883780000,1018.4],[1787884080000,1018.4],[1787884380000,1018.4],[1787884680000,1018.5],[1787884980000,1018.6],[1787885280000,1018.6],[1787885580000,1018.6],[1787885880000,1018.7],[1787886180000,1018.8],[1787886480000,1018.7],[1787886780000,1018.8],[1787887080000,1018.7],[1787887380000,1018.8],[1787887680000,1018.7],[1787887980000,1018.7],[1787888280000,1018.8],[1787888580000,1018.8],[1787888880000,1018.9],[1787889180000,1018.9],[1787889480000,1018.9],[1787889780000,1018.8],[1787890080000,1018.8],[1787890380000,1018.8],[1787890680000,1018.8],[1787890980000,1018.7],[1787891280000,1018.6],[1787891580000,1018.6],[1787891880000,1018.7],[1787892180000,1018.8],[1787892480000,1018.8],[1787892780000,1018.8],[1787893080000,1018.7],[1787893380000,1018.7],[1787893680000,1018.8],[1787893980000,1018.8],[1787894280000,1018.8],[1787894580000,1018.8],[1787894880000,1018.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,8.160000012],[1787868180000,7.128],[1787868480000,7.56],[1787868780000,6.84],[1787869080000,5.976],[1787869380000,5.328],[1787869680000,3.672],[1787869980000,1.224],[1787870280000,2.52],[1787870580000,2.736],[1787870880000,1.44],[1787871180000,2.592],[1787871480000,2.808],[1787871780000,5.256],[1787872080000,6.912],[1787872380000,6.12],[1787872680000,3.096],[1787872980000,4.896],[1787873280000,6.264],[1787873580000,6.696],[1787873880000,5.4],[1787874180000,5.4],[1787874480000,6.408],[1787874780000,7.848],[1787875080000,8.01],[1787875380000,6.192],[1787875680000,6.408],[1787875980000,6.12],[1787876280000,7.272],[1787876580000,7.128],[1787876880000,4.392],[1787877180000,5.76],[1787877480000,7.488],[1787877780000,6.48],[1787878080000,4.968],[1787878380000,3.384],[1787878680000,3.024],[1787878980000,1.728],[1787879280000,3.24],[1787879580000,5.184],[1787879880000,5.904],[1787880180000,5.688],[1787880480000,3.672],[1787880780000,4.392],[1787881080000,4.824],[1787881380000,6.048],[1787881680000,6.696],[1787881980000,4.824],[1787882280000,2.592],[1787882580000,2.448],[1787882880000,3.888],[1787883180000,6.48],[1787883480000,3.24],[1787883780000,1.944],[1787884080000,2.376],[1787884380000,1.224],[1787884680000,1.224],[1787884980000,2.016],[1787885280000,1.224],[1787885580000,2.232],[1787885880000,1.584],[1787886180000,2.448],[1787886480000,3.168],[1787886780000,2.592],[1787887080000,2.952],[1787887380000,3.888],[1787887680000,2.952],[1787887980000,2.592],[1787888280000,3.672],[1787888580000,5.4],[1787888880000,5.616],[1787889180000,6.048],[1787889480000,6.264],[1787889780000,5.832],[1787890080000,6.12],[1787890380000,5.472],[1787890680000,4.968],[1787890980000,5.112],[1787891280000,5.328],[1787891580000,4.968],[1787891880000,4.824],[1787892180000,4.032],[1787892480000,3.6],[1787892780000,3.6],[1787893080000,3.456],[1787893380000,5.4],[1787893680000,7.056],[1787893980000,7.272],[1787894280000,8.64],[1787894580000,9.936],[1787894880000,9.72],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787868000000,10.320000012],[1787868180000,9.432],[1787868480000,9.72],[1787868780000,9.072],[1787869080000,7.992],[1787869380000,7.128],[1787869680000,5.76],[1787869980000,2.52],[1787870280000,3.96],[1787870580000,3.816],[1787870880000,2.52],[1787871180000,3.312],[1787871480000,3.816],[1787871780000,6.768],[1787872080000,8.568],[1787872380000,7.992],[1787872680000,5.76],[1787872980000,7.056],[1787873280000,8.496],[1787873580000,9],[1787873880000,7.416],[1787874180000,7.2],[1787874480000,8.64],[1787874780000,11.088],[1787875080000,10.26],[1787875380000,8.136],[1787875680000,7.848],[1787875980000,7.992],[1787876280000,9.432],[1787876580000,9.648],[1787876880000,6.696],[1787877180000,7.992],[1787877480000,9.432],[1787877780000,8.928],[1787878080000,6.768],[1787878380000,5.112],[1787878680000,4.536],[1787878980000,2.736],[1787879280000,4.392],[1787879580000,6.048],[1787879880000,6.696],[1787880180000,6.408],[1787880480000,4.824],[1787880780000,5.184],[1787881080000,6.408],[1787881380000,8.208],[1787881680000,9.432],[1787881980000,7.344],[1787882280000,4.392],[1787882580000,3.24],[1787882880000,5.76],[1787883180000,8.136],[1787883480000,5.112],[1787883780000,3.168],[1787884080000,3.096],[1787884380000,1.728],[1787884680000,1.584],[1787884980000,2.808],[1787885280000,2.016],[1787885580000,2.736],[1787885880000,2.16],[1787886180000,3.024],[1787886480000,3.816],[1787886780000,3.312],[1787887080000,3.96],[1787887380000,5.616],[1787887680000,5.04],[1787887980000,4.464],[1787888280000,4.968],[1787888580000,6.696],[1787888880000,6.84],[1787889180000,7.344],[1787889480000,7.056],[1787889780000,7.2],[1787890080000,8.28],[1787890380000,7.056],[1787890680000,6.408],[1787890980000,6.48],[1787891280000,7.416],[1787891580000,6.84],[1787891880000,7.056],[1787892180000,5.904],[1787892480000,5.4],[1787892780000,5.112],[1787893080000,5.472],[1787893380000,7.704],[1787893680000,9.864],[1787893980000,9.072],[1787894280000,10.8],[1787894580000,12.024],[1787894880000,11.52],], 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,85.30000000],[1787868180000,86.22000000],[1787868480000,97.16000000],[1787868780000,88.98000000],[1787869080000,90.84000000],[1787869380000,113.26000000],[1787869680000,102.64000000],[1787869980000,102.36000000],[1787870280000,278.78000000],[1787870580000,95.22000000],[1787870880000,85.98000000],[1787871180000,33.30000000],[1787871480000,37.42000000],[1787871780000,76.36000000],[1787872080000,88.32000000],[1787872380000,90.00000000],[1787872680000,68.96000000],[1787872980000,77.00000000],[1787873280000,77.34000000],[1787873580000,70.52000000],[1787873880000,90.00000000],[1787874180000,90.60000000],[1787874480000,101.18000000],[1787874780000,83.38000000],[1787875080000,75.62500000],[1787875380000,65.86000000],[1787875680000,74.42000000],[1787875980000,61.30000000],[1787876280000,70.86000000],[1787876580000,66.28000000],[1787876880000,74.74000000],[1787877180000,62.62000000],[1787877480000,71.28000000],[1787877780000,70.08000000],[1787878080000,75.48000000],[1787878380000,99.98000000],[1787878680000,110.96000000],[1787878980000,151.60000000],[1787879280000,24.98000000],[1787879580000,34.52000000],[1787879880000,29.80000000],[1787880180000,27.76000000],[1787880480000,20.22000000],[1787880780000,38.24000000],[1787881080000,50.32000000],[1787881380000,57.68000000],[1787881680000,65.28000000],[1787881980000,68.24000000],[1787882280000,175.62000000],[1787882580000,118.32000000],[1787882880000,46.64000000],[1787883180000,68.54000000],[1787883480000,69.20000000],[1787883780000,76.32000000],[1787884080000,151.24000000],[1787884380000,44.20000000],[1787884680000,115.88000000],[1787884980000,100.88000000],[1787885280000,239.34000000],[1787885580000,337.16000000],[1787885880000,283.90000000],[1787886180000,345.72000000],[1787886480000,219.92000000],[1787886780000,19.78000000],[1787887080000,71.66000000],[1787887380000,87.82000000],[1787887680000,81.50000000],[1787887980000,60.84000000],[1787888280000,18.10000000],[1787888580000,20.40000000],[1787888880000,22.46000000],[1787889180000,42.76000000],[1787889480000,43.30000000],[1787889780000,59.02000000],[1787890080000,61.82000000],[1787890380000,65.44000000],[1787890680000,71.36000000],[1787890980000,82.54000000],[1787891280000,63.96000000],[1787891580000,58.78000000],[1787891880000,50.88000000],[1787892180000,35.14000000],[1787892480000,103.14000000],[1787892780000,13.18000000],[1787893080000,36.38000000],[1787893380000,38.76000000],[1787893680000,47.00000000],[1787893980000,43.00000000],[1787894280000,42.42000000],[1787894580000,31.58000000],[1787894880000,42.16666667],], 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; }