var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1766012432000,3.50000000],[1766012552000,3.52000000],[1766012880000,3.56000000],[1766013200000,3.50000000],[1766013452000,3.50000000],[1766013776000,3.50000000],[1766014096000,3.50000000],[1766014352000,3.50000000],[1766014672000,3.50000000],[1766014992000,3.50000000],[1766015312000,3.50000000],[1766015568000,3.50000000],[1766015888000,3.50000000],[1766016209000,3.50000000],[1766016465000,3.50000000],[1766016785000,3.50000000],[1766017106000,3.50000000],[1766017361000,3.50000000],[1766017681000,3.50000000],[1766018001000,3.50000000],[1766018257000,3.44000000],[1766018577000,3.40000000],[1766018897000,3.40000000],[1766019153000,3.40000000],[1766019473000,3.40000000],[1766019806000,3.32500000],[1766020053000,3.30000000],[1766020384000,3.34000000],[1766020704000,3.32500000],[1766020953000,3.30000000],[1766021280000,3.30000000],[1766021600000,3.30000000],[1766021852000,3.30000000],[1766022176000,3.30000000],[1766022496000,3.30000000],[1766022752000,3.30000000],[1766023072000,3.30000000],[1766023394000,3.30000000],[1766023713000,3.30000000],[1766023969000,3.30000000],[1766024289000,3.30000000],[1766024609000,3.30000000],[1766024865000,3.30000000],[1766025201000,3.30000000],[1766025458000,3.30000000],[1766025778000,3.30000000],[1766026098000,3.30000000],[1766026354000,3.30000000],[1766026673000,3.30000000],[1766026993000,3.30000000],[1766027313000,3.25000000],[1766027569000,3.20000000],[1766027889000,3.20000000],[1766028209000,3.20000000],[1766028467000,3.20000000],[1766028785000,3.20000000],[1766029057000,3.20000000],[1766029394000,3.20000000],[1766029715000,3.20000000],[1766029969000,3.20000000],[1766030289000,3.20000000],[1766030609000,3.25000000],[1766030865000,3.30000000],[1766031185000,3.30000000],[1766031505000,3.30000000],[1766031762000,3.30000000],[1766032082000,3.30000000],[1766032353000,3.30000000],[1766032674000,3.30000000],[1766032993000,3.34000000],[1766033317000,3.37500000],[1766033600000,3.40000000],[1766033852000,3.40000000],[1766034176000,3.40000000],[1766034496000,3.40000000],[1766034752000,3.40000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1766012432000,3.1],[1766012552000,3.1],[1766012880000,3.1],[1766013200000,3.1],[1766013452000,3.1],[1766013776000,3.1],[1766014096000,3.1],[1766014352000,3.1],[1766014672000,3.1],[1766014992000,3.2],[1766015312000,3.2],[1766015568000,3.2],[1766015888000,3.2],[1766016209000,3.2],[1766016465000,3.2],[1766016785000,3.2],[1766017106000,3.2],[1766017361000,3.2],[1766017681000,3.2],[1766018001000,3.2],[1766018257000,3.3],[1766018577000,3.3],[1766018897000,3.3],[1766019153000,3.3],[1766019473000,3.3],[1766019806000,3.2],[1766020053000,3.2],[1766020384000,3.2],[1766020704000,3.2],[1766020953000,3.2],[1766021280000,3.2],[1766021600000,3.2],[1766021852000,3.2],[1766022176000,3.2],[1766022496000,3.2],[1766022752000,3.2],[1766023072000,3.2],[1766023394000,3.2],[1766023713000,3.2],[1766023969000,3.2],[1766024289000,3.2],[1766024609000,3.2],[1766024865000,3.2],[1766025201000,3.2],[1766025458000,3.2],[1766025778000,3.2],[1766026098000,3.2],[1766026354000,3.2],[1766026673000,3.2],[1766026993000,3.2],[1766027313000,3.1],[1766027569000,3.1],[1766027889000,3.1],[1766028209000,3.1],[1766028467000,3.1],[1766028785000,3.1],[1766029057000,3.1],[1766029394000,3.1],[1766029715000,3.1],[1766029969000,3.1],[1766030289000,3.1],[1766030609000,3.1],[1766030865000,3.2],[1766031185000,3.2],[1766031505000,3.2],[1766031762000,3.2],[1766032082000,3.2],[1766032353000,3.2],[1766032674000,3.2],[1766032993000,3.2],[1766033317000,3.2],[1766033600000,3.3],[1766033852000,3.3],[1766034176000,3.3],[1766034496000,3.3],[1766034752000,3.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: [[1766012432000,97.00000000],[1766012552000,97.00000000],[1766012880000,97.00000000],[1766013200000,97.00000000],[1766013452000,97.00000000],[1766013776000,97.00000000],[1766014096000,97.00000000],[1766014352000,97.00000000],[1766014672000,97.00000000],[1766014992000,98.00000000],[1766015312000,98.00000000],[1766015568000,98.00000000],[1766015888000,98.00000000],[1766016209000,98.00000000],[1766016465000,98.00000000],[1766016785000,98.00000000],[1766017106000,98.00000000],[1766017361000,98.00000000],[1766017681000,98.00000000],[1766018001000,98.25000000],[1766018257000,98.80000000],[1766018577000,99.00000000],[1766018897000,99.00000000],[1766019153000,99.00000000],[1766019473000,99.00000000],[1766019806000,99.00000000],[1766020053000,99.00000000],[1766020384000,99.00000000],[1766020704000,99.00000000],[1766020953000,99.00000000],[1766021280000,99.00000000],[1766021600000,99.00000000],[1766021852000,99.00000000],[1766022176000,99.00000000],[1766022496000,99.00000000],[1766022752000,99.00000000],[1766023072000,99.00000000],[1766023394000,99.00000000],[1766023713000,99.00000000],[1766023969000,99.00000000],[1766024289000,99.00000000],[1766024609000,99.00000000],[1766024865000,99.00000000],[1766025201000,99.00000000],[1766025458000,99.00000000],[1766025778000,99.00000000],[1766026098000,99.00000000],[1766026354000,99.00000000],[1766026673000,99.00000000],[1766026993000,99.00000000],[1766027313000,99.00000000],[1766027569000,99.00000000],[1766027889000,99.00000000],[1766028209000,99.00000000],[1766028467000,99.00000000],[1766028785000,99.00000000],[1766029057000,99.00000000],[1766029394000,99.00000000],[1766029715000,99.00000000],[1766029969000,99.00000000],[1766030289000,99.00000000],[1766030609000,99.00000000],[1766030865000,99.00000000],[1766031185000,99.00000000],[1766031505000,99.00000000],[1766031762000,99.00000000],[1766032082000,99.00000000],[1766032353000,99.00000000],[1766032674000,99.00000000],[1766032993000,99.00000000],[1766033317000,99.00000000],[1766033600000,99.00000000],[1766033852000,99.00000000],[1766034176000,99.00000000],[1766034496000,99.00000000],[1766034752000,99.00000000],], 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: [[1766012432000,1029.5],[1766012552000,1029.4],[1766012880000,1029.3],[1766013200000,1029.5],[1766013452000,1029.5],[1766013776000,1029.4],[1766014096000,1029.5],[1766014352000,1029.5],[1766014672000,1029.4],[1766014992000,1029.5],[1766015312000,1029.5],[1766015568000,1029.5],[1766015888000,1029.5],[1766016209000,1029.5],[1766016465000,1029.4],[1766016785000,1029.5],[1766017106000,1029.5],[1766017361000,1029.6],[1766017681000,1029.5],[1766018001000,1029.5],[1766018257000,1029.6],[1766018577000,1029.6],[1766018897000,1029.6],[1766019153000,1029.6],[1766019473000,1029.7],[1766019806000,1029.6],[1766020053000,1029.8],[1766020384000,1029.6],[1766020704000,1029.7],[1766020953000,1029.7],[1766021280000,1029.6],[1766021600000,1029.6],[1766021852000,1029.7],[1766022176000,1029.8],[1766022496000,1029.7],[1766022752000,1029.7],[1766023072000,1029.7],[1766023394000,1029.8],[1766023713000,1029.8],[1766023969000,1029.8],[1766024289000,1029.8],[1766024609000,1029.6],[1766024865000,1029.7],[1766025201000,1029.7],[1766025458000,1029.7],[1766025778000,1029.6],[1766026098000,1029.6],[1766026354000,1029.4],[1766026673000,1029.6],[1766026993000,1029.6],[1766027313000,1029.3],[1766027569000,1029.5],[1766027889000,1029.5],[1766028209000,1029.5],[1766028467000,1029.5],[1766028785000,1029.6],[1766029057000,1029.6],[1766029394000,1029.6],[1766029715000,1029.6],[1766029969000,1029.6],[1766030289000,1029.7],[1766030609000,1029.6],[1766030865000,1029.7],[1766031185000,1029.7],[1766031505000,1029.7],[1766031762000,1029.8],[1766032082000,1029.8],[1766032353000,1029.8],[1766032674000,1030],[1766032993000,1029.9],[1766033317000,1029.9],[1766033600000,1030],[1766033852000,1030],[1766034176000,1030.1],[1766034496000,1030],[1766034752000,1030.1],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1766012432000,0],[1766012552000,0],[1766012880000,0],[1766013200000,0],[1766013452000,0],[1766013776000,0],[1766014096000,0],[1766014352000,0],[1766014672000,0.072],[1766014992000,0],[1766015312000,0],[1766015568000,0],[1766015888000,0],[1766016209000,0],[1766016465000,0],[1766016785000,0],[1766017106000,0],[1766017361000,0.576],[1766017681000,1.08],[1766018001000,0],[1766018257000,0],[1766018577000,0],[1766018897000,0],[1766019153000,0],[1766019473000,0],[1766019806000,0],[1766020053000,0],[1766020384000,0],[1766020704000,0],[1766020953000,0],[1766021280000,0],[1766021600000,0],[1766021852000,0],[1766022176000,0],[1766022496000,0],[1766022752000,0],[1766023072000,0],[1766023394000,0],[1766023713000,0],[1766023969000,0],[1766024289000,0],[1766024609000,0],[1766024865000,0],[1766025201000,0],[1766025458000,0],[1766025778000,0],[1766026098000,0],[1766026354000,0],[1766026673000,0],[1766026993000,0],[1766027313000,0],[1766027569000,0],[1766027889000,0],[1766028209000,0],[1766028467000,0],[1766028785000,0],[1766029057000,0],[1766029394000,0],[1766029715000,0],[1766029969000,0],[1766030289000,0],[1766030609000,0],[1766030865000,0],[1766031185000,0],[1766031505000,0],[1766031762000,0],[1766032082000,0],[1766032353000,0],[1766032674000,0],[1766032993000,0.072],[1766033317000,0],[1766033600000,0.9],[1766033852000,0],[1766034176000,0],[1766034496000,0],[1766034752000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1766012432000,0],[1766012552000,0],[1766012880000,0],[1766013200000,0],[1766013452000,0],[1766013776000,0],[1766014096000,0],[1766014352000,0],[1766014672000,0.504],[1766014992000,0],[1766015312000,0],[1766015568000,0],[1766015888000,0],[1766016209000,0],[1766016465000,0],[1766016785000,0],[1766017106000,0],[1766017361000,2.016],[1766017681000,2.016],[1766018001000,0],[1766018257000,0],[1766018577000,0],[1766018897000,0],[1766019153000,0],[1766019473000,0],[1766019806000,0],[1766020053000,0],[1766020384000,0],[1766020704000,0],[1766020953000,0],[1766021280000,0],[1766021600000,0],[1766021852000,0],[1766022176000,0],[1766022496000,0],[1766022752000,0],[1766023072000,0],[1766023394000,0],[1766023713000,0],[1766023969000,0],[1766024289000,0],[1766024609000,0],[1766024865000,0],[1766025201000,0],[1766025458000,0],[1766025778000,0],[1766026098000,0],[1766026354000,0],[1766026673000,0],[1766026993000,0],[1766027313000,0],[1766027569000,0],[1766027889000,0],[1766028209000,0],[1766028467000,0],[1766028785000,0],[1766029057000,0],[1766029394000,0],[1766029715000,0],[1766029969000,0],[1766030289000,0],[1766030609000,0],[1766030865000,0],[1766031185000,0],[1766031505000,0],[1766031762000,0],[1766032082000,0],[1766032353000,0],[1766032674000,0],[1766032993000,0.504],[1766033317000,0],[1766033600000,1.26],[1766033852000,0],[1766034176000,0],[1766034496000,0],[1766034752000,0],], 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: [[1766012432000,347.50000000],[1766012552000,350.20000000],[1766012880000,350.80000000],[1766013200000,350.00000000],[1766013452000,346.60000000],[1766013776000,348.20000000],[1766014096000,348.75000000],[1766014352000,326.60000000],[1766014672000,190.40000000],[1766014992000,4.80000000],[1766015312000,179.25000000],[1766015568000,356.00000000],[1766015888000,353.60000000],[1766016209000,178.75000000],[1766016465000,214.60000000],[1766016785000,145.40000000],[1766017106000,351.25000000],[1766017361000,292.80000000],[1766017681000,281.80000000],[1766018001000,310.75000000],[1766018257000,316.00000000],[1766018577000,323.80000000],[1766018897000,333.75000000],[1766019153000,341.20000000],[1766019473000,342.00000000],[1766019806000,342.75000000],[1766020053000,344.60000000],[1766020384000,346.20000000],[1766020704000,347.00000000],[1766020953000,347.00000000],[1766021280000,344.00000000],[1766021600000,342.25000000],[1766021852000,341.00000000],[1766022176000,341.80000000],[1766022496000,345.00000000],[1766022752000,347.00000000],[1766023072000,345.40000000],[1766023394000,328.00000000],[1766023713000,326.50000000],[1766023969000,335.20000000],[1766024289000,339.00000000],[1766024609000,339.00000000],[1766024865000,339.00000000],[1766025201000,340.25000000],[1766025458000,341.60000000],[1766025778000,349.20000000],[1766026098000,349.00000000],[1766026354000,349.60000000],[1766026673000,349.20000000],[1766026993000,349.00000000],[1766027313000,349.00000000],[1766027569000,348.80000000],[1766027889000,344.60000000],[1766028209000,339.50000000],[1766028467000,333.40000000],[1766028785000,338.50000000],[1766029057000,341.00000000],[1766029394000,342.00000000],[1766029715000,342.00000000],[1766029969000,342.60000000],[1766030289000,341.40000000],[1766030609000,338.50000000],[1766030865000,338.80000000],[1766031185000,324.20000000],[1766031505000,255.25000000],[1766031762000,353.20000000],[1766032082000,340.00000000],[1766032353000,331.00000000],[1766032674000,334.60000000],[1766032993000,313.20000000],[1766033317000,327.50000000],[1766033600000,289.00000000],[1766033852000,319.40000000],[1766034176000,333.00000000],[1766034496000,341.75000000],[1766034752000,343.00000000],], 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: [[1766012432000,0.00000000],[1766012552000,0.00000000],[1766012880000,0.00000000],[1766013200000,0.00000000],[1766013452000,0.00000000],[1766013776000,0.00000000],[1766014096000,0.00000000],[1766014352000,0.00000000],[1766014672000,0.00000000],[1766014992000,0.00000000],[1766015312000,0.00000000],[1766015568000,0.00000000],[1766015888000,0.00000000],[1766016209000,0.00000000],[1766016465000,0.00000000],[1766016785000,0.00000000],[1766017106000,0.00000000],[1766017361000,0.00000000],[1766017681000,0.00000000],[1766018001000,0.00000000],[1766018257000,0.00000000],[1766018577000,0.00000000],[1766018897000,0.00000000],[1766019153000,0.00000000],[1766019473000,0.00000000],[1766019806000,0.00000000],[1766020053000,0.00000000],[1766020384000,0.00000000],[1766020704000,0.00000000],[1766020953000,0.00000000],[1766021280000,0.00000000],[1766021600000,0.00000000],[1766021852000,0.00000000],[1766022176000,0.00000000],[1766022496000,0.00000000],[1766022752000,0.00000000],[1766023072000,0.00000000],[1766023394000,0.00000000],[1766023713000,0.00000000],[1766023969000,0.00000000],[1766024289000,0.00000000],[1766024609000,0.00000000],[1766024865000,0.00000000],[1766025201000,0.00000000],[1766025458000,0.00000000],[1766025778000,0.00000000],[1766026098000,0.00000000],[1766026354000,0.00000000],[1766026673000,0.00000000],[1766026993000,0.00000000],[1766027313000,0.00000000],[1766027569000,0.00000000],[1766027889000,0.00000000],[1766028209000,0.00000000],[1766028467000,0.00000000],[1766028785000,0.00000000],[1766029057000,0.00000000],[1766029394000,0.00000000],[1766029715000,0.00000000],[1766029969000,0.00000000],[1766030289000,0.00000000],[1766030609000,0.00000000],[1766030865000,0.00000000],[1766031185000,0.00000000],[1766031505000,0.00000000],[1766031762000,0.00000000],[1766032082000,0.00000000],[1766032353000,0.00000000],[1766032674000,0.00000000],[1766032993000,0.00000000],[1766033317000,0.00000000],[1766033600000,0.00000000],[1766033852000,0.00000000],[1766034176000,0.00000000],[1766034496000,0.00000000],[1766034752000,0.00000000],], 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: [[1766012432000,0.00000000],[1766012552000,0.00000000],[1766012880000,0.00000000],[1766013200000,0.00000000],[1766013452000,0.00000000],[1766013776000,0.00000000],[1766014096000,0.00000000],[1766014352000,0.00000000],[1766014672000,0.00000000],[1766014992000,0.00000000],[1766015312000,0.00000000],[1766015568000,0.00000000],[1766015888000,0.00000000],[1766016209000,0.00000000],[1766016465000,0.00000000],[1766016785000,0.00000000],[1766017106000,0.00000000],[1766017361000,0.00000000],[1766017681000,0.00000000],[1766018001000,0.00000000],[1766018257000,0.00000000],[1766018577000,0.00000000],[1766018897000,0.00000000],[1766019153000,0.00000000],[1766019473000,0.00000000],[1766019806000,0.00000000],[1766020053000,0.00000000],[1766020384000,0.00000000],[1766020704000,0.00000000],[1766020953000,0.00000000],[1766021280000,0.00000000],[1766021600000,0.00000000],[1766021852000,0.00000000],[1766022176000,0.00000000],[1766022496000,0.00000000],[1766022752000,0.00000000],[1766023072000,0.00000000],[1766023394000,0.00000000],[1766023713000,0.00000000],[1766023969000,0.00000000],[1766024289000,0.00000000],[1766024609000,0.00000000],[1766024865000,0.00000000],[1766025201000,0.00000000],[1766025458000,0.00000000],[1766025778000,0.00000000],[1766026098000,0.00000000],[1766026354000,0.00000000],[1766026673000,0.00000000],[1766026993000,0.00000000],[1766027313000,0.00000000],[1766027569000,0.00000000],[1766027889000,0.00000000],[1766028209000,0.00000000],[1766028467000,0.00000000],[1766028785000,0.00000000],[1766029057000,0.00000000],[1766029394000,0.00000000],[1766029715000,0.00000000],[1766029969000,0.00000000],[1766030289000,0.00000000],[1766030609000,0.00000000],[1766030865000,0.00000000],[1766031185000,0.00000000],[1766031505000,0.00000000],[1766031762000,0.00000000],[1766032082000,0.00000000],[1766032353000,0.00000000],[1766032674000,0.00000000],[1766032993000,0.00000000],[1766033317000,0.00000000],[1766033600000,0.00000000],[1766033852000,0.00000000],[1766034176000,0.00000000],[1766034496000,0.00000000],[1766034752000,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: [[1766012432000,0.00000000],[1766012552000,0.00000000],[1766012880000,0.00000000],[1766013200000,0.00000000],[1766013452000,0.00000000],[1766013776000,0.00000000],[1766014096000,0.00000000],[1766014352000,0.00000000],[1766014672000,0.00000000],[1766014992000,0.00000000],[1766015312000,0.00000000],[1766015568000,0.00000000],[1766015888000,0.00000000],[1766016209000,0.00000000],[1766016465000,0.00000000],[1766016785000,0.00000000],[1766017106000,0.00000000],[1766017361000,0.00000000],[1766017681000,0.06100000],[1766018001000,0.30500000],[1766018257000,0.30500000],[1766018577000,0.30500000],[1766018897000,0.30500000],[1766019153000,0.30500000],[1766019473000,0.30500000],[1766019806000,0.30500000],[1766020053000,0.30500000],[1766020384000,0.30500000],[1766020704000,0.30500000],[1766020953000,0.30500000],[1766021280000,0.30500000],[1766021600000,0.30500000],[1766021852000,0.30500000],[1766022176000,0.30500000],[1766022496000,0.30500000],[1766022752000,0.30500000],[1766023072000,0.30500000],[1766023394000,0.30500000],[1766023713000,0.30500000],[1766023969000,0.30500000],[1766024289000,0.30500000],[1766024609000,0.30500000],[1766024865000,0.30500000],[1766025201000,0.30500000],[1766025458000,0.30500000],[1766025778000,0.30500000],[1766026098000,0.30500000],[1766026354000,0.30500000],[1766026673000,0.30500000],[1766026993000,0.30500000],[1766027313000,0.30500000],[1766027569000,0.30500000],[1766027889000,0.30500000],[1766028209000,0.30500000],[1766028467000,0.30500000],[1766028785000,0.30500000],[1766029057000,0.30500000],[1766029394000,0.30500000],[1766029715000,0.30500000],[1766029969000,0.30500000],[1766030289000,0.30500000],[1766030609000,0.30500000],[1766030865000,0.30500000],[1766031185000,0.30500000],[1766031505000,0.30500000],[1766031762000,0.30500000],[1766032082000,0.30500000],[1766032353000,0.30500000],[1766032674000,0.30500000],[1766032993000,0.30500000],[1766033317000,0.30500000],[1766033600000,0.30500000],[1766033852000,0.30500000],[1766034176000,0.30500000],[1766034496000,0.30500000],[1766034752000,0.30500000],], 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; }