var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1775426430000,14.20000000],[1775426556000,14.20000000],[1775426877000,14.28000000],[1775427197000,14.22500000],[1775427451000,14.36000000],[1775427773000,14.26000000],[1775428093000,14.28000000],[1775428412000,14.12500000],[1775428668000,13.86000000],[1775428988000,13.52000000],[1775429308000,13.75000000],[1775429564000,13.82000000],[1775429884000,13.66000000],[1775430204000,13.50000000],[1775430461000,13.34000000],[1775430780000,13.14000000],[1775431100000,13.20000000],[1775431356000,13.18000000],[1775431676000,13.38000000],[1775431996000,13.37500000],[1775432253000,13.00000000],[1775432572000,12.62000000],[1775432892000,12.50000000],[1775433212000,12.50000000],[1775433468000,12.50000000],[1775433789000,12.46000000],[1775434110000,12.40000000],[1775434365000,12.44000000],[1775434686000,12.56000000],[1775435006000,12.65000000],[1775435262000,13.10000000],[1775435581000,13.34000000],[1775435901000,13.57500000],[1775436157000,13.68000000],[1775436478000,13.62000000],[1775436798000,13.62500000],[1775437054000,13.70000000],[1775437372000,13.62000000],[1775437692000,13.70000000],[1775438012000,13.75000000],[1775438268000,13.72000000],[1775438588000,13.56000000],[1775438908000,12.97500000],[1775439164000,12.14000000],[1775439484000,12.32000000],[1775439804000,12.57500000],[1775440060000,12.84000000],[1775440380000,12.80000000],[1775440700000,12.92500000],[1775440956000,13.48000000],[1775441276000,13.28000000],[1775441596000,13.05000000],[1775441852000,13.00000000],[1775442172000,13.00000000],[1775442492000,13.30000000],[1775442812000,13.30000000],[1775443068000,13.16000000],[1775443388000,13.20000000],[1775443708000,13.72500000],[1775443964000,13.98000000],[1775444284000,13.82000000],[1775444604000,13.97500000],[1775444860000,14.02000000],[1775445180000,13.92000000],[1775445500000,13.80000000],[1775445756000,13.82000000],[1775446076000,13.82000000],[1775446396000,13.72500000],[1775446652000,13.64000000],[1775446972000,13.26000000],[1775447292000,13.30000000],[1775447612000,13.37500000],[1775447868000,13.20000000],[1775448188000,13.00000000],[1775448508000,12.82500000],[1775448764000,12.86000000],[1775449084000,13.40000000],[1775449404000,13.35000000],[1775449661000,13.32000000],[1775449981000,13.50000000],[1775450301000,13.80000000],[1775450557000,13.80000000],[1775450877000,13.76000000],[1775451197000,13.65000000],[1775451453000,13.52000000],[1775451772000,13.46000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1775426430000,8.3],[1775426556000,8.3],[1775426877000,8.6],[1775427197000,8.4],[1775427451000,8.4],[1775427773000,8.4],[1775428093000,8.3],[1775428412000,8.3],[1775428668000,8.1],[1775428988000,8],[1775429308000,8],[1775429564000,7.8],[1775429884000,7.8],[1775430204000,7.9],[1775430461000,7.8],[1775430780000,7.7],[1775431100000,7.8],[1775431356000,7.7],[1775431676000,7.8],[1775431996000,7.8],[1775432253000,7.7],[1775432572000,7.7],[1775432892000,7.6],[1775433212000,7.5],[1775433468000,7.5],[1775433789000,7.7],[1775434110000,7.6],[1775434365000,7.6],[1775434686000,7.8],[1775435006000,7.8],[1775435262000,7.9],[1775435581000,8.1],[1775435901000,8.3],[1775436157000,8.3],[1775436478000,8.2],[1775436798000,8.1],[1775437054000,8.3],[1775437372000,8.2],[1775437692000,8.3],[1775438012000,8.2],[1775438268000,8.3],[1775438588000,8.4],[1775438908000,8.6],[1775439164000,8.2],[1775439484000,8],[1775439804000,8.1],[1775440060000,8.1],[1775440380000,8],[1775440700000,7.5],[1775440956000,7.7],[1775441276000,7.7],[1775441596000,7.7],[1775441852000,7.5],[1775442172000,7.4],[1775442492000,7.5],[1775442812000,7.4],[1775443068000,7.3],[1775443388000,7.2],[1775443708000,7.3],[1775443964000,7.4],[1775444284000,7.3],[1775444604000,7.3],[1775444860000,7.4],[1775445180000,7.4],[1775445500000,7.3],[1775445756000,7.1],[1775446076000,7.1],[1775446396000,7],[1775446652000,6.9],[1775446972000,6.8],[1775447292000,6.6],[1775447612000,6.5],[1775447868000,6.6],[1775448188000,6.5],[1775448508000,6.5],[1775448764000,6.2],[1775449084000,6.1],[1775449404000,6],[1775449661000,5.9],[1775449981000,5.7],[1775450301000,5.9],[1775450557000,5.9],[1775450877000,6.2],[1775451197000,6.4],[1775451453000,6.3],[1775451772000,6.3],], 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() { dataset = [ { label: 'Vlhkosť (%)', data: [[1775426430000,68.00000000],[1775426556000,68.00000000],[1775426877000,69.00000000],[1775427197000,68.25000000],[1775427451000,67.80000000],[1775427773000,68.00000000],[1775428093000,67.40000000],[1775428412000,68.00000000],[1775428668000,68.60000000],[1775428988000,69.40000000],[1775429308000,68.25000000],[1775429564000,67.40000000],[1775429884000,68.00000000],[1775430204000,69.00000000],[1775430461000,69.20000000],[1775430780000,69.80000000],[1775431100000,70.00000000],[1775431356000,69.60000000],[1775431676000,69.00000000],[1775431996000,69.25000000],[1775432253000,70.60000000],[1775432572000,72.40000000],[1775432892000,72.20000000],[1775433212000,72.00000000],[1775433468000,72.00000000],[1775433789000,72.80000000],[1775434110000,73.00000000],[1775434365000,72.40000000],[1775434686000,72.80000000],[1775435006000,72.75000000],[1775435262000,71.00000000],[1775435581000,70.80000000],[1775435901000,70.75000000],[1775436157000,70.00000000],[1775436478000,70.20000000],[1775436798000,69.50000000],[1775437054000,70.00000000],[1775437372000,70.00000000],[1775437692000,70.00000000],[1775438012000,69.25000000],[1775438268000,70.00000000],[1775438588000,71.00000000],[1775438908000,74.75000000],[1775439164000,76.80000000],[1775439484000,75.20000000],[1775439804000,74.25000000],[1775440060000,73.20000000],[1775440380000,72.80000000],[1775440700000,69.75000000],[1775440956000,68.20000000],[1775441276000,69.20000000],[1775441596000,70.00000000],[1775441852000,69.60000000],[1775442172000,68.80000000],[1775442492000,68.00000000],[1775442812000,67.50000000],[1775443068000,68.00000000],[1775443388000,67.00000000],[1775443708000,65.50000000],[1775443964000,64.60000000],[1775444284000,65.20000000],[1775444604000,64.50000000],[1775444860000,64.80000000],[1775445180000,65.00000000],[1775445500000,65.25000000],[1775445756000,64.00000000],[1775446076000,64.00000000],[1775446396000,64.00000000],[1775446652000,64.20000000],[1775446972000,65.00000000],[1775447292000,64.20000000],[1775447612000,63.50000000],[1775447868000,64.60000000],[1775448188000,65.00000000],[1775448508000,65.75000000],[1775448764000,64.20000000],[1775449084000,61.40000000],[1775449404000,61.50000000],[1775449661000,61.00000000],[1775449981000,59.60000000],[1775450301000,59.00000000],[1775450557000,59.20000000],[1775450877000,60.60000000],[1775451197000,62.00000000],[1775451453000,62.00000000],[1775451772000,62.20000000],], 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: [[1775426430000,1023.1],[1775426556000,1023.2],[1775426877000,1023.4],[1775427197000,1023.3],[1775427451000,1023],[1775427773000,1022.9],[1775428093000,1022.9],[1775428412000,1023],[1775428668000,1023.2],[1775428988000,1023.3],[1775429308000,1023.4],[1775429564000,1023.3],[1775429884000,1023.2],[1775430204000,1023.2],[1775430461000,1023.2],[1775430780000,1023.1],[1775431100000,1023],[1775431356000,1023],[1775431676000,1022.9],[1775431996000,1022.9],[1775432253000,1023],[1775432572000,1023.1],[1775432892000,1022.9],[1775433212000,1022.9],[1775433468000,1022.7],[1775433789000,1022.7],[1775434110000,1022.7],[1775434365000,1022.7],[1775434686000,1023.1],[1775435006000,1023.2],[1775435262000,1023.1],[1775435581000,1023.2],[1775435901000,1022.8],[1775436157000,1022.8],[1775436478000,1022.8],[1775436798000,1022.6],[1775437054000,1022.7],[1775437372000,1022.9],[1775437692000,1022.9],[1775438012000,1022.9],[1775438268000,1022.9],[1775438588000,1022.9],[1775438908000,1023.1],[1775439164000,1023.1],[1775439484000,1023.1],[1775439804000,1022.9],[1775440060000,1022.8],[1775440380000,1022.8],[1775440700000,1022.8],[1775440956000,1022.5],[1775441276000,1022.6],[1775441596000,1022.6],[1775441852000,1022.7],[1775442172000,1022.5],[1775442492000,1022.5],[1775442812000,1022.4],[1775443068000,1022.5],[1775443388000,1022.6],[1775443708000,1022.5],[1775443964000,1022.5],[1775444284000,1022.6],[1775444604000,1022.5],[1775444860000,1022.5],[1775445180000,1022.6],[1775445500000,1022.5],[1775445756000,1022.6],[1775446076000,1022.7],[1775446396000,1022.7],[1775446652000,1022.7],[1775446972000,1022.8],[1775447292000,1022.8],[1775447612000,1022.9],[1775447868000,1023],[1775448188000,1023.1],[1775448508000,1023.1],[1775448764000,1023.2],[1775449084000,1023.1],[1775449404000,1023.2],[1775449661000,1023.2],[1775449981000,1023.3],[1775450301000,1023.2],[1775450557000,1023.4],[1775450877000,1023.4],[1775451197000,1023.6],[1775451453000,1023.7],[1775451772000,1023.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: [[1775426430000,2.88],[1775426556000,3.312],[1775426877000,2.952],[1775427197000,3.42],[1775427451000,2.592],[1775427773000,2.088],[1775428093000,2.16],[1775428412000,2.07],[1775428668000,0.144],[1775428988000,2.304],[1775429308000,2.07],[1775429564000,1.296],[1775429884000,1.656],[1775430204000,2.43],[1775430461000,1.296],[1775430780000,2.808],[1775431100000,2.07],[1775431356000,2.736],[1775431676000,2.16],[1775431996000,0.9],[1775432253000,1.656],[1775432572000,1.872],[1775432892000,2.088],[1775433212000,2.52],[1775433468000,1.944],[1775433789000,2.304],[1775434110000,1.26],[1775434365000,2.016],[1775434686000,1.584],[1775435006000,1.17],[1775435262000,2.304],[1775435581000,3.744],[1775435901000,5.4],[1775436157000,2.232],[1775436478000,2.88],[1775436798000,2.52],[1775437054000,3.096],[1775437372000,2.808],[1775437692000,2.016],[1775438012000,3.69],[1775438268000,5.544],[1775438588000,3.744],[1775438908000,1.08],[1775439164000,0.864],[1775439484000,1.152],[1775439804000,0.9],[1775440060000,1.44],[1775440380000,1.008],[1775440700000,4.95],[1775440956000,3.96],[1775441276000,2.088],[1775441596000,2.16],[1775441852000,2.664],[1775442172000,2.664],[1775442492000,1.728],[1775442812000,1.53],[1775443068000,1.944],[1775443388000,4.968],[1775443708000,6.3],[1775443964000,6.192],[1775444284000,5.688],[1775444604000,7.47],[1775444860000,5.976],[1775445180000,5.328],[1775445500000,4.95],[1775445756000,7.848],[1775446076000,5.472],[1775446396000,4.59],[1775446652000,3.24],[1775446972000,2.664],[1775447292000,5.976],[1775447612000,4.59],[1775447868000,1.296],[1775448188000,2.952],[1775448508000,1.53],[1775448764000,5.904],[1775449084000,8.352],[1775449404000,4.86],[1775449661000,5.328],[1775449981000,10.44],[1775450301000,4.59],[1775450557000,8.496],[1775450877000,12.888],[1775451197000,12.6],[1775451453000,13.752],[1775451772000,9.936],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1775426430000,3.78],[1775426556000,4.536],[1775426877000,5.04],[1775427197000,4.41],[1775427451000,4.032],[1775427773000,3.024],[1775428093000,2.52],[1775428412000,3.78],[1775428668000,1.008],[1775428988000,3.024],[1775429308000,3.15],[1775429564000,2.016],[1775429884000,2.52],[1775430204000,2.52],[1775430461000,2.016],[1775430780000,3.528],[1775431100000,2.52],[1775431356000,3.024],[1775431676000,3.024],[1775431996000,2.52],[1775432253000,3.024],[1775432572000,2.52],[1775432892000,2.52],[1775433212000,2.52],[1775433468000,3.528],[1775433789000,3.528],[1775434110000,1.89],[1775434365000,3.024],[1775434686000,2.52],[1775435006000,1.26],[1775435262000,3.024],[1775435581000,5.04],[1775435901000,6.93],[1775436157000,3.024],[1775436478000,4.536],[1775436798000,3.15],[1775437054000,4.032],[1775437372000,4.032],[1775437692000,3.024],[1775438012000,4.41],[1775438268000,7.128],[1775438588000,5.04],[1775438908000,1.89],[1775439164000,2.016],[1775439484000,1.512],[1775439804000,1.26],[1775440060000,2.016],[1775440380000,1.008],[1775440700000,7.56],[1775440956000,6.048],[1775441276000,3.528],[1775441596000,2.52],[1775441852000,5.04],[1775442172000,6.12],[1775442492000,3.528],[1775442812000,2.52],[1775443068000,3.024],[1775443388000,8.208],[1775443708000,8.91],[1775443964000,9.216],[1775444284000,8.64],[1775444604000,11.52],[1775444860000,9.216],[1775445180000,7.056],[1775445500000,7.65],[1775445756000,10.224],[1775446076000,7.56],[1775446396000,6.93],[1775446652000,4.536],[1775446972000,3.528],[1775447292000,8.136],[1775447612000,6.3],[1775447868000,1.512],[1775448188000,4.536],[1775448508000,1.89],[1775448764000,8.136],[1775449084000,9.648],[1775449404000,6.3],[1775449661000,8.136],[1775449981000,13.896],[1775450301000,6.3],[1775450557000,10.728],[1775450877000,17.928],[1775451197000,17.37],[1775451453000,19.44],[1775451772000,13.32],], 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: [[1775426430000,166.50000000],[1775426556000,201.80000000],[1775426877000,194.00000000],[1775427197000,202.75000000],[1775427451000,186.40000000],[1775427773000,186.20000000],[1775428093000,204.00000000],[1775428412000,193.50000000],[1775428668000,165.40000000],[1775428988000,86.60000000],[1775429308000,12.25000000],[1775429564000,217.80000000],[1775429884000,359.00000000],[1775430204000,358.75000000],[1775430461000,358.60000000],[1775430780000,358.20000000],[1775431100000,357.25000000],[1775431356000,356.60000000],[1775431676000,356.00000000],[1775431996000,356.00000000],[1775432253000,354.40000000],[1775432572000,305.20000000],[1775432892000,315.00000000],[1775433212000,315.25000000],[1775433468000,315.60000000],[1775433789000,336.60000000],[1775434110000,335.50000000],[1775434365000,327.20000000],[1775434686000,312.40000000],[1775435006000,276.00000000],[1775435262000,203.60000000],[1775435581000,193.40000000],[1775435901000,204.75000000],[1775436157000,212.40000000],[1775436478000,212.80000000],[1775436798000,186.50000000],[1775437054000,206.20000000],[1775437372000,197.20000000],[1775437692000,200.40000000],[1775438012000,187.50000000],[1775438268000,183.80000000],[1775438588000,165.60000000],[1775438908000,158.25000000],[1775439164000,203.20000000],[1775439484000,186.20000000],[1775439804000,176.75000000],[1775440060000,256.60000000],[1775440380000,296.60000000],[1775440700000,236.25000000],[1775440956000,195.80000000],[1775441276000,191.00000000],[1775441596000,165.25000000],[1775441852000,189.40000000],[1775442172000,216.00000000],[1775442492000,212.80000000],[1775442812000,256.75000000],[1775443068000,232.60000000],[1775443388000,235.20000000],[1775443708000,274.00000000],[1775443964000,266.60000000],[1775444284000,286.60000000],[1775444604000,318.00000000],[1775444860000,289.40000000],[1775445180000,298.80000000],[1775445500000,296.00000000],[1775445756000,315.20000000],[1775446076000,244.80000000],[1775446396000,271.50000000],[1775446652000,286.80000000],[1775446972000,337.60000000],[1775447292000,298.00000000],[1775447612000,287.75000000],[1775447868000,259.80000000],[1775448188000,277.60000000],[1775448508000,289.75000000],[1775448764000,300.60000000],[1775449084000,294.60000000],[1775449404000,308.25000000],[1775449661000,315.60000000],[1775449981000,314.20000000],[1775450301000,338.00000000],[1775450557000,317.80000000],[1775450877000,250.60000000],[1775451197000,340.75000000],[1775451453000,337.40000000],[1775451772000,131.80000000],], 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: 'Slnečné žiarenie (W/m2)', data: [[1775426430000,0.00000000],[1775426556000,0.00000000],[1775426877000,0.00000000],[1775427197000,0.00000000],[1775427451000,0.00000000],[1775427773000,0.00000000],[1775428093000,0.00000000],[1775428412000,0.00000000],[1775428668000,0.00000000],[1775428988000,0.00000000],[1775429308000,0.00000000],[1775429564000,0.00000000],[1775429884000,0.00000000],[1775430204000,0.00000000],[1775430461000,0.00000000],[1775430780000,0.00000000],[1775431100000,0.00000000],[1775431356000,0.00000000],[1775431676000,0.00000000],[1775431996000,0.00000000],[1775432253000,0.00000000],[1775432572000,0.00000000],[1775432892000,0.00000000],[1775433212000,0.00000000],[1775433468000,0.00000000],[1775433789000,0.00000000],[1775434110000,0.00000000],[1775434365000,0.00000000],[1775434686000,0.00000000],[1775435006000,0.00000000],[1775435262000,0.00000000],[1775435581000,0.00000000],[1775435901000,0.00000000],[1775436157000,0.00000000],[1775436478000,0.00000000],[1775436798000,0.00000000],[1775437054000,0.00000000],[1775437372000,0.00000000],[1775437692000,0.00000000],[1775438012000,0.00000000],[1775438268000,0.00000000],[1775438588000,0.00000000],[1775438908000,0.00000000],[1775439164000,0.00000000],[1775439484000,0.00000000],[1775439804000,0.00000000],[1775440060000,0.00000000],[1775440380000,0.00000000],[1775440700000,0.00000000],[1775440956000,0.00000000],[1775441276000,0.00000000],[1775441596000,0.00000000],[1775441852000,0.00000000],[1775442172000,0.00000000],[1775442492000,0.00000000],[1775442812000,0.00000000],[1775443068000,0.00000000],[1775443388000,0.00000000],[1775443708000,0.00000000],[1775443964000,0.00000000],[1775444284000,0.00000000],[1775444604000,0.00000000],[1775444860000,0.00000000],[1775445180000,0.00000000],[1775445500000,0.00000000],[1775445756000,0.00000000],[1775446076000,0.00000000],[1775446396000,0.00000000],[1775446652000,0.00000000],[1775446972000,0.00000000],[1775447292000,0.00000000],[1775447612000,0.00000000],[1775447868000,0.60000000],[1775448188000,1.00000000],[1775448508000,2.00000000],[1775448764000,3.20000000],[1775449084000,5.00000000],[1775449404000,7.25000000],[1775449661000,10.60000000],[1775449981000,14.40000000],[1775450301000,17.75000000],[1775450557000,21.60000000],[1775450877000,26.20000000],[1775451197000,31.75000000],[1775451453000,37.60000000],[1775451772000,44.60000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], 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.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'UV žiarenie', data: [[1775426430000,0.00000000],[1775426556000,0.00000000],[1775426877000,0.00000000],[1775427197000,0.00000000],[1775427451000,0.00000000],[1775427773000,0.00000000],[1775428093000,0.00000000],[1775428412000,0.00000000],[1775428668000,0.00000000],[1775428988000,0.00000000],[1775429308000,0.00000000],[1775429564000,0.00000000],[1775429884000,0.00000000],[1775430204000,0.00000000],[1775430461000,0.00000000],[1775430780000,0.00000000],[1775431100000,0.00000000],[1775431356000,0.00000000],[1775431676000,0.00000000],[1775431996000,0.00000000],[1775432253000,0.00000000],[1775432572000,0.00000000],[1775432892000,0.00000000],[1775433212000,0.00000000],[1775433468000,0.00000000],[1775433789000,0.00000000],[1775434110000,0.00000000],[1775434365000,0.00000000],[1775434686000,0.00000000],[1775435006000,0.00000000],[1775435262000,0.00000000],[1775435581000,0.00000000],[1775435901000,0.00000000],[1775436157000,0.00000000],[1775436478000,0.00000000],[1775436798000,0.00000000],[1775437054000,0.00000000],[1775437372000,0.00000000],[1775437692000,0.00000000],[1775438012000,0.00000000],[1775438268000,0.00000000],[1775438588000,0.00000000],[1775438908000,0.00000000],[1775439164000,0.00000000],[1775439484000,0.00000000],[1775439804000,0.00000000],[1775440060000,0.00000000],[1775440380000,0.00000000],[1775440700000,0.00000000],[1775440956000,0.00000000],[1775441276000,0.00000000],[1775441596000,0.00000000],[1775441852000,0.00000000],[1775442172000,0.00000000],[1775442492000,0.00000000],[1775442812000,0.00000000],[1775443068000,0.00000000],[1775443388000,0.00000000],[1775443708000,0.00000000],[1775443964000,0.00000000],[1775444284000,0.00000000],[1775444604000,0.00000000],[1775444860000,0.00000000],[1775445180000,0.00000000],[1775445500000,0.00000000],[1775445756000,0.00000000],[1775446076000,0.00000000],[1775446396000,0.00000000],[1775446652000,0.00000000],[1775446972000,0.00000000],[1775447292000,0.00000000],[1775447612000,0.00000000],[1775447868000,0.00000000],[1775448188000,0.00000000],[1775448508000,0.00000000],[1775448764000,0.00000000],[1775449084000,0.00000000],[1775449404000,0.00000000],[1775449661000,0.00000000],[1775449981000,0.00000000],[1775450301000,0.00000000],[1775450557000,0.00000000],[1775450877000,0.00000000],[1775451197000,0.00000000],[1775451453000,0.00000000],[1775451772000,0.00000000],], color: '#802674' } ]; var options = { xaxes: [{ axisLabel: 'uv', }], 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.0' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-uv-legend' } }; graphs['#chart-uv'] = $.plot('#chart-uv', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1775426430000,0.00000000],[1775426556000,0.00000000],[1775426877000,0.00000000],[1775427197000,0.00000000],[1775427451000,0.00000000],[1775427773000,0.00000000],[1775428093000,0.00000000],[1775428412000,0.00000000],[1775428668000,0.00000000],[1775428988000,0.00000000],[1775429308000,0.00000000],[1775429564000,0.00000000],[1775429884000,0.00000000],[1775430204000,0.00000000],[1775430461000,0.00000000],[1775430780000,0.00000000],[1775431100000,0.00000000],[1775431356000,0.00000000],[1775431676000,0.00000000],[1775431996000,0.00000000],[1775432253000,0.00000000],[1775432572000,0.00000000],[1775432892000,0.00000000],[1775433212000,0.00000000],[1775433468000,0.00000000],[1775433789000,0.00000000],[1775434110000,0.00000000],[1775434365000,0.00000000],[1775434686000,0.00000000],[1775435006000,0.00000000],[1775435262000,0.00000000],[1775435581000,0.00000000],[1775435901000,0.00000000],[1775436157000,0.00000000],[1775436478000,0.00000000],[1775436798000,0.00000000],[1775437054000,0.00000000],[1775437372000,0.00000000],[1775437692000,0.00000000],[1775438012000,0.00000000],[1775438268000,0.00000000],[1775438588000,0.00000000],[1775438908000,0.00000000],[1775439164000,0.00000000],[1775439484000,0.00000000],[1775439804000,0.00000000],[1775440060000,0.00000000],[1775440380000,0.00000000],[1775440700000,0.00000000],[1775440956000,0.00000000],[1775441276000,0.00000000],[1775441596000,0.00000000],[1775441852000,0.00000000],[1775442172000,0.00000000],[1775442492000,0.00000000],[1775442812000,0.00000000],[1775443068000,0.00000000],[1775443388000,0.00000000],[1775443708000,0.00000000],[1775443964000,0.00000000],[1775444284000,0.00000000],[1775444604000,0.00000000],[1775444860000,0.00000000],[1775445180000,0.00000000],[1775445500000,0.00000000],[1775445756000,0.00000000],[1775446076000,0.00000000],[1775446396000,0.00000000],[1775446652000,0.00000000],[1775446972000,0.00000000],[1775447292000,0.00000000],[1775447612000,0.00000000],[1775447868000,0.00000000],[1775448188000,0.00000000],[1775448508000,0.00000000],[1775448764000,0.00000000],[1775449084000,0.00000000],[1775449404000,0.00000000],[1775449661000,0.00000000],[1775449981000,0.00000000],[1775450301000,0.00000000],[1775450557000,0.00000000],[1775450877000,0.00000000],[1775451197000,0.00000000],[1775451453000,0.00000000],[1775451772000,0.00000000],], 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; }