var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1609974008000,0.10000000],[1609974609000,0.10000000],[1609975209000,-0.10000000],[1609975808000,-0.20000000],[1609976409000,-0.30000000],[1609977009000,-0.30000000],[1609977608000,-0.30000000],[1609978209000,-0.30000000],[1609978808000,-0.30000000],[1609979408000,-0.30000000],[1609980009000,-0.30000000],[1609980608000,-0.30000000],[1609981208000,-0.30000000],[1609981809000,-0.30000000],[1609982408000,-0.30000000],[1609983008000,-0.30000000],[1609983609000,-0.30000000],[1609984209000,-0.40000000],[1609984808000,-0.40000000],[1609985409000,-0.40000000],[1609986008000,-0.40000000],[1609986608000,-0.40000000],[1609987209000,-0.50000000],[1609987809000,-0.50000000],[1609988408000,-0.40000000],[1609989009000,-0.50000000],[1609989608000,-0.60000000],[1609990209000,-0.70000000],[1609990809000,-0.80000000],[1609991409000,-0.80000000],[1609992008000,-0.80000000],[1609992609000,-0.70000000],[1609993209000,-0.70000000],[1609993809000,-0.70000000],[1609994409000,-0.70000000],[1609995009000,-0.70000000],[1609995609000,-0.70000000],[1609996208000,-0.70000000],[1609996809000,-0.70000000],[1609997409000,-0.70000000],[1609998009000,-0.70000000],[1609998609000,-0.70000000],[1609999209000,-0.70000000],[1609999809000,-0.70000000],[1610000409000,-0.60000000],[1610001009000,-0.60000000],[1610001609000,-0.60000000],[1610002209000,-0.60000000],[1610002809000,-0.50000000],[1610003409000,-0.50000000],[1610004009000,-0.40000000],[1610004609000,-0.40000000],[1610005209000,-0.40000000],[1610005809000,-0.40000000],[1610006410000,-0.30000000],[1610007009000,-0.20000000],[1610007609000,-0.20000000],[1610008210000,-0.10000000],[1610008809000,-0.10000000],[1610009409000,0.30000000],[1610010010000,0.40000000],[1610010609000,0.40000000],[1610011209000,0.60000000],[1610011810000,1.10000000],[1610012409000,1.10000000],[1610013009000,0.60000000],[1610013610000,0.80000000],[1610014209000,1.20000000],[1610014809000,1.40000000],[1610015410000,1.20000000],[1610016009000,0.90000000],[1610016609000,0.90000000],[1610017210000,1.00000000],[1610017809000,1.00000000],[1610018410000,1.00000000],[1610019009000,1.00000000],[1610020210000,1.20000000],[1610020810000,1.10000000],[1610022009000,1.50000000],[1610022610000,1.30000000],[1610023209000,1.00000000],[1610023810000,1.20000000],[1610024410000,1.90000000],[1610025009000,1.90000000],[1610025610000,1.80000000],[1610026209000,1.50000000],[1610026810000,1.40000000],[1610027410000,1.30000000],[1610028010000,1.30000000],[1610028610000,1.30000000],[1610029210000,1.10000000],[1610029810000,1.00000000],[1610030410000,0.90000000],[1610031010000,0.80000000],[1610031610000,0.70000000],[1610032210000,0.70000000],[1610032810000,0.70000000],[1610033410000,0.60000000],[1610034010000,0.50000000],[1610034610000,0.50000000],[1610035210000,0.40000000],[1610035810000,0.30000000],[1610036410000,0.20000000],[1610037010000,0.10000000],[1610037610000,0.10000000],[1610038210000,0.00000000],[1610038810000,0.00000000],[1610039410000,0.10000000],[1610040010000,0.00000000],[1610040610000,0.10000000],[1610041210000,0.00000000],[1610041811000,0.00000000],[1610042410000,0.00000000],[1610043010000,-0.30000000],[1610043610000,-0.40000000],[1610044210000,-0.50000000],[1610044811000,-0.60000000],[1610045410000,-0.70000000],[1610046010000,-0.80000000],[1610046611000,-0.80000000],[1610047210000,-0.90000000],[1610047810000,-1.00000000],[1610048411000,-1.30000000],[1610049010000,-1.50000000],[1610049610000,-1.50000000],[1610050211000,-1.30000000],[1610050810000,-1.30000000],[1610051411000,-1.30000000],[1610052011000,-1.70000000],[1610052610000,-2.00000000],[1610053211000,-1.80000000],[1610053811000,-1.50000000],[1610054410000,-1.70000000],[1610055010000,-1.80000000],[1610055610000,-1.80000000],[1610056211000,-1.70000000],[1610056810000,-1.70000000],[1610057411000,-1.60000000],[1610058011000,-1.60000000],[1610058611000,-1.60000000],[1610059211000,-1.50000000],[1610059811000,-1.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1609974008000,-0.6],[1609974609000,-0.6],[1609975209000,-0.8],[1609975808000,-0.9],[1609976409000,-1],[1609977009000,-1],[1609977608000,-1],[1609978209000,-1],[1609978808000,-1],[1609979408000,-0.9],[1609980009000,-0.9],[1609980608000,-0.9],[1609981208000,-0.9],[1609981809000,-0.9],[1609982408000,-0.9],[1609983008000,-0.9],[1609983609000,-0.9],[1609984209000,-1],[1609984808000,-1],[1609985409000,-1],[1609986008000,-1],[1609986608000,-1],[1609987209000,-1.1],[1609987809000,-1.1],[1609988408000,-1],[1609989009000,-1.1],[1609989608000,-1.2],[1609990209000,-1.3],[1609990809000,-1.4],[1609991409000,-1.4],[1609992008000,-1.4],[1609992609000,-1.3],[1609993209000,-1.3],[1609993809000,-1.3],[1609994409000,-1.3],[1609995009000,-1.3],[1609995609000,-1.3],[1609996208000,-1.3],[1609996809000,-1.3],[1609997409000,-1.3],[1609998009000,-1.3],[1609998609000,-1.3],[1609999209000,-1.3],[1609999809000,-1.3],[1610000409000,-1.2],[1610001009000,-1.2],[1610001609000,-1.2],[1610002209000,-1.3],[1610002809000,-1.2],[1610003409000,-1.2],[1610004009000,-1.1],[1610004609000,-1.2],[1610005209000,-1.2],[1610005809000,-1.2],[1610006410000,-1.1],[1610007009000,-0.9],[1610007609000,-0.9],[1610008210000,-0.9],[1610008809000,-0.9],[1610009409000,-0.5],[1610010010000,-0.5],[1610010609000,-0.6],[1610011209000,-0.4],[1610011810000,0.1],[1610012409000,-0],[1610013009000,-0.5],[1610013610000,-0.2],[1610014209000,0.1],[1610014809000,0.3],[1610015410000,-0],[1610016009000,-0.3],[1610016609000,-0.2],[1610017210000,-0.2],[1610017809000,-0.2],[1610018410000,-0.2],[1610019009000,-0.2],[1610020210000,-0.1],[1610020810000,-0.2],[1610022009000,0.2],[1610022610000,-0.1],[1610023209000,-0.4],[1610023810000,-0.1],[1610024410000,0.5],[1610025009000,0.3],[1610025610000,0.2],[1610026209000,-0.1],[1610026810000,-0.2],[1610027410000,-0.3],[1610028010000,-0.3],[1610028610000,-0.4],[1610029210000,-0.6],[1610029810000,-0.6],[1610030410000,-0.7],[1610031010000,-0.8],[1610031610000,-0.8],[1610032210000,-0.8],[1610032810000,-0.7],[1610033410000,-0.8],[1610034010000,-0.9],[1610034610000,-0.9],[1610035210000,-0.9],[1610035810000,-1],[1610036410000,-1.1],[1610037010000,-1.2],[1610037610000,-1.2],[1610038210000,-1.3],[1610038810000,-1.3],[1610039410000,-1.2],[1610040010000,-1.3],[1610040610000,-1.3],[1610041210000,-1.5],[1610041811000,-1.5],[1610042410000,-1.5],[1610043010000,-1.8],[1610043610000,-1.9],[1610044210000,-1.9],[1610044811000,-2],[1610045410000,-2.1],[1610046010000,-2.2],[1610046611000,-2.2],[1610047210000,-2.3],[1610047810000,-2.4],[1610048411000,-2.6],[1610049010000,-2.7],[1610049610000,-2.7],[1610050211000,-2.4],[1610050810000,-2.4],[1610051411000,-2.4],[1610052011000,-2.9],[1610052610000,-3.1],[1610053211000,-2.9],[1610053811000,-2.5],[1610054410000,-2.8],[1610055010000,-2.8],[1610055610000,-2.8],[1610056211000,-2.7],[1610056810000,-2.7],[1610057411000,-2.6],[1610058011000,-2.6],[1610058611000,-2.6],[1610059211000,-2.5],[1610059811000,-2.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: [[1609974008000,95.40000000],[1609974609000,95.40000000],[1609975209000,95.20000000],[1609975808000,95.20000000],[1609976409000,95.40000000],[1609977009000,95.40000000],[1609977608000,95.40000000],[1609978209000,95.40000000],[1609978808000,95.40000000],[1609979408000,95.60000000],[1609980009000,95.60000000],[1609980608000,95.60000000],[1609981208000,95.60000000],[1609981809000,95.60000000],[1609982408000,95.60000000],[1609983008000,95.60000000],[1609983609000,95.60000000],[1609984209000,95.60000000],[1609984808000,95.60000000],[1609985409000,95.60000000],[1609986008000,95.60000000],[1609986608000,95.60000000],[1609987209000,95.60000000],[1609987809000,95.60000000],[1609988408000,95.80000000],[1609989009000,95.60000000],[1609989608000,95.60000000],[1609990209000,95.60000000],[1609990809000,95.60000000],[1609991409000,95.60000000],[1609992008000,95.80000000],[1609992609000,95.80000000],[1609993209000,95.80000000],[1609993809000,95.80000000],[1609994409000,95.80000000],[1609995009000,95.80000000],[1609995609000,95.80000000],[1609996208000,95.80000000],[1609996809000,95.80000000],[1609997409000,95.80000000],[1609998009000,95.80000000],[1609998609000,95.80000000],[1609999209000,95.80000000],[1609999809000,95.80000000],[1610000409000,95.80000000],[1610001009000,95.80000000],[1610001609000,95.60000000],[1610002209000,95.40000000],[1610002809000,95.20000000],[1610003409000,95.00000000],[1610004009000,94.80000000],[1610004609000,94.40000000],[1610005209000,94.40000000],[1610005809000,94.40000000],[1610006410000,94.60000000],[1610007009000,94.80000000],[1610007609000,94.80000000],[1610008210000,94.60000000],[1610008809000,94.40000000],[1610009409000,94.20000000],[1610010010000,93.60000000],[1610010609000,93.40000000],[1610011209000,93.00000000],[1610011810000,93.00000000],[1610012409000,92.40000000],[1610013009000,92.60000000],[1610013610000,92.80000000],[1610014209000,92.60000000],[1610014809000,92.40000000],[1610015410000,91.80000000],[1610016009000,91.80000000],[1610016609000,92.20000000],[1610017210000,92.00000000],[1610017809000,92.00000000],[1610018410000,91.80000000],[1610019009000,91.80000000],[1610020210000,91.20000000],[1610020810000,91.20000000],[1610022009000,91.20000000],[1610022610000,90.40000000],[1610023209000,90.60000000],[1610023810000,91.00000000],[1610024410000,90.40000000],[1610025009000,89.60000000],[1610025610000,89.20000000],[1610026209000,89.20000000],[1610026810000,89.00000000],[1610027410000,89.00000000],[1610028010000,89.00000000],[1610028610000,88.80000000],[1610029210000,88.80000000],[1610029810000,89.20000000],[1610030410000,89.40000000],[1610031010000,89.40000000],[1610031610000,89.80000000],[1610032210000,90.00000000],[1610032810000,90.20000000],[1610033410000,90.20000000],[1610034010000,90.40000000],[1610034610000,90.60000000],[1610035210000,90.80000000],[1610035810000,90.80000000],[1610036410000,90.80000000],[1610037010000,91.00000000],[1610037610000,91.00000000],[1610038210000,91.00000000],[1610038810000,91.00000000],[1610039410000,91.20000000],[1610040010000,91.00000000],[1610040610000,90.20000000],[1610041210000,90.00000000],[1610041811000,90.00000000],[1610042410000,90.00000000],[1610043010000,90.00000000],[1610043610000,90.00000000],[1610044210000,90.20000000],[1610044811000,90.20000000],[1610045410000,90.20000000],[1610046010000,90.20000000],[1610046611000,90.40000000],[1610047210000,90.40000000],[1610047810000,90.60000000],[1610048411000,91.00000000],[1610049010000,91.40000000],[1610049610000,91.80000000],[1610050211000,92.00000000],[1610050810000,92.00000000],[1610051411000,92.00000000],[1610052011000,91.80000000],[1610052610000,92.00000000],[1610053211000,92.60000000],[1610053811000,92.80000000],[1610054410000,92.60000000],[1610055010000,92.80000000],[1610055610000,93.00000000],[1610056211000,93.00000000],[1610056810000,93.20000000],[1610057411000,93.20000000],[1610058011000,93.20000000],[1610058611000,93.20000000],[1610059211000,93.20000000],[1610059811000,93.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: [[1609974008000,1013.5],[1609974609000,1013.4],[1609975209000,1013.5],[1609975808000,1013.6],[1609976409000,1013.7],[1609977009000,1013.8],[1609977608000,1013.8],[1609978209000,1013.7],[1609978808000,1013.6],[1609979408000,1013.6],[1609980009000,1013.6],[1609980608000,1013.7],[1609981208000,1013.7],[1609981809000,1013.8],[1609982408000,1013.7],[1609983008000,1013.7],[1609983609000,1013.8],[1609984209000,1013.8],[1609984808000,1013.7],[1609985409000,1013.7],[1609986008000,1013.6],[1609986608000,1013.5],[1609987209000,1013.6],[1609987809000,1013.6],[1609988408000,1013.6],[1609989009000,1013.6],[1609989608000,1013.7],[1609990209000,1013.8],[1609990809000,1013.8],[1609991409000,1013.8],[1609992008000,1013.9],[1609992609000,1013.8],[1609993209000,1013.9],[1609993809000,1013.8],[1609994409000,1013.8],[1609995009000,1013.9],[1609995609000,1013.9],[1609996208000,1013.9],[1609996809000,1014],[1609997409000,1014],[1609998009000,1014],[1609998609000,1014.1],[1609999209000,1014.2],[1609999809000,1014.3],[1610000409000,1014.4],[1610001009000,1014.4],[1610001609000,1014.4],[1610002209000,1014.6],[1610002809000,1014.7],[1610003409000,1014.8],[1610004009000,1014.9],[1610004609000,1015.1],[1610005209000,1015.2],[1610005809000,1015.3],[1610006410000,1015.4],[1610007009000,1015.4],[1610007609000,1015.4],[1610008210000,1015.5],[1610008809000,1015.5],[1610009409000,1015.6],[1610010010000,1015.6],[1610010609000,1015.7],[1610011209000,1015.7],[1610011810000,1015.7],[1610012409000,1015.9],[1610013009000,1016],[1610013610000,1015.8],[1610014209000,1015.7],[1610014809000,1015.8],[1610015410000,1015.8],[1610016009000,1015.9],[1610016609000,1016],[1610017210000,1016],[1610017809000,1015.9],[1610018410000,1015.9],[1610019009000,1015.9],[1610020210000,1015.9],[1610020810000,1016],[1610022009000,1015.8],[1610022610000,1015.8],[1610023209000,1015.9],[1610023810000,1015.9],[1610024410000,1015.9],[1610025009000,1016],[1610025610000,1016.2],[1610026209000,1016.3],[1610026810000,1016.3],[1610027410000,1016.4],[1610028010000,1016.5],[1610028610000,1016.5],[1610029210000,1016.6],[1610029810000,1016.6],[1610030410000,1016.6],[1610031010000,1016.7],[1610031610000,1016.8],[1610032210000,1016.8],[1610032810000,1016.8],[1610033410000,1016.8],[1610034010000,1016.8],[1610034610000,1016.9],[1610035210000,1016.9],[1610035810000,1016.8],[1610036410000,1016.9],[1610037010000,1017.1],[1610037610000,1017.1],[1610038210000,1017.2],[1610038810000,1017.3],[1610039410000,1017.4],[1610040010000,1017.4],[1610040610000,1017.5],[1610041210000,1017.6],[1610041811000,1017.6],[1610042410000,1017.7],[1610043010000,1017.8],[1610043610000,1017.9],[1610044210000,1017.9],[1610044811000,1018],[1610045410000,1018],[1610046010000,1018.2],[1610046611000,1018.2],[1610047210000,1018.1],[1610047810000,1018.1],[1610048411000,1018.2],[1610049010000,1018.4],[1610049610000,1018.4],[1610050211000,1018.3],[1610050810000,1018.2],[1610051411000,1018.2],[1610052011000,1018.5],[1610052610000,1018.7],[1610053211000,1018.7],[1610053811000,1018.7],[1610054410000,1018.7],[1610055010000,1018.6],[1610055610000,1018.4],[1610056211000,1018.2],[1610056810000,1018.2],[1610057411000,1018.1],[1610058011000,1018],[1610058611000,1018.1],[1610059211000,1018],[1610059811000,1018],], 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: [[1609974008000,0.00000000],[1609974609000,0.00000000],[1609975209000,0.00000000],[1609975808000,0.00000000],[1609976409000,0.00000000],[1609977009000,0.00000000],[1609977608000,0.00000000],[1609978209000,0.00000000],[1609978808000,0.00000000],[1609979408000,0.00000000],[1609980009000,0.00000000],[1609980608000,0.00000000],[1609981208000,0.00000000],[1609981809000,0.00000000],[1609982408000,0.00000000],[1609983008000,0.00000000],[1609983609000,0.00000000],[1609984209000,0.00000000],[1609984808000,0.00000000],[1609985409000,0.00000000],[1609986008000,0.00000000],[1609986608000,0.00000000],[1609987209000,0.00000000],[1609987809000,0.00000000],[1609988408000,0.00000000],[1609989009000,0.00000000],[1609989608000,0.00000000],[1609990209000,0.00000000],[1609990809000,0.00000000],[1609991409000,0.00000000],[1609992008000,0.00000000],[1609992609000,0.00000000],[1609993209000,0.00000000],[1609993809000,0.00000000],[1609994409000,0.00000000],[1609995009000,0.00000000],[1609995609000,0.00000000],[1609996208000,0.00000000],[1609996809000,0.00000000],[1609997409000,0.00000000],[1609998009000,0.00000000],[1609998609000,0.00000000],[1609999209000,0.00000000],[1609999809000,0.00000000],[1610000409000,0.00000000],[1610001009000,0.00000000],[1610001609000,0.00000000],[1610002209000,2.00000000],[1610002809000,4.00000000],[1610003409000,4.00000000],[1610004009000,6.00000000],[1610004609000,6.00000000],[1610005209000,8.00000000],[1610005809000,14.00000000],[1610006410000,14.00000000],[1610007009000,14.00000000],[1610007609000,16.00000000],[1610008210000,16.00000000],[1610008809000,26.00000000],[1610009409000,34.00000000],[1610010010000,32.00000000],[1610010609000,36.00000000],[1610011209000,52.00000000],[1610011810000,66.00000000],[1610012409000,42.00000000],[1610013009000,44.00000000],[1610013610000,52.00000000],[1610014209000,62.00000000],[1610014809000,54.00000000],[1610015410000,30.00000000],[1610016009000,34.00000000],[1610016609000,58.00000000],[1610017210000,46.00000000],[1610017809000,42.00000000],[1610018410000,42.00000000],[1610019009000,52.00000000],[1610020210000,66.00000000],[1610020810000,68.00000000],[1610022009000,116.00000000],[1610022610000,72.00000000],[1610023209000,96.00000000],[1610023810000,232.00000000],[1610024410000,268.00000000],[1610025009000,238.00000000],[1610025610000,142.00000000],[1610026209000,132.00000000],[1610026810000,86.00000000],[1610027410000,88.00000000],[1610028010000,78.00000000],[1610028610000,46.00000000],[1610029210000,28.00000000],[1610029810000,20.00000000],[1610030410000,22.00000000],[1610031010000,14.00000000],[1610031610000,6.00000000],[1610032210000,2.00000000],[1610032810000,0.00000000],[1610033410000,0.00000000],[1610034010000,0.00000000],[1610034610000,0.00000000],[1610035210000,0.00000000],[1610035810000,0.00000000],[1610036410000,0.00000000],[1610037010000,0.00000000],[1610037610000,0.00000000],[1610038210000,0.00000000],[1610038810000,0.00000000],[1610039410000,0.00000000],[1610040010000,0.00000000],[1610040610000,0.00000000],[1610041210000,0.00000000],[1610041811000,0.00000000],[1610042410000,0.00000000],[1610043010000,0.00000000],[1610043610000,0.00000000],[1610044210000,0.00000000],[1610044811000,0.00000000],[1610045410000,0.00000000],[1610046010000,0.00000000],[1610046611000,0.00000000],[1610047210000,0.00000000],[1610047810000,0.00000000],[1610048411000,0.00000000],[1610049010000,0.00000000],[1610049610000,0.00000000],[1610050211000,0.00000000],[1610050810000,0.00000000],[1610051411000,0.00000000],[1610052011000,0.00000000],[1610052610000,0.00000000],[1610053211000,0.00000000],[1610053811000,0.00000000],[1610054410000,0.00000000],[1610055010000,0.00000000],[1610055610000,0.00000000],[1610056211000,0.00000000],[1610056810000,0.00000000],[1610057411000,0.00000000],[1610058011000,0.00000000],[1610058611000,0.00000000],[1610059211000,0.00000000],[1610059811000,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: [[1610012409000,0.28000000],[1610013009000,0.28000000],[1610014209000,0.56000000],[1610017210000,0.28000000],[1610017809000,0.28000000],[1610018410000,0.28000000],[1610020210000,0.28000000],[1610020810000,0.28000000],[1610023810000,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; }