var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1646002800000,1.50000000],[1646003400000,1.30000000],[1646004000000,1.20000000],[1646004600000,1.20000000],[1646005200000,1.30000000],[1646005800000,1.30000000],[1646006400000,1.20000000],[1646007000000,1.20000000],[1646007600000,1.10000000],[1646008200000,1.00000000],[1646008800000,0.90000000],[1646009400000,0.90000000],[1646010000000,0.80000000],[1646010600000,0.70000000],[1646011200000,0.70000000],[1646011800000,0.60000000],[1646012400000,0.60000000],[1646013000000,0.50000000],[1646013600000,0.40000000],[1646014200000,0.40000000],[1646014800000,0.30000000],[1646015400000,0.20000000],[1646016000000,0.00000000],[1646016600000,-0.10000000],[1646017200000,-0.30000000],[1646017800000,-0.30000000],[1646018400000,-0.30000000],[1646019000000,-0.40000000],[1646019600000,-0.50000000],[1646020200000,-0.50000000],[1646020800000,-0.50000000],[1646021400000,-0.50000000],[1646022000000,-0.60000000],[1646022600000,-0.60000000],[1646023200000,-0.60000000],[1646023800000,-0.60000000],[1646024400000,-0.70000000],[1646025000000,-0.80000000],[1646025600000,-0.80000000],[1646026200000,-0.80000000],[1646026800000,-0.70000000],[1646027400000,-0.60000000],[1646028000000,-0.60000000],[1646028600000,-0.60000000],[1646029200000,-0.60000000],[1646029800000,-0.50000000],[1646030400000,-0.40000000],[1646031000000,-0.30000000],[1646031600000,-0.10000000],[1646032200000,0.10000000],[1646032800000,0.30000000],[1646033400000,0.50000000],[1646034000000,0.90000000],[1646034600000,0.80000000],[1646035800000,1.70000000],[1646036400000,1.80000000],[1646037000000,1.90000000],[1646037600000,1.90000000],[1646038200000,2.40000000],[1646038800000,2.30000000],[1646039400000,2.00000000],[1646040000000,2.30000000],[1646040600000,2.30000000],[1646041200000,1.80000000],[1646042400000,1.70000000],[1646043000000,2.30000000],[1646043600000,2.00000000],[1646044200000,1.80000000],[1646044800000,1.90000000],[1646045400000,1.80000000],[1646046000000,1.60000000],[1646046600000,0.80000000],[1646047200000,0.40000000],[1646047800000,1.20000000],[1646048400000,2.20000000],[1646049000000,3.10000000],[1646049600000,3.20000000],[1646050200000,3.00000000],[1646050800000,3.00000000],[1646051400000,2.80000000],[1646052000000,2.90000000],[1646052600000,3.10000000],[1646053200000,3.30000000],[1646053800000,3.60000000],[1646054400000,3.90000000],[1646055000000,3.90000000],[1646055600000,3.80000000],[1646056200000,4.20000000],[1646056800000,3.90000000],[1646057400000,3.70000000],[1646058000000,3.70000000],[1646058600000,3.60000000],[1646059200000,3.60000000],[1646059800000,3.60000000],[1646060400000,3.70000000],[1646061000000,4.00000000],[1646061600000,3.70000000],[1646062200000,3.40000000],[1646062800000,3.30000000],[1646063400000,3.20000000],[1646064000000,2.90000000],[1646064600000,2.70000000],[1646065200000,2.40000000],[1646065800000,2.20000000],[1646066400000,2.10000000],[1646067000000,2.00000000],[1646067600000,2.00000000],[1646068200000,2.10000000],[1646068800000,2.30000000],[1646069400000,2.30000000],[1646070000000,1.90000000],[1646070600000,1.60000000],[1646071200000,1.30000000],[1646071800000,1.30000000],[1646072400000,1.30000000],[1646073000000,0.90000000],[1646073600000,0.70000000],[1646074200000,0.60000000],[1646074800000,0.40000000],[1646075400000,0.20000000],[1646076000000,0.10000000],[1646076600000,0.00000000],[1646077200000,0.00000000],[1646077800000,0.00000000],[1646078400000,0.00000000],[1646079000000,-0.10000000],[1646079600000,-0.20000000],[1646080200000,-0.30000000],[1646080800000,-0.20000000],[1646081400000,-0.10000000],[1646082000000,-0.10000000],[1646082600000,-0.10000000],[1646083200000,-0.30000000],[1646083800000,-0.40000000],[1646084400000,-0.20000000],[1646085000000,-0.10000000],[1646085600000,-0.10000000],[1646086200000,-0.20000000],[1646086800000,-0.10000000],[1646087400000,-0.10000000],[1646088000000,-0.30000000],[1646088600000,-0.40000000],[1646089200000,-0.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1646002800000,-5.8],[1646003400000,-5.8],[1646004000000,-5.8],[1646004600000,-5.8],[1646005200000,-5.6],[1646005800000,-5.6],[1646006400000,-5.7],[1646007000000,-5.6],[1646007600000,-5.6],[1646008200000,-5.7],[1646008800000,-5.7],[1646009400000,-5.7],[1646010000000,-5.8],[1646010600000,-5.9],[1646011200000,-5.9],[1646011800000,-6],[1646012400000,-6],[1646013000000,-6],[1646013600000,-6.1],[1646014200000,-6.2],[1646014800000,-6.3],[1646015400000,-6.4],[1646016000000,-6.6],[1646016600000,-6.7],[1646017200000,-6.9],[1646017800000,-6.9],[1646018400000,-6.9],[1646019000000,-7],[1646019600000,-7.1],[1646020200000,-7.1],[1646020800000,-7.1],[1646021400000,-7.2],[1646022000000,-7.2],[1646022600000,-7.2],[1646023200000,-7.1],[1646023800000,-7.2],[1646024400000,-7.2],[1646025000000,-7.3],[1646025600000,-7.2],[1646026200000,-7.3],[1646026800000,-7.3],[1646027400000,-7.3],[1646028000000,-7.4],[1646028600000,-7.4],[1646029200000,-7.5],[1646029800000,-7.5],[1646030400000,-7.5],[1646031000000,-7.4],[1646031600000,-7.3],[1646032200000,-7.2],[1646032800000,-7.3],[1646033400000,-7.3],[1646034000000,-7.3],[1646034600000,-7.8],[1646035800000,-7.4],[1646036400000,-7.7],[1646037000000,-7.7],[1646037600000,-7.9],[1646038200000,-7.4],[1646038800000,-7.8],[1646039400000,-7.9],[1646040000000,-7.6],[1646040600000,-7.8],[1646041200000,-8.2],[1646042400000,-7.8],[1646043000000,-7.4],[1646043600000,-7.8],[1646044200000,-7.7],[1646044800000,-7.6],[1646045400000,-7.5],[1646046000000,-7.1],[1646046600000,-6.7],[1646047200000,-6.1],[1646047800000,-5.4],[1646048400000,-4.9],[1646049000000,-4.9],[1646049600000,-5.3],[1646050200000,-5.5],[1646050800000,-5.6],[1646051400000,-6],[1646052000000,-6],[1646052600000,-5.8],[1646053200000,-5.8],[1646053800000,-5.8],[1646054400000,-5.8],[1646055000000,-6.2],[1646055600000,-6.5],[1646056200000,-6.4],[1646056800000,-7],[1646057400000,-7.2],[1646058000000,-7.2],[1646058600000,-7.2],[1646059200000,-7.1],[1646059800000,-6.8],[1646060400000,-6.6],[1646061000000,-6.4],[1646061600000,-6.6],[1646062200000,-6.7],[1646062800000,-6.7],[1646063400000,-6.8],[1646064000000,-7],[1646064600000,-7.1],[1646065200000,-7.2],[1646065800000,-7.2],[1646066400000,-7.2],[1646067000000,-7.2],[1646067600000,-7.1],[1646068200000,-7],[1646068800000,-7],[1646069400000,-7],[1646070000000,-7.2],[1646070600000,-7.3],[1646071200000,-7.4],[1646071800000,-7.4],[1646072400000,-7.5],[1646073000000,-7.7],[1646073600000,-7.7],[1646074200000,-7.7],[1646074800000,-7.8],[1646075400000,-7.8],[1646076000000,-7.8],[1646076600000,-7.8],[1646077200000,-7.8],[1646077800000,-7.8],[1646078400000,-7.8],[1646079000000,-7.8],[1646079600000,-7.8],[1646080200000,-7.8],[1646080800000,-7.7],[1646081400000,-7.6],[1646082000000,-7.6],[1646082600000,-7.6],[1646083200000,-7.7],[1646083800000,-7.8],[1646084400000,-7.7],[1646085000000,-7.6],[1646085600000,-7.6],[1646086200000,-7.7],[1646086800000,-7.6],[1646087400000,-7.6],[1646088000000,-7.7],[1646088600000,-7.7],[1646089200000,-7.7],], 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: [[1646002800000,58.80000000],[1646003400000,59.40000000],[1646004000000,59.80000000],[1646004600000,60.00000000],[1646005200000,60.40000000],[1646005800000,60.60000000],[1646006400000,60.60000000],[1646007000000,61.00000000],[1646007600000,61.20000000],[1646008200000,61.40000000],[1646008800000,61.60000000],[1646009400000,61.60000000],[1646010000000,61.60000000],[1646010600000,61.60000000],[1646011200000,61.60000000],[1646011800000,61.80000000],[1646012400000,61.80000000],[1646013000000,62.00000000],[1646013600000,62.00000000],[1646014200000,61.80000000],[1646014800000,61.80000000],[1646015400000,61.60000000],[1646016000000,61.60000000],[1646016600000,61.40000000],[1646017200000,61.60000000],[1646017800000,61.60000000],[1646018400000,61.40000000],[1646019000000,61.40000000],[1646019600000,61.40000000],[1646020200000,61.40000000],[1646020800000,61.20000000],[1646021400000,61.00000000],[1646022000000,61.20000000],[1646022600000,61.60000000],[1646023200000,61.80000000],[1646023800000,61.40000000],[1646024400000,61.60000000],[1646025000000,62.00000000],[1646025600000,62.20000000],[1646026200000,62.00000000],[1646026800000,61.40000000],[1646027400000,61.00000000],[1646028000000,60.60000000],[1646028600000,60.40000000],[1646029200000,60.00000000],[1646029800000,59.40000000],[1646030400000,59.20000000],[1646031000000,59.00000000],[1646031600000,58.60000000],[1646032200000,58.20000000],[1646032800000,57.20000000],[1646033400000,56.20000000],[1646034000000,54.80000000],[1646034600000,53.20000000],[1646035800000,51.40000000],[1646036400000,49.60000000],[1646037000000,49.20000000],[1646037600000,48.60000000],[1646038200000,48.60000000],[1646038800000,47.80000000],[1646039400000,48.20000000],[1646040000000,48.40000000],[1646040600000,47.80000000],[1646041200000,48.00000000],[1646042400000,49.60000000],[1646043000000,49.20000000],[1646043600000,48.80000000],[1646044200000,49.60000000],[1646044800000,49.80000000],[1646045400000,50.40000000],[1646046000000,52.80000000],[1646046600000,57.60000000],[1646047200000,62.20000000],[1646047800000,62.00000000],[1646048400000,60.00000000],[1646049000000,56.20000000],[1646049600000,54.20000000],[1646050200000,54.00000000],[1646050800000,53.60000000],[1646051400000,52.60000000],[1646052000000,52.20000000],[1646052600000,52.40000000],[1646053200000,51.60000000],[1646053800000,50.80000000],[1646054400000,49.40000000],[1646055000000,48.00000000],[1646055600000,47.20000000],[1646056200000,46.40000000],[1646056800000,45.40000000],[1646057400000,45.20000000],[1646058000000,45.20000000],[1646058600000,45.60000000],[1646059200000,46.00000000],[1646059800000,46.80000000],[1646060400000,47.20000000],[1646061000000,47.00000000],[1646061600000,47.20000000],[1646062200000,48.00000000],[1646062800000,48.20000000],[1646063400000,48.20000000],[1646064000000,48.60000000],[1646064600000,49.00000000],[1646065200000,49.60000000],[1646065800000,50.20000000],[1646066400000,50.60000000],[1646067000000,51.00000000],[1646067600000,51.20000000],[1646068200000,51.20000000],[1646068800000,50.60000000],[1646069400000,50.60000000],[1646070000000,51.20000000],[1646070600000,52.00000000],[1646071200000,52.60000000],[1646071800000,52.60000000],[1646072400000,52.40000000],[1646073000000,53.00000000],[1646073600000,53.80000000],[1646074200000,54.20000000],[1646074800000,54.60000000],[1646075400000,55.20000000],[1646076000000,55.80000000],[1646076600000,56.20000000],[1646077200000,56.20000000],[1646077800000,56.20000000],[1646078400000,56.20000000],[1646079000000,56.40000000],[1646079600000,56.80000000],[1646080200000,57.20000000],[1646080800000,57.20000000],[1646081400000,57.20000000],[1646082000000,57.20000000],[1646082600000,57.20000000],[1646083200000,57.60000000],[1646083800000,57.80000000],[1646084400000,57.60000000],[1646085000000,57.60000000],[1646085600000,57.40000000],[1646086200000,57.40000000],[1646086800000,57.40000000],[1646087400000,57.40000000],[1646088000000,57.80000000],[1646088600000,58.20000000],[1646089200000,58.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: [[1646002800000,1030.6],[1646003400000,1030.5],[1646004000000,1030.4],[1646004600000,1030.4],[1646005200000,1030.3],[1646005800000,1030.2],[1646006400000,1030.1],[1646007000000,1030.1],[1646007600000,1030],[1646008200000,1029.9],[1646008800000,1029.7],[1646009400000,1029.7],[1646010000000,1029.6],[1646010600000,1029.6],[1646011200000,1029.5],[1646011800000,1029.5],[1646012400000,1029.4],[1646013000000,1029.4],[1646013600000,1029.3],[1646014200000,1029.2],[1646014800000,1029],[1646015400000,1029],[1646016000000,1028.9],[1646016600000,1028.9],[1646017200000,1028.8],[1646017800000,1028.7],[1646018400000,1028.6],[1646019000000,1028.5],[1646019600000,1028.6],[1646020200000,1028.6],[1646020800000,1028.5],[1646021400000,1028.3],[1646022000000,1028.3],[1646022600000,1028.4],[1646023200000,1028.5],[1646023800000,1028.7],[1646024400000,1028.8],[1646025000000,1028.8],[1646025600000,1028.8],[1646026200000,1028.8],[1646026800000,1028.9],[1646027400000,1028.9],[1646028000000,1029.1],[1646028600000,1029.2],[1646029200000,1029.3],[1646029800000,1029.2],[1646030400000,1029.2],[1646031000000,1029.2],[1646031600000,1029.1],[1646032200000,1029.1],[1646032800000,1029.1],[1646033400000,1029.1],[1646034000000,1029],[1646034600000,1029.2],[1646035800000,1029],[1646036400000,1029.1],[1646037000000,1029.1],[1646037600000,1029.2],[1646038200000,1029.2],[1646038800000,1029.2],[1646039400000,1029.3],[1646040000000,1029.3],[1646040600000,1029.5],[1646041200000,1029.7],[1646042400000,1029.9],[1646043000000,1029.8],[1646043600000,1030],[1646044200000,1030.1],[1646044800000,1030.2],[1646045400000,1030.2],[1646046000000,1030.3],[1646046600000,1030.7],[1646047200000,1030.8],[1646047800000,1030.4],[1646048400000,1030.1],[1646049000000,1029.8],[1646049600000,1029.8],[1646050200000,1029.9],[1646050800000,1030],[1646051400000,1029.9],[1646052000000,1030],[1646052600000,1030],[1646053200000,1030],[1646053800000,1029.9],[1646054400000,1029.8],[1646055000000,1029.7],[1646055600000,1029.8],[1646056200000,1029.7],[1646056800000,1029.9],[1646057400000,1030],[1646058000000,1030],[1646058600000,1030.2],[1646059200000,1030.4],[1646059800000,1030.5],[1646060400000,1030.5],[1646061000000,1030.5],[1646061600000,1030.7],[1646062200000,1030.9],[1646062800000,1030.9],[1646063400000,1030.9],[1646064000000,1031.1],[1646064600000,1031.2],[1646065200000,1031.4],[1646065800000,1031.6],[1646066400000,1031.8],[1646067000000,1032],[1646067600000,1032.1],[1646068200000,1032.2],[1646068800000,1032.3],[1646069400000,1032.5],[1646070000000,1032.6],[1646070600000,1032.8],[1646071200000,1033],[1646071800000,1033.1],[1646072400000,1033.1],[1646073000000,1033.3],[1646073600000,1033.5],[1646074200000,1033.6],[1646074800000,1033.7],[1646075400000,1033.8],[1646076000000,1033.9],[1646076600000,1034],[1646077200000,1034.1],[1646077800000,1034.1],[1646078400000,1034.1],[1646079000000,1034.2],[1646079600000,1034.3],[1646080200000,1034.3],[1646080800000,1034.3],[1646081400000,1034.2],[1646082000000,1034.2],[1646082600000,1034.3],[1646083200000,1034.3],[1646083800000,1034.4],[1646084400000,1034.3],[1646085000000,1034.3],[1646085600000,1034.3],[1646086200000,1034.4],[1646086800000,1034.4],[1646087400000,1034.4],[1646088000000,1034.5],[1646088600000,1034.4],[1646089200000,1034.4],], 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: [[1646002800000,0.00000000],[1646003400000,0.00000000],[1646004000000,0.00000000],[1646004600000,0.00000000],[1646005200000,0.00000000],[1646005800000,0.00000000],[1646006400000,0.00000000],[1646007000000,0.00000000],[1646007600000,0.00000000],[1646008200000,0.00000000],[1646008800000,0.00000000],[1646009400000,0.00000000],[1646010000000,0.00000000],[1646010600000,0.00000000],[1646011200000,0.00000000],[1646011800000,0.00000000],[1646012400000,0.00000000],[1646013000000,0.00000000],[1646013600000,0.00000000],[1646014200000,0.00000000],[1646014800000,0.00000000],[1646015400000,0.00000000],[1646016000000,0.00000000],[1646016600000,0.00000000],[1646017200000,0.00000000],[1646017800000,0.00000000],[1646018400000,0.00000000],[1646019000000,0.00000000],[1646019600000,0.00000000],[1646020200000,0.00000000],[1646020800000,0.00000000],[1646021400000,0.00000000],[1646022000000,0.00000000],[1646022600000,0.00000000],[1646023200000,0.00000000],[1646023800000,0.00000000],[1646024400000,0.00000000],[1646025000000,0.00000000],[1646025600000,0.00000000],[1646026200000,0.00000000],[1646026800000,2.00000000],[1646027400000,6.00000000],[1646028000000,10.00000000],[1646028600000,14.00000000],[1646029200000,20.00000000],[1646029800000,32.00000000],[1646030400000,42.00000000],[1646031000000,60.00000000],[1646031600000,84.00000000],[1646032200000,112.00000000],[1646032800000,140.00000000],[1646033400000,180.00000000],[1646034000000,182.00000000],[1646034600000,158.00000000],[1646035800000,328.00000000],[1646036400000,412.00000000],[1646037000000,312.00000000],[1646037600000,394.00000000],[1646038200000,450.00000000],[1646038800000,402.00000000],[1646039400000,298.00000000],[1646040000000,430.00000000],[1646040600000,344.00000000],[1646041200000,210.00000000],[1646042400000,324.00000000],[1646043000000,358.00000000],[1646043600000,138.00000000],[1646044200000,144.00000000],[1646044800000,166.00000000],[1646045400000,168.00000000],[1646046000000,114.00000000],[1646046600000,74.00000000],[1646047200000,190.00000000],[1646047800000,304.00000000],[1646048400000,668.00000000],[1646049000000,638.00000000],[1646049600000,612.00000000],[1646050200000,442.00000000],[1646050800000,274.00000000],[1646051400000,276.00000000],[1646052000000,248.00000000],[1646052600000,376.00000000],[1646053200000,460.00000000],[1646053800000,470.00000000],[1646054400000,458.00000000],[1646055000000,346.00000000],[1646055600000,314.00000000],[1646056200000,246.00000000],[1646056800000,120.00000000],[1646057400000,138.00000000],[1646058000000,86.00000000],[1646058600000,84.00000000],[1646059200000,86.00000000],[1646059800000,100.00000000],[1646060400000,200.00000000],[1646061000000,174.00000000],[1646061600000,84.00000000],[1646062200000,110.00000000],[1646062800000,58.00000000],[1646063400000,26.00000000],[1646064000000,18.00000000],[1646064600000,12.00000000],[1646065200000,8.00000000],[1646065800000,4.00000000],[1646066400000,2.00000000],[1646067000000,0.00000000],[1646067600000,0.00000000],[1646068200000,0.00000000],[1646068800000,0.00000000],[1646069400000,0.00000000],[1646070000000,0.00000000],[1646070600000,0.00000000],[1646071200000,0.00000000],[1646071800000,0.00000000],[1646072400000,0.00000000],[1646073000000,0.00000000],[1646073600000,0.00000000],[1646074200000,0.00000000],[1646074800000,0.00000000],[1646075400000,0.00000000],[1646076000000,0.00000000],[1646076600000,0.00000000],[1646077200000,0.00000000],[1646077800000,0.00000000],[1646078400000,0.00000000],[1646079000000,0.00000000],[1646079600000,0.00000000],[1646080200000,0.00000000],[1646080800000,0.00000000],[1646081400000,0.00000000],[1646082000000,0.00000000],[1646082600000,0.00000000],[1646083200000,0.00000000],[1646083800000,0.00000000],[1646084400000,0.00000000],[1646085000000,0.00000000],[1646085600000,0.00000000],[1646086200000,0.00000000],[1646086800000,0.00000000],[1646087400000,0.00000000],[1646088000000,0.00000000],[1646088600000,0.00000000],[1646089200000,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: [[1646002800000,0.00000000],[1646003400000,0.00000000],[1646004000000,0.00000000],[1646004600000,0.00000000],[1646005200000,0.00000000],[1646005800000,0.00000000],[1646006400000,0.00000000],[1646007000000,0.00000000],[1646007600000,0.00000000],[1646008200000,0.00000000],[1646008800000,0.00000000],[1646009400000,0.00000000],[1646010000000,0.00000000],[1646010600000,0.00000000],[1646011200000,0.00000000],[1646011800000,0.00000000],[1646012400000,0.00000000],[1646013000000,0.00000000],[1646013600000,0.00000000],[1646014200000,0.00000000],[1646014800000,0.00000000],[1646015400000,0.00000000],[1646016000000,0.00000000],[1646016600000,0.00000000],[1646017200000,0.00000000],[1646017800000,0.00000000],[1646018400000,0.00000000],[1646019000000,0.00000000],[1646019600000,0.00000000],[1646020200000,0.00000000],[1646020800000,0.00000000],[1646021400000,0.00000000],[1646022000000,0.00000000],[1646022600000,0.00000000],[1646023200000,0.00000000],[1646023800000,0.00000000],[1646024400000,0.00000000],[1646025000000,0.00000000],[1646025600000,0.00000000],[1646026200000,0.00000000],[1646026800000,0.00000000],[1646027400000,0.00000000],[1646028000000,0.00000000],[1646028600000,0.00000000],[1646029200000,0.00000000],[1646029800000,0.00000000],[1646030400000,0.00000000],[1646031000000,0.00000000],[1646031600000,0.00000000],[1646032200000,0.00000000],[1646032800000,0.00000000],[1646033400000,0.00000000],[1646034000000,0.00000000],[1646034600000,0.00000000],[1646035800000,0.00000000],[1646036400000,0.00000000],[1646037000000,0.00000000],[1646037600000,0.00000000],[1646038200000,0.00000000],[1646038800000,0.00000000],[1646039400000,0.00000000],[1646040000000,0.00000000],[1646040600000,0.00000000],[1646041200000,0.00000000],[1646042400000,0.00000000],[1646043000000,0.00000000],[1646043600000,0.00000000],[1646044200000,0.00000000],[1646044800000,0.00000000],[1646045400000,0.00000000],[1646046000000,0.00000000],[1646046600000,0.00000000],[1646047200000,0.00000000],[1646047800000,0.00000000],[1646048400000,0.00000000],[1646049000000,0.00000000],[1646049600000,0.00000000],[1646050200000,0.00000000],[1646050800000,0.00000000],[1646051400000,0.00000000],[1646052000000,0.00000000],[1646052600000,0.00000000],[1646053200000,0.00000000],[1646053800000,0.00000000],[1646054400000,0.00000000],[1646055000000,0.00000000],[1646055600000,0.00000000],[1646056200000,0.00000000],[1646056800000,0.00000000],[1646057400000,0.00000000],[1646058000000,0.00000000],[1646058600000,0.00000000],[1646059200000,0.00000000],[1646059800000,0.00000000],[1646060400000,0.00000000],[1646061000000,0.00000000],[1646061600000,0.00000000],[1646062200000,0.00000000],[1646062800000,0.00000000],[1646063400000,0.00000000],[1646064000000,0.00000000],[1646064600000,0.00000000],[1646065200000,0.00000000],[1646065800000,0.00000000],[1646066400000,0.00000000],[1646067000000,0.00000000],[1646067600000,0.00000000],[1646068200000,0.00000000],[1646068800000,0.00000000],[1646069400000,0.00000000],[1646070000000,0.00000000],[1646070600000,0.00000000],[1646071200000,0.00000000],[1646071800000,0.00000000],[1646072400000,0.00000000],[1646073000000,0.00000000],[1646073600000,0.00000000],[1646074200000,0.00000000],[1646074800000,0.00000000],[1646075400000,0.00000000],[1646076000000,0.00000000],[1646076600000,0.00000000],[1646077200000,0.00000000],[1646077800000,0.00000000],[1646078400000,0.00000000],[1646079000000,0.00000000],[1646079600000,0.00000000],[1646080200000,0.00000000],[1646080800000,0.00000000],[1646081400000,0.00000000],[1646082000000,0.00000000],[1646082600000,0.00000000],[1646083200000,0.00000000],[1646083800000,0.00000000],[1646084400000,0.00000000],[1646085000000,0.00000000],[1646085600000,0.00000000],[1646086200000,0.00000000],[1646086800000,0.00000000],[1646087400000,0.00000000],[1646088000000,0.00000000],[1646088600000,0.00000000],[1646089200000,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; }