var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1608678022000,2.10000000],[1608678622000,2.10000000],[1608679222000,2.10000000],[1608679822000,2.20000000],[1608680422000,2.20000000],[1608681022000,2.20000000],[1608681622000,2.20000000],[1608682206000,2.30000000],[1608682806000,2.30000000],[1608683406000,2.30000000],[1608684006000,2.30000000],[1608684606000,2.40000000],[1608685206000,2.40000000],[1608685806000,2.40000000],[1608686406000,2.50000000],[1608687006000,2.50000000],[1608687606000,2.60000000],[1608688206000,2.50000000],[1608688807000,2.50000000],[1608689406000,2.60000000],[1608690006000,2.60000000],[1608690607000,2.70000000],[1608691206000,2.80000000],[1608691807000,2.80000000],[1608692407000,2.90000000],[1608693006000,2.90000000],[1608693606000,2.80000000],[1608694207000,2.90000000],[1608694807000,2.90000000],[1608695406000,3.00000000],[1608696007000,3.00000000],[1608696607000,3.10000000],[1608697206000,3.20000000],[1608697807000,3.30000000],[1608698406000,3.30000000],[1608699006000,3.40000000],[1608699607000,3.40000000],[1608700207000,3.50000000],[1608700806000,3.50000000],[1608701407000,3.60000000],[1608702006000,3.60000000],[1608702606000,3.70000000],[1608703207000,3.70000000],[1608703806000,3.70000000],[1608704407000,3.80000000],[1608705006000,3.90000000],[1608705607000,3.90000000],[1608706207000,3.90000000],[1608706806000,3.90000000],[1608707406000,4.00000000],[1608708007000,4.10000000],[1608708607000,4.30000000],[1608709207000,4.40000000],[1608709807000,4.50000000],[1608710406000,4.60000000],[1608711007000,4.60000000],[1608711607000,4.60000000],[1608712207000,4.90000000],[1608712807000,5.00000000],[1608713407000,5.10000000],[1608714006000,5.10000000],[1608714607000,5.30000000],[1608715207000,5.40000000],[1608715807000,5.40000000],[1608716407000,5.40000000],[1608717007000,5.40000000],[1608717607000,5.40000000],[1608718207000,5.50000000],[1608718807000,5.40000000],[1608719407000,5.60000000],[1608720007000,5.60000000],[1608720607000,5.60000000],[1608721207000,5.60000000],[1608721807000,5.70000000],[1608722407000,5.90000000],[1608723007000,5.90000000],[1608723607000,6.10000000],[1608724207000,6.30000000],[1608724808000,6.30000000],[1608725407000,6.60000000],[1608726007000,6.70000000],[1608726607000,6.50000000],[1608727207000,6.50000000],[1608727807000,6.50000000],[1608728407000,6.50000000],[1608729007000,6.50000000],[1608729607000,6.50000000],[1608730207000,6.50000000],[1608730807000,6.40000000],[1608731407000,6.40000000],[1608732008000,6.40000000],[1608732607000,6.40000000],[1608733207000,6.40000000],[1608733808000,6.30000000],[1608734408000,6.20000000],[1608735007000,6.20000000],[1608735607000,6.20000000],[1608736207000,6.20000000],[1608736807000,6.10000000],[1608737407000,6.00000000],[1608738007000,6.00000000],[1608738607000,6.00000000],[1608739208000,6.00000000],[1608739808000,6.00000000],[1608740407000,6.00000000],[1608741007000,6.00000000],[1608741608000,6.00000000],[1608742208000,6.00000000],[1608742807000,6.00000000],[1608743408000,6.00000000],[1608744007000,6.00000000],[1608744607000,6.00000000],[1608745207000,6.00000000],[1608745808000,5.90000000],[1608746407000,5.80000000],[1608747008000,5.70000000],[1608747607000,5.70000000],[1608748208000,5.60000000],[1608748808000,5.60000000],[1608749408000,5.60000000],[1608750007000,5.60000000],[1608750608000,5.60000000],[1608751207000,5.80000000],[1608751807000,6.10000000],[1608752408000,6.30000000],[1608753007000,6.40000000],[1608753608000,6.60000000],[1608754208000,6.60000000],[1608754808000,6.60000000],[1608755407000,6.50000000],[1608756008000,6.40000000],[1608756607000,6.40000000],[1608757207000,6.50000000],[1608757808000,6.40000000],[1608758408000,6.50000000],[1608759008000,6.60000000],[1608759607000,6.60000000],[1608760208000,6.70000000],[1608760807000,6.70000000],[1608761408000,6.60000000],[1608762008000,6.50000000],[1608762608000,6.60000000],[1608763208000,6.60000000],[1608763808000,6.40000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1608678022000,1.8],[1608678622000,1.8],[1608679222000,1.8],[1608679822000,1.9],[1608680422000,1.9],[1608681022000,1.9],[1608681622000,1.9],[1608682206000,2],[1608682806000,2],[1608683406000,2],[1608684006000,2],[1608684606000,2.1],[1608685206000,2.1],[1608685806000,2.1],[1608686406000,2.2],[1608687006000,2.2],[1608687606000,2.3],[1608688206000,2.2],[1608688807000,2.2],[1608689406000,2.3],[1608690006000,2.3],[1608690607000,2.4],[1608691206000,2.5],[1608691807000,2.5],[1608692407000,2.6],[1608693006000,2.6],[1608693606000,2.5],[1608694207000,2.6],[1608694807000,2.6],[1608695406000,2.7],[1608696007000,2.7],[1608696607000,2.8],[1608697206000,2.9],[1608697807000,3],[1608698406000,3],[1608699006000,3.1],[1608699607000,3.1],[1608700207000,3.2],[1608700806000,3.2],[1608701407000,3.3],[1608702006000,3.3],[1608702606000,3.4],[1608703207000,3.4],[1608703806000,3.4],[1608704407000,3.5],[1608705006000,3.6],[1608705607000,3.6],[1608706207000,3.6],[1608706806000,3.6],[1608707406000,3.8],[1608708007000,3.9],[1608708607000,4.1],[1608709207000,4.2],[1608709807000,4.3],[1608710406000,4.4],[1608711007000,4.3],[1608711607000,4.4],[1608712207000,4.7],[1608712807000,4.8],[1608713407000,4.9],[1608714006000,4.9],[1608714607000,5.1],[1608715207000,5.2],[1608715807000,5.2],[1608716407000,5.1],[1608717007000,5.1],[1608717607000,5.1],[1608718207000,5.2],[1608718807000,5.1],[1608719407000,5.4],[1608720007000,5.3],[1608720607000,5.3],[1608721207000,5.3],[1608721807000,5.4],[1608722407000,5.7],[1608723007000,5.6],[1608723607000,5.9],[1608724207000,6],[1608724808000,6],[1608725407000,6.3],[1608726007000,6.4],[1608726607000,6.2],[1608727207000,6.2],[1608727807000,6.2],[1608728407000,6.2],[1608729007000,6.2],[1608729607000,6.2],[1608730207000,6.2],[1608730807000,6.1],[1608731407000,6.1],[1608732008000,6.1],[1608732607000,6.1],[1608733207000,6.1],[1608733808000,6],[1608734408000,5.9],[1608735007000,5.9],[1608735607000,5.9],[1608736207000,5.9],[1608736807000,5.8],[1608737407000,5.7],[1608738007000,5.7],[1608738607000,5.7],[1608739208000,5.7],[1608739808000,5.7],[1608740407000,5.7],[1608741007000,5.7],[1608741608000,5.7],[1608742208000,5.7],[1608742807000,5.7],[1608743408000,5.7],[1608744007000,5.7],[1608744607000,5.7],[1608745207000,5.7],[1608745808000,5.6],[1608746407000,5.5],[1608747008000,5.4],[1608747607000,5.4],[1608748208000,5.3],[1608748808000,5.2],[1608749408000,5.2],[1608750007000,5.2],[1608750608000,5.2],[1608751207000,5.4],[1608751807000,5.7],[1608752408000,5.9],[1608753007000,6],[1608753608000,6.2],[1608754208000,6.2],[1608754808000,6.2],[1608755407000,6.1],[1608756008000,6],[1608756607000,6],[1608757207000,6.1],[1608757808000,6],[1608758408000,6.1],[1608759008000,6.2],[1608759607000,6.2],[1608760208000,6.3],[1608760807000,6.3],[1608761408000,6.2],[1608762008000,6.1],[1608762608000,6.2],[1608763208000,6.2],[1608763808000,6],], 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: [[1608678022000,98.00000000],[1608678622000,98.00000000],[1608679222000,98.00000000],[1608679822000,98.00000000],[1608680422000,98.00000000],[1608681022000,98.00000000],[1608681622000,98.00000000],[1608682206000,98.00000000],[1608682806000,98.20000000],[1608683406000,98.20000000],[1608684006000,98.20000000],[1608684606000,98.20000000],[1608685206000,98.20000000],[1608685806000,98.20000000],[1608686406000,98.20000000],[1608687006000,98.20000000],[1608687606000,98.20000000],[1608688206000,98.00000000],[1608688807000,98.20000000],[1608689406000,98.20000000],[1608690006000,98.20000000],[1608690607000,98.20000000],[1608691206000,98.20000000],[1608691807000,98.20000000],[1608692407000,98.20000000],[1608693006000,98.20000000],[1608693606000,98.20000000],[1608694207000,98.20000000],[1608694807000,98.20000000],[1608695406000,98.20000000],[1608696007000,98.20000000],[1608696607000,98.20000000],[1608697206000,98.20000000],[1608697807000,98.20000000],[1608698406000,98.20000000],[1608699006000,98.20000000],[1608699607000,98.20000000],[1608700207000,98.20000000],[1608700806000,98.20000000],[1608701407000,98.20000000],[1608702006000,98.20000000],[1608702606000,98.20000000],[1608703207000,98.20000000],[1608703806000,98.20000000],[1608704407000,98.20000000],[1608705006000,98.20000000],[1608705607000,98.20000000],[1608706207000,98.20000000],[1608706806000,98.20000000],[1608707406000,98.40000000],[1608708007000,98.40000000],[1608708607000,98.40000000],[1608709207000,98.40000000],[1608709807000,98.40000000],[1608710406000,98.40000000],[1608711007000,98.20000000],[1608711607000,98.40000000],[1608712207000,98.40000000],[1608712807000,98.40000000],[1608713407000,98.40000000],[1608714006000,98.40000000],[1608714607000,98.40000000],[1608715207000,98.40000000],[1608715807000,98.40000000],[1608716407000,98.20000000],[1608717007000,98.20000000],[1608717607000,98.20000000],[1608718207000,98.20000000],[1608718807000,98.20000000],[1608719407000,98.40000000],[1608720007000,98.20000000],[1608720607000,98.20000000],[1608721207000,98.20000000],[1608721807000,98.20000000],[1608722407000,98.40000000],[1608723007000,98.20000000],[1608723607000,98.40000000],[1608724207000,98.20000000],[1608724808000,98.20000000],[1608725407000,98.20000000],[1608726007000,98.00000000],[1608726607000,98.00000000],[1608727207000,98.00000000],[1608727807000,98.00000000],[1608728407000,98.00000000],[1608729007000,98.00000000],[1608729607000,98.00000000],[1608730207000,97.80000000],[1608730807000,97.80000000],[1608731407000,98.00000000],[1608732008000,98.00000000],[1608732607000,97.80000000],[1608733207000,97.80000000],[1608733808000,97.80000000],[1608734408000,97.80000000],[1608735007000,97.80000000],[1608735607000,97.80000000],[1608736207000,98.00000000],[1608736807000,97.80000000],[1608737407000,98.00000000],[1608738007000,98.00000000],[1608738607000,98.00000000],[1608739208000,98.00000000],[1608739808000,98.00000000],[1608740407000,98.00000000],[1608741007000,98.00000000],[1608741608000,98.00000000],[1608742208000,98.00000000],[1608742807000,98.00000000],[1608743408000,98.00000000],[1608744007000,98.00000000],[1608744607000,98.00000000],[1608745207000,98.00000000],[1608745808000,98.00000000],[1608746407000,97.80000000],[1608747008000,98.00000000],[1608747607000,97.80000000],[1608748208000,97.80000000],[1608748808000,97.60000000],[1608749408000,97.60000000],[1608750007000,97.60000000],[1608750608000,97.60000000],[1608751207000,97.60000000],[1608751807000,97.60000000],[1608752408000,97.20000000],[1608753007000,97.40000000],[1608753608000,97.40000000],[1608754208000,97.40000000],[1608754808000,97.40000000],[1608755407000,97.20000000],[1608756008000,97.20000000],[1608756607000,97.40000000],[1608757207000,97.40000000],[1608757808000,97.40000000],[1608758408000,97.60000000],[1608759008000,97.60000000],[1608759607000,97.60000000],[1608760208000,97.60000000],[1608760807000,97.40000000],[1608761408000,97.40000000],[1608762008000,97.40000000],[1608762608000,97.40000000],[1608763208000,97.20000000],[1608763808000,97.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: [[1608678022000,1023.3],[1608678622000,1023.4],[1608679222000,1023.4],[1608679822000,1023.4],[1608680422000,1023.4],[1608681022000,1023.4],[1608681622000,1023.3],[1608682206000,1023.2],[1608682806000,1023.2],[1608683406000,1023.2],[1608684006000,1023.2],[1608684606000,1023.1],[1608685206000,1023.2],[1608685806000,1023.1],[1608686406000,1023.3],[1608687006000,1023.3],[1608687606000,1023.2],[1608688206000,1023.2],[1608688807000,1023.1],[1608689406000,1022.8],[1608690006000,1022.8],[1608690607000,1022.8],[1608691206000,1022.7],[1608691807000,1022.7],[1608692407000,1022.8],[1608693006000,1022.7],[1608693606000,1022.5],[1608694207000,1022.5],[1608694807000,1022.4],[1608695406000,1022.3],[1608696007000,1022.3],[1608696607000,1022.3],[1608697206000,1022.3],[1608697807000,1022.2],[1608698406000,1022.2],[1608699006000,1022.2],[1608699607000,1022.2],[1608700207000,1022.1],[1608700806000,1022],[1608701407000,1022.1],[1608702006000,1022],[1608702606000,1022],[1608703207000,1022],[1608703806000,1021.9],[1608704407000,1022],[1608705006000,1022],[1608705607000,1022.1],[1608706207000,1022.1],[1608706806000,1022],[1608707406000,1022],[1608708007000,1022],[1608708607000,1022],[1608709207000,1022],[1608709807000,1022],[1608710406000,1022.1],[1608711007000,1021.9],[1608711607000,1021.8],[1608712207000,1021.7],[1608712807000,1021.9],[1608713407000,1021.9],[1608714006000,1021.8],[1608714607000,1021.8],[1608715207000,1021.5],[1608715807000,1021.4],[1608716407000,1021.3],[1608717007000,1021.3],[1608717607000,1021.1],[1608718207000,1020.9],[1608718807000,1020.8],[1608719407000,1020.7],[1608720007000,1020.5],[1608720607000,1020.4],[1608721207000,1020.2],[1608721807000,1020.1],[1608722407000,1020],[1608723007000,1020],[1608723607000,1019.9],[1608724207000,1019.7],[1608724808000,1019.5],[1608725407000,1019.4],[1608726007000,1019.3],[1608726607000,1019.2],[1608727207000,1019.4],[1608727807000,1019.2],[1608728407000,1019],[1608729007000,1019.1],[1608729607000,1019.1],[1608730207000,1019.1],[1608730807000,1019.1],[1608731407000,1019.1],[1608732008000,1019.1],[1608732607000,1019.1],[1608733207000,1019],[1608733808000,1019],[1608734408000,1019],[1608735007000,1019.1],[1608735607000,1019],[1608736207000,1019.1],[1608736807000,1019.1],[1608737407000,1019],[1608738007000,1019.1],[1608738607000,1019.2],[1608739208000,1019.2],[1608739808000,1019.2],[1608740407000,1019.1],[1608741007000,1019.1],[1608741608000,1019.1],[1608742208000,1018.9],[1608742807000,1018.9],[1608743408000,1018.8],[1608744007000,1018.8],[1608744607000,1018.8],[1608745207000,1018.8],[1608745808000,1018.8],[1608746407000,1018.7],[1608747008000,1018.7],[1608747607000,1018.6],[1608748208000,1018.5],[1608748808000,1018.6],[1608749408000,1018.7],[1608750007000,1018.6],[1608750608000,1018.6],[1608751207000,1018.6],[1608751807000,1018.6],[1608752408000,1018.5],[1608753007000,1018.5],[1608753608000,1018.5],[1608754208000,1018.5],[1608754808000,1018.4],[1608755407000,1018.1],[1608756008000,1017.8],[1608756607000,1017.8],[1608757207000,1017.8],[1608757808000,1017.7],[1608758408000,1017.5],[1608759008000,1017.6],[1608759607000,1017.5],[1608760208000,1017.4],[1608760807000,1017.2],[1608761408000,1017.3],[1608762008000,1017.4],[1608762608000,1017.3],[1608763208000,1017.1],[1608763808000,1017.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: 'Slnečné žiarenie (W/m2)', data: [[1608678022000,0.00000000],[1608678622000,0.00000000],[1608679222000,0.00000000],[1608679822000,0.00000000],[1608680422000,0.00000000],[1608681022000,0.00000000],[1608681622000,0.00000000],[1608682206000,0.00000000],[1608682806000,0.00000000],[1608683406000,0.00000000],[1608684006000,0.00000000],[1608684606000,0.00000000],[1608685206000,0.00000000],[1608685806000,0.00000000],[1608686406000,0.00000000],[1608687006000,0.00000000],[1608687606000,0.00000000],[1608688206000,0.00000000],[1608688807000,0.00000000],[1608689406000,0.00000000],[1608690006000,0.00000000],[1608690607000,0.00000000],[1608691206000,0.00000000],[1608691807000,0.00000000],[1608692407000,0.00000000],[1608693006000,0.00000000],[1608693606000,0.00000000],[1608694207000,0.00000000],[1608694807000,0.00000000],[1608695406000,0.00000000],[1608696007000,0.00000000],[1608696607000,0.00000000],[1608697206000,0.00000000],[1608697807000,0.00000000],[1608698406000,0.00000000],[1608699006000,0.00000000],[1608699607000,0.00000000],[1608700207000,0.00000000],[1608700806000,0.00000000],[1608701407000,0.00000000],[1608702006000,0.00000000],[1608702606000,0.00000000],[1608703207000,0.00000000],[1608703806000,0.00000000],[1608704407000,0.00000000],[1608705006000,0.00000000],[1608705607000,0.00000000],[1608706207000,2.00000000],[1608706806000,4.00000000],[1608707406000,6.00000000],[1608708007000,14.00000000],[1608708607000,22.00000000],[1608709207000,14.00000000],[1608709807000,24.00000000],[1608710406000,20.00000000],[1608711007000,26.00000000],[1608711607000,36.00000000],[1608712207000,38.00000000],[1608712807000,24.00000000],[1608713407000,32.00000000],[1608714006000,64.00000000],[1608714607000,50.00000000],[1608715207000,64.00000000],[1608715807000,52.00000000],[1608716407000,50.00000000],[1608717007000,64.00000000],[1608717607000,52.00000000],[1608718207000,78.00000000],[1608718807000,84.00000000],[1608719407000,90.00000000],[1608720007000,100.00000000],[1608720607000,84.00000000],[1608721207000,88.00000000],[1608721807000,94.00000000],[1608722407000,108.00000000],[1608723007000,104.00000000],[1608723607000,148.00000000],[1608724207000,136.00000000],[1608724808000,116.00000000],[1608725407000,176.00000000],[1608726007000,154.00000000],[1608726607000,98.00000000],[1608727207000,86.00000000],[1608727807000,74.00000000],[1608728407000,56.00000000],[1608729007000,56.00000000],[1608729607000,48.00000000],[1608730207000,40.00000000],[1608730807000,42.00000000],[1608731407000,50.00000000],[1608732008000,38.00000000],[1608732607000,24.00000000],[1608733207000,20.00000000],[1608733808000,14.00000000],[1608734408000,6.00000000],[1608735007000,2.00000000],[1608735607000,0.00000000],[1608736207000,0.00000000],[1608736807000,0.00000000],[1608737407000,0.00000000],[1608738007000,0.00000000],[1608738607000,0.00000000],[1608739208000,0.00000000],[1608739808000,0.00000000],[1608740407000,0.00000000],[1608741007000,0.00000000],[1608741608000,0.00000000],[1608742208000,0.00000000],[1608742807000,0.00000000],[1608743408000,0.00000000],[1608744007000,0.00000000],[1608744607000,0.00000000],[1608745207000,0.00000000],[1608745808000,0.00000000],[1608746407000,0.00000000],[1608747008000,0.00000000],[1608747607000,0.00000000],[1608748208000,0.00000000],[1608748808000,0.00000000],[1608749408000,0.00000000],[1608750007000,0.00000000],[1608750608000,0.00000000],[1608751207000,0.00000000],[1608751807000,0.00000000],[1608752408000,0.00000000],[1608753007000,0.00000000],[1608753608000,0.00000000],[1608754208000,0.00000000],[1608754808000,0.00000000],[1608755407000,0.00000000],[1608756008000,0.00000000],[1608756607000,0.00000000],[1608757207000,0.00000000],[1608757808000,0.00000000],[1608758408000,0.00000000],[1608759008000,0.00000000],[1608759607000,0.00000000],[1608760208000,0.00000000],[1608760807000,0.00000000],[1608761408000,0.00000000],[1608762008000,0.00000000],[1608762608000,0.00000000],[1608763208000,0.00000000],[1608763808000,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: [[1608705607000,0.28000000],[1608755407000,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; }