var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1581548408000,1.30000000],[1581549009000,1.30000000],[1581549609000,1.20000000],[1581550209000,1.10000000],[1581550808000,1.00000000],[1581551409000,0.90000000],[1581552009000,0.80000000],[1581552608000,0.60000000],[1581553209000,0.60000000],[1581553809000,0.60000000],[1581554408000,0.60000000],[1581555009000,0.60000000],[1581555608000,0.50000000],[1581556208000,0.50000000],[1581556808000,0.60000000],[1581557408000,0.60000000],[1581558009000,0.70000000],[1581558608000,0.80000000],[1581559209000,0.40000000],[1581559809000,-0.40000000],[1581560408000,-0.80000000],[1581561008000,-1.00000000],[1581561609000,-0.90000000],[1581562209000,-0.70000000],[1581562809000,-0.40000000],[1581563408000,-1.20000000],[1581564008000,-1.60000000],[1581564609000,-1.70000000],[1581565208000,-1.60000000],[1581565808000,-1.50000000],[1581566409000,-1.90000000],[1581567009000,-2.00000000],[1581567608000,-2.00000000],[1581568209000,-2.00000000],[1581568809000,-1.90000000],[1581569408000,-2.00000000],[1581570009000,-1.90000000],[1581570609000,-1.80000000],[1581571209000,-1.90000000],[1581571809000,-2.00000000],[1581572409000,-1.90000000],[1581573009000,-1.80000000],[1581573609000,-1.80000000],[1581574209000,-1.80000000],[1581574809000,-1.80000000],[1581575409000,-1.80000000],[1581576009000,-1.80000000],[1581576609000,-1.90000000],[1581577208000,-1.80000000],[1581577809000,-1.40000000],[1581578409000,-0.60000000],[1581579009000,0.30000000],[1581579609000,0.40000000],[1581580209000,0.30000000],[1581580809000,0.60000000],[1581581409000,1.00000000],[1581582009000,1.60000000],[1581582609000,1.30000000],[1581583209000,1.30000000],[1581583809000,1.50000000],[1581584409000,2.00000000],[1581585009000,2.30000000],[1581585609000,2.90000000],[1581586210000,4.20000000],[1581586809000,4.50000000],[1581587409000,4.40000000],[1581588009000,4.10000000],[1581588609000,4.10000000],[1581589209000,4.40000000],[1581589810000,4.20000000],[1581590409000,4.10000000],[1581591010000,4.30000000],[1581591609000,4.70000000],[1581592209000,5.30000000],[1581592810000,5.50000000],[1581593410000,5.90000000],[1581594009000,6.20000000],[1581594610000,6.00000000],[1581595209000,5.90000000],[1581595810000,6.00000000],[1581596409000,6.20000000],[1581597009000,6.10000000],[1581597610000,6.00000000],[1581598209000,5.80000000],[1581598809000,5.60000000],[1581599410000,5.60000000],[1581600010000,5.50000000],[1581600609000,5.40000000],[1581601210000,5.20000000],[1581601810000,5.20000000],[1581602409000,5.20000000],[1581603009000,5.30000000],[1581603610000,5.10000000],[1581604209000,5.00000000],[1581604809000,5.00000000],[1581605410000,4.90000000],[1581606009000,4.70000000],[1581606610000,4.60000000],[1581607210000,4.40000000],[1581607810000,4.20000000],[1581608410000,4.00000000],[1581609010000,3.80000000],[1581609609000,3.60000000],[1581610209000,3.70000000],[1581610810000,3.70000000],[1581611409000,3.80000000],[1581612010000,3.80000000],[1581612610000,3.80000000],[1581613209000,3.80000000],[1581613810000,3.70000000],[1581614410000,3.60000000],[1581615010000,3.60000000],[1581615610000,3.70000000],[1581616210000,3.80000000],[1581616810000,3.70000000],[1581617410000,3.70000000],[1581618010000,3.70000000],[1581618610000,3.60000000],[1581619210000,3.60000000],[1581619810000,3.70000000],[1581620410000,3.70000000],[1581621009000,3.70000000],[1581621610000,3.70000000],[1581622210000,3.70000000],[1581622810000,3.60000000],[1581623410000,3.60000000],[1581624010000,3.60000000],[1581624610000,3.50000000],[1581625210000,3.50000000],[1581625810000,3.40000000],[1581626410000,3.50000000],[1581627010000,3.50000000],[1581627610000,3.50000000],[1581628210000,3.50000000],[1581628810000,3.60000000],[1581629410000,3.70000000],[1581630010000,3.70000000],[1581630611000,3.70000000],[1581631210000,3.60000000],[1581631810000,3.60000000],[1581632411000,3.60000000],[1581633010000,3.70000000],[1581633610000,3.70000000],[1581634210000,3.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1581548408000,-2.1],[1581549009000,-2],[1581549609000,-2.1],[1581550209000,-2.2],[1581550808000,-2.2],[1581551409000,-2.3],[1581552009000,-2.4],[1581552608000,-2.6],[1581553209000,-2.5],[1581553809000,-2.5],[1581554408000,-2.5],[1581555009000,-2.6],[1581555608000,-2.7],[1581556208000,-2.6],[1581556808000,-2.6],[1581557408000,-2.6],[1581558009000,-2.6],[1581558608000,-2.5],[1581559209000,-2.8],[1581559809000,-3.1],[1581560408000,-3.3],[1581561008000,-3.4],[1581561609000,-3.3],[1581562209000,-3.1],[1581562809000,-3],[1581563408000,-3.7],[1581564008000,-3.8],[1581564609000,-3.8],[1581565208000,-3.6],[1581565808000,-3.6],[1581566409000,-3.9],[1581567009000,-3.8],[1581567608000,-3.8],[1581568209000,-3.7],[1581568809000,-3.6],[1581569408000,-3.7],[1581570009000,-3.5],[1581570609000,-3.4],[1581571209000,-3.5],[1581571809000,-3.6],[1581572409000,-3.4],[1581573009000,-3.3],[1581573609000,-3.3],[1581574209000,-3.3],[1581574809000,-3.3],[1581575409000,-3.2],[1581576009000,-3.2],[1581576609000,-3.3],[1581577208000,-3.2],[1581577809000,-2.7],[1581578409000,-1.9],[1581579009000,-1],[1581579609000,-1.1],[1581580209000,-1.3],[1581580809000,-1],[1581581409000,-0.7],[1581582009000,-0.2],[1581582609000,-0.6],[1581583209000,-0.6],[1581583809000,-0.4],[1581584409000,0],[1581585009000,0.2],[1581585609000,0.7],[1581586210000,1.4],[1581586809000,1.2],[1581587409000,1],[1581588009000,0.6],[1581588609000,0.4],[1581589209000,0.5],[1581589810000,0],[1581590409000,-0.2],[1581591010000,-0.2],[1581591609000,0.5],[1581592209000,0.4],[1581592810000,0],[1581593410000,-0.2],[1581594009000,-0.3],[1581594610000,-1],[1581595209000,-1.4],[1581595810000,-1.3],[1581596409000,-1.3],[1581597009000,-0.7],[1581597610000,-0.8],[1581598209000,-1],[1581598809000,-1.1],[1581599410000,-1],[1581600010000,-1.2],[1581600609000,-1.3],[1581601210000,-1.4],[1581601810000,-1.4],[1581602409000,-1.6],[1581603009000,-1.4],[1581603610000,-1.4],[1581604209000,-1.3],[1581604809000,-1.1],[1581605410000,-1.1],[1581606009000,-1.2],[1581606610000,-1.2],[1581607210000,-1.3],[1581607810000,-1.5],[1581608410000,-1.5],[1581609010000,-1.7],[1581609609000,-1.8],[1581610209000,-1.7],[1581610810000,-1.8],[1581611409000,-1.8],[1581612010000,-1.8],[1581612610000,-1.8],[1581613209000,-1.8],[1581613810000,-1.8],[1581614410000,-1.8],[1581615010000,-1.8],[1581615610000,-1.7],[1581616210000,-1.6],[1581616810000,-1.6],[1581617410000,-1.6],[1581618010000,-1.6],[1581618610000,-1.6],[1581619210000,-1.5],[1581619810000,-1.4],[1581620410000,-1.4],[1581621009000,-1.4],[1581621610000,-1.4],[1581622210000,-1.4],[1581622810000,-1.5],[1581623410000,-1.4],[1581624010000,-1.4],[1581624610000,-1.4],[1581625210000,-1.3],[1581625810000,-1.2],[1581626410000,-1.1],[1581627010000,-0.9],[1581627610000,-0.8],[1581628210000,-0.8],[1581628810000,-0.7],[1581629410000,-0.6],[1581630010000,-0.6],[1581630611000,-0.5],[1581631210000,-0.6],[1581631810000,-0.5],[1581632411000,-0.5],[1581633010000,-0.4],[1581633610000,-0.4],[1581634210000,-0.5],], 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: [[1581548408000,78.60000000],[1581549009000,78.80000000],[1581549609000,79.00000000],[1581550209000,79.00000000],[1581550808000,79.20000000],[1581551409000,79.40000000],[1581552009000,79.40000000],[1581552608000,79.60000000],[1581553209000,79.80000000],[1581553809000,79.80000000],[1581554408000,79.80000000],[1581555009000,79.60000000],[1581555608000,79.60000000],[1581556208000,79.80000000],[1581556808000,79.40000000],[1581557408000,79.20000000],[1581558009000,79.00000000],[1581558608000,78.60000000],[1581559209000,79.40000000],[1581559809000,82.00000000],[1581560408000,83.20000000],[1581561008000,83.80000000],[1581561609000,84.00000000],[1581562209000,83.80000000],[1581562809000,82.60000000],[1581563408000,83.40000000],[1581564008000,85.00000000],[1581564609000,85.80000000],[1581565208000,86.60000000],[1581565808000,86.00000000],[1581566409000,86.40000000],[1581567009000,87.40000000],[1581567608000,87.80000000],[1581568209000,88.20000000],[1581568809000,88.40000000],[1581569408000,88.60000000],[1581570009000,89.00000000],[1581570609000,89.00000000],[1581571209000,89.00000000],[1581571809000,89.20000000],[1581572409000,89.40000000],[1581573009000,89.60000000],[1581573609000,89.60000000],[1581574209000,89.80000000],[1581574809000,89.80000000],[1581575409000,90.00000000],[1581576009000,90.00000000],[1581576609000,90.00000000],[1581577208000,90.40000000],[1581577809000,90.80000000],[1581578409000,91.00000000],[1581579009000,90.80000000],[1581579609000,89.60000000],[1581580209000,89.40000000],[1581580809000,89.20000000],[1581581409000,88.60000000],[1581582009000,88.00000000],[1581582609000,87.60000000],[1581583209000,87.40000000],[1581583809000,87.40000000],[1581584409000,87.00000000],[1581585009000,86.20000000],[1581585609000,85.60000000],[1581586210000,82.40000000],[1581586809000,79.60000000],[1581587409000,78.60000000],[1581588009000,78.00000000],[1581588609000,77.20000000],[1581589209000,76.00000000],[1581589810000,74.60000000],[1581590409000,74.00000000],[1581591010000,72.60000000],[1581591609000,74.60000000],[1581592209000,71.20000000],[1581592810000,68.20000000],[1581593410000,65.40000000],[1581594009000,63.40000000],[1581594610000,61.00000000],[1581595209000,60.00000000],[1581595810000,59.80000000],[1581596409000,59.20000000],[1581597009000,62.00000000],[1581597610000,62.20000000],[1581598209000,62.00000000],[1581598809000,62.60000000],[1581599410000,63.00000000],[1581600010000,62.60000000],[1581600609000,62.40000000],[1581601210000,62.60000000],[1581601810000,62.60000000],[1581602409000,62.00000000],[1581603009000,62.40000000],[1581603610000,63.20000000],[1581604209000,64.20000000],[1581604809000,64.80000000],[1581605410000,65.60000000],[1581606009000,65.80000000],[1581606610000,66.40000000],[1581607210000,66.80000000],[1581607810000,67.00000000],[1581608410000,67.60000000],[1581609010000,67.80000000],[1581609609000,68.20000000],[1581610209000,68.00000000],[1581610810000,67.40000000],[1581611409000,67.20000000],[1581612010000,67.00000000],[1581612610000,67.00000000],[1581613209000,67.40000000],[1581613810000,67.60000000],[1581614410000,68.00000000],[1581615010000,68.20000000],[1581615610000,68.00000000],[1581616210000,68.00000000],[1581616810000,68.40000000],[1581617410000,68.60000000],[1581618010000,68.80000000],[1581618610000,69.20000000],[1581619210000,69.40000000],[1581619810000,69.40000000],[1581620410000,69.40000000],[1581621009000,69.40000000],[1581621610000,69.40000000],[1581622210000,69.40000000],[1581622810000,69.80000000],[1581623410000,70.00000000],[1581624010000,70.20000000],[1581624610000,70.80000000],[1581625210000,71.20000000],[1581625810000,72.00000000],[1581626410000,72.40000000],[1581627010000,73.00000000],[1581627610000,73.60000000],[1581628210000,73.80000000],[1581628810000,74.00000000],[1581629410000,74.00000000],[1581630010000,74.00000000],[1581630611000,74.20000000],[1581631210000,74.40000000],[1581631810000,74.80000000],[1581632411000,74.80000000],[1581633010000,74.60000000],[1581633610000,74.60000000],[1581634210000,74.80000000],], 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: [[1581548408000,1023.3],[1581549009000,1023.5],[1581549609000,1023.6],[1581550209000,1023.5],[1581550808000,1023.6],[1581551409000,1023.6],[1581552009000,1023.6],[1581552608000,1023.6],[1581553209000,1023.7],[1581553809000,1023.7],[1581554408000,1023.7],[1581555009000,1023.8],[1581555608000,1023.9],[1581556208000,1023.9],[1581556808000,1023.7],[1581557408000,1023.6],[1581558009000,1023.5],[1581558608000,1023.5],[1581559209000,1023.7],[1581559809000,1024],[1581560408000,1024.1],[1581561008000,1024.3],[1581561609000,1024.4],[1581562209000,1024.4],[1581562809000,1024.4],[1581563408000,1024.6],[1581564008000,1024.9],[1581564609000,1024.9],[1581565208000,1025],[1581565808000,1025.1],[1581566409000,1025.3],[1581567009000,1025.5],[1581567608000,1025.6],[1581568209000,1025.6],[1581568809000,1025.6],[1581569408000,1025.6],[1581570009000,1025.5],[1581570609000,1025.4],[1581571209000,1025.5],[1581571809000,1025.4],[1581572409000,1025.6],[1581573009000,1025.8],[1581573609000,1025.9],[1581574209000,1026],[1581574809000,1026.1],[1581575409000,1026.1],[1581576009000,1026.1],[1581576609000,1026.2],[1581577208000,1026.1],[1581577809000,1026.1],[1581578409000,1025.9],[1581579009000,1025.6],[1581579609000,1025.6],[1581580209000,1025.7],[1581580809000,1025.8],[1581581409000,1025.9],[1581582009000,1025.8],[1581582609000,1025.9],[1581583209000,1025.9],[1581583809000,1026],[1581584409000,1025.9],[1581585009000,1025.9],[1581585609000,1025.8],[1581586210000,1025.7],[1581586809000,1025.6],[1581587409000,1025.7],[1581588009000,1025.7],[1581588609000,1025.6],[1581589209000,1025.6],[1581589810000,1025.5],[1581590409000,1025.4],[1581591010000,1025.2],[1581591609000,1024.9],[1581592209000,1024.7],[1581592810000,1024.5],[1581593410000,1024.2],[1581594009000,1024],[1581594610000,1024],[1581595209000,1023.8],[1581595810000,1023.7],[1581596409000,1023.5],[1581597009000,1023.4],[1581597610000,1023.3],[1581598209000,1023.1],[1581598809000,1023],[1581599410000,1022.9],[1581600010000,1022.7],[1581600609000,1022.6],[1581601210000,1022.5],[1581601810000,1022.4],[1581602409000,1022.4],[1581603009000,1022.2],[1581603610000,1022.1],[1581604209000,1022],[1581604809000,1021.8],[1581605410000,1021.6],[1581606009000,1021.5],[1581606610000,1021.4],[1581607210000,1021.3],[1581607810000,1021.1],[1581608410000,1021],[1581609010000,1020.9],[1581609609000,1020.9],[1581610209000,1020.9],[1581610810000,1020.7],[1581611409000,1020.6],[1581612010000,1020.5],[1581612610000,1020.4],[1581613209000,1020.4],[1581613810000,1020.4],[1581614410000,1020.2],[1581615010000,1020.2],[1581615610000,1020.1],[1581616210000,1019.8],[1581616810000,1019.6],[1581617410000,1019.4],[1581618010000,1019.3],[1581618610000,1019],[1581619210000,1018.9],[1581619810000,1018.6],[1581620410000,1018.6],[1581621009000,1018.6],[1581621610000,1018.6],[1581622210000,1018.2],[1581622810000,1018.1],[1581623410000,1017.9],[1581624010000,1017.8],[1581624610000,1017.6],[1581625210000,1017.4],[1581625810000,1017.2],[1581626410000,1017.1],[1581627010000,1017.1],[1581627610000,1017.1],[1581628210000,1017.2],[1581628810000,1017.3],[1581629410000,1017.2],[1581630010000,1017.1],[1581630611000,1017],[1581631210000,1016.8],[1581631810000,1016.6],[1581632411000,1016.4],[1581633010000,1016.1],[1581633610000,1015.8],[1581634210000,1015.6],], 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: 'Slnečné žiarenie (W/m2)', data: [[1581548408000,0.00000000],[1581549009000,0.00000000],[1581549609000,0.00000000],[1581550209000,0.00000000],[1581550808000,0.00000000],[1581551409000,0.00000000],[1581552009000,0.00000000],[1581552608000,0.00000000],[1581553209000,0.00000000],[1581553809000,0.00000000],[1581554408000,0.00000000],[1581555009000,0.00000000],[1581555608000,0.00000000],[1581556208000,0.00000000],[1581556808000,0.00000000],[1581557408000,0.00000000],[1581558009000,0.00000000],[1581558608000,0.00000000],[1581559209000,0.00000000],[1581559809000,0.00000000],[1581560408000,0.00000000],[1581561008000,0.00000000],[1581561609000,0.00000000],[1581562209000,0.00000000],[1581562809000,0.00000000],[1581563408000,0.00000000],[1581564008000,0.00000000],[1581564609000,0.00000000],[1581565208000,0.00000000],[1581565808000,0.00000000],[1581566409000,0.00000000],[1581567009000,0.00000000],[1581567608000,0.00000000],[1581568209000,0.00000000],[1581568809000,0.00000000],[1581569408000,0.00000000],[1581570009000,0.00000000],[1581570609000,0.00000000],[1581571209000,0.00000000],[1581571809000,0.00000000],[1581572409000,0.00000000],[1581573009000,0.00000000],[1581573609000,2.00000000],[1581574209000,6.00000000],[1581574809000,10.00000000],[1581575409000,16.00000000],[1581576009000,22.00000000],[1581576609000,32.00000000],[1581577208000,68.00000000],[1581577809000,94.00000000],[1581578409000,126.00000000],[1581579009000,158.00000000],[1581579609000,170.00000000],[1581580209000,196.00000000],[1581580809000,228.00000000],[1581581409000,250.00000000],[1581582009000,262.00000000],[1581582609000,282.00000000],[1581583209000,308.00000000],[1581583809000,330.00000000],[1581584409000,356.00000000],[1581585009000,380.00000000],[1581585609000,414.00000000],[1581586210000,434.00000000],[1581586809000,426.00000000],[1581587409000,366.00000000],[1581588009000,276.00000000],[1581588609000,290.00000000],[1581589209000,274.00000000],[1581589810000,198.00000000],[1581590409000,252.00000000],[1581591010000,286.00000000],[1581591609000,442.00000000],[1581592209000,494.00000000],[1581592810000,468.00000000],[1581593410000,482.00000000],[1581594009000,476.00000000],[1581594610000,468.00000000],[1581595209000,456.00000000],[1581595810000,450.00000000],[1581596409000,442.00000000],[1581597009000,434.00000000],[1581597610000,412.00000000],[1581598209000,372.00000000],[1581598809000,330.00000000],[1581599410000,362.00000000],[1581600010000,358.00000000],[1581600609000,326.00000000],[1581601210000,290.00000000],[1581601810000,260.00000000],[1581602409000,212.00000000],[1581603009000,188.00000000],[1581603610000,170.00000000],[1581604209000,142.00000000],[1581604809000,120.00000000],[1581605410000,98.00000000],[1581606009000,74.00000000],[1581606610000,54.00000000],[1581607210000,34.00000000],[1581607810000,24.00000000],[1581608410000,16.00000000],[1581609010000,8.00000000],[1581609609000,2.00000000],[1581610209000,0.00000000],[1581610810000,0.00000000],[1581611409000,0.00000000],[1581612010000,0.00000000],[1581612610000,0.00000000],[1581613209000,0.00000000],[1581613810000,0.00000000],[1581614410000,0.00000000],[1581615010000,0.00000000],[1581615610000,0.00000000],[1581616210000,0.00000000],[1581616810000,0.00000000],[1581617410000,0.00000000],[1581618010000,0.00000000],[1581618610000,0.00000000],[1581619210000,0.00000000],[1581619810000,0.00000000],[1581620410000,0.00000000],[1581621009000,0.00000000],[1581621610000,0.00000000],[1581622210000,0.00000000],[1581622810000,0.00000000],[1581623410000,0.00000000],[1581624010000,0.00000000],[1581624610000,0.00000000],[1581625210000,0.00000000],[1581625810000,0.00000000],[1581626410000,0.00000000],[1581627010000,0.00000000],[1581627610000,0.00000000],[1581628210000,0.00000000],[1581628810000,0.00000000],[1581629410000,0.00000000],[1581630010000,0.00000000],[1581630611000,0.00000000],[1581631210000,0.00000000],[1581631810000,0.00000000],[1581632411000,0.00000000],[1581633010000,0.00000000],[1581633610000,0.00000000],[1581634210000,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: 'Zrážky', data: [[1581580809000,0.28000000],], 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; }