var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1583449209000,3.10000000],[1583449809000,3.00000000],[1583450409000,3.10000000],[1583451009000,3.10000000],[1583451609000,3.10000000],[1583452209000,3.00000000],[1583452810000,3.10000000],[1583453409000,3.20000000],[1583454009000,3.20000000],[1583454609000,3.30000000],[1583455209000,3.30000000],[1583455809000,3.30000000],[1583456409000,3.30000000],[1583457010000,3.30000000],[1583457609000,3.30000000],[1583458209000,3.40000000],[1583458809000,3.50000000],[1583459409000,3.50000000],[1583460009000,3.60000000],[1583460610000,3.60000000],[1583461209000,3.50000000],[1583461809000,3.40000000],[1583462409000,3.20000000],[1583463009000,3.10000000],[1583463609000,3.00000000],[1583464210000,2.60000000],[1583464809000,2.30000000],[1583465410000,2.00000000],[1583466009000,1.80000000],[1583466610000,1.60000000],[1583467210000,1.40000000],[1583467809000,1.20000000],[1583468410000,1.20000000],[1583469009000,1.10000000],[1583469609000,1.20000000],[1583470210000,1.20000000],[1583470810000,1.10000000],[1583471409000,1.10000000],[1583472009000,1.20000000],[1583472610000,1.20000000],[1583473209000,1.20000000],[1583473809000,1.20000000],[1583474410000,1.20000000],[1583475009000,1.30000000],[1583475610000,1.30000000],[1583476210000,1.20000000],[1583476809000,1.20000000],[1583477410000,1.00000000],[1583478010000,0.90000000],[1583478609000,0.80000000],[1583479210000,0.60000000],[1583479810000,0.50000000],[1583480410000,0.40000000],[1583481010000,0.40000000],[1583481610000,0.40000000],[1583482210000,0.40000000],[1583482810000,0.40000000],[1583483409000,0.30000000],[1583484010000,0.30000000],[1583484610000,0.40000000],[1583485209000,0.40000000],[1583485810000,0.30000000],[1583486409000,0.40000000],[1583487010000,0.40000000],[1583487610000,0.50000000],[1583488210000,0.50000000],[1583488810000,0.60000000],[1583489410000,0.60000000],[1583490010000,0.70000000],[1583490610000,0.70000000],[1583491210000,0.70000000],[1583491810000,0.70000000],[1583492411000,0.70000000],[1583493010000,0.80000000],[1583493610000,0.80000000],[1583494210000,0.80000000],[1583494810000,1.00000000],[1583495410000,1.10000000],[1583496010000,1.20000000],[1583496610000,1.30000000],[1583497210000,1.40000000],[1583497811000,1.50000000],[1583498410000,1.50000000],[1583499010000,1.50000000],[1583499611000,1.60000000],[1583500210000,1.70000000],[1583500810000,1.70000000],[1583501411000,1.80000000],[1583502011000,1.90000000],[1583502610000,2.00000000],[1583503211000,2.00000000],[1583503811000,2.00000000],[1583504410000,2.10000000],[1583505010000,2.10000000],[1583505611000,2.10000000],[1583506210000,2.10000000],[1583506810000,2.10000000],[1583507410000,2.20000000],[1583508010000,2.20000000],[1583508611000,2.20000000],[1583509211000,2.30000000],[1583509810000,2.30000000],[1583510410000,2.30000000],[1583511011000,2.30000000],[1583511610000,2.30000000],[1583512210000,2.40000000],[1583512811000,2.40000000],[1583513411000,2.40000000],[1583514010000,2.40000000],[1583514611000,2.40000000],[1583515211000,2.40000000],[1583515810000,2.40000000],[1583516410000,2.50000000],[1583517011000,2.50000000],[1583517610000,2.50000000],[1583518211000,2.50000000],[1583518811000,2.50000000],[1583519411000,2.60000000],[1583520011000,2.70000000],[1583520611000,2.70000000],[1583521211000,2.80000000],[1583521811000,2.80000000],[1583522411000,2.90000000],[1583523011000,2.90000000],[1583523611000,2.90000000],[1583524211000,3.00000000],[1583524811000,3.00000000],[1583525411000,3.10000000],[1583526011000,3.10000000],[1583526611000,3.10000000],[1583527211000,3.20000000],[1583527811000,3.20000000],[1583528411000,3.30000000],[1583529011000,3.40000000],[1583529611000,3.40000000],[1583530212000,3.30000000],[1583530811000,3.30000000],[1583531411000,3.30000000],[1583532011000,3.40000000],[1583532611000,3.40000000],[1583533211000,3.30000000],[1583533811000,3.30000000],[1583534411000,3.30000000],[1583535011000,3.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1583449209000,-1.5],[1583449809000,-1.6],[1583450409000,-1.5],[1583451009000,-1.5],[1583451609000,-1.5],[1583452209000,-1.5],[1583452810000,-1.4],[1583453409000,-1.4],[1583454009000,-1.4],[1583454609000,-1.3],[1583455209000,-1.4],[1583455809000,-1.4],[1583456409000,-1.3],[1583457010000,-1.3],[1583457609000,-1.3],[1583458209000,-1.2],[1583458809000,-1.2],[1583459409000,-1.2],[1583460009000,-1.2],[1583460610000,-1.2],[1583461209000,-1.2],[1583461809000,-1],[1583462409000,-1],[1583463009000,-0.9],[1583463609000,-0.8],[1583464210000,-0.8],[1583464809000,-0.7],[1583465410000,-0.8],[1583466009000,-0.8],[1583466610000,-0.9],[1583467210000,-1],[1583467809000,-1.1],[1583468410000,-1],[1583469009000,-1],[1583469609000,-0.8],[1583470210000,-0.8],[1583470810000,-0.8],[1583471409000,-0.8],[1583472009000,-0.7],[1583472610000,-0.7],[1583473209000,-0.6],[1583473809000,-0.6],[1583474410000,-0.5],[1583475009000,-0.4],[1583475610000,-0.4],[1583476210000,-0.5],[1583476809000,-0.5],[1583477410000,-0.6],[1583478010000,-0.7],[1583478609000,-0.8],[1583479210000,-1],[1583479810000,-1],[1583480410000,-1.1],[1583481010000,-1.1],[1583481610000,-1.1],[1583482210000,-1],[1583482810000,-1],[1583483409000,-1.1],[1583484010000,-1.1],[1583484610000,-0.9],[1583485209000,-0.9],[1583485810000,-1],[1583486409000,-0.9],[1583487010000,-0.9],[1583487610000,-0.8],[1583488210000,-0.8],[1583488810000,-0.7],[1583489410000,-0.7],[1583490010000,-0.6],[1583490610000,-0.6],[1583491210000,-0.6],[1583491810000,-0.6],[1583492411000,-0.6],[1583493010000,-0.5],[1583493610000,-0.5],[1583494210000,-0.5],[1583494810000,-0.2],[1583495410000,-0.2],[1583496010000,-0.1],[1583496610000,0],[1583497210000,0.1],[1583497811000,0.2],[1583498410000,0.2],[1583499010000,0.2],[1583499611000,0.4],[1583500210000,0.5],[1583500810000,0.5],[1583501411000,0.6],[1583502011000,0.7],[1583502610000,0.8],[1583503211000,0.8],[1583503811000,0.8],[1583504410000,0.9],[1583505010000,0.9],[1583505611000,0.9],[1583506210000,0.9],[1583506810000,0.9],[1583507410000,1],[1583508010000,1],[1583508611000,1],[1583509211000,1.1],[1583509810000,1.1],[1583510410000,1.1],[1583511011000,1.1],[1583511610000,1.1],[1583512210000,1.2],[1583512811000,1.2],[1583513411000,1.2],[1583514010000,1.2],[1583514611000,1.3],[1583515211000,1.3],[1583515810000,1.3],[1583516410000,1.4],[1583517011000,1.4],[1583517610000,1.4],[1583518211000,1.4],[1583518811000,1.4],[1583519411000,1.5],[1583520011000,1.6],[1583520611000,1.6],[1583521211000,1.7],[1583521811000,1.6],[1583522411000,1.7],[1583523011000,1.7],[1583523611000,1.7],[1583524211000,1.8],[1583524811000,1.8],[1583525411000,1.9],[1583526011000,1.9],[1583526611000,1.9],[1583527211000,2],[1583527811000,2],[1583528411000,2.1],[1583529011000,2.2],[1583529611000,2.2],[1583530212000,2.1],[1583530811000,2.1],[1583531411000,2.1],[1583532011000,2.2],[1583532611000,2.2],[1583533211000,2.1],[1583533811000,2.1],[1583534411000,2.1],[1583535011000,2.1],], 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: [[1583449209000,72.00000000],[1583449809000,72.20000000],[1583450409000,72.20000000],[1583451009000,72.20000000],[1583451609000,72.20000000],[1583452209000,72.60000000],[1583452810000,72.40000000],[1583453409000,72.20000000],[1583454009000,72.00000000],[1583454609000,72.00000000],[1583455209000,71.80000000],[1583455809000,71.80000000],[1583456409000,72.00000000],[1583457010000,72.00000000],[1583457609000,72.00000000],[1583458209000,72.00000000],[1583458809000,71.80000000],[1583459409000,71.60000000],[1583460009000,71.40000000],[1583460610000,71.00000000],[1583461209000,71.60000000],[1583461809000,73.20000000],[1583462409000,74.20000000],[1583463009000,75.20000000],[1583463609000,76.60000000],[1583464210000,78.80000000],[1583464809000,80.60000000],[1583465410000,82.00000000],[1583466009000,83.00000000],[1583466610000,83.80000000],[1583467210000,84.40000000],[1583467809000,85.00000000],[1583468410000,85.60000000],[1583469009000,86.20000000],[1583469609000,86.40000000],[1583470210000,86.60000000],[1583470810000,87.00000000],[1583471409000,87.20000000],[1583472009000,87.40000000],[1583472610000,87.60000000],[1583473209000,88.00000000],[1583473809000,88.20000000],[1583474410000,88.40000000],[1583475009000,88.40000000],[1583475610000,88.60000000],[1583476210000,88.80000000],[1583476809000,88.80000000],[1583477410000,89.00000000],[1583478010000,89.20000000],[1583478609000,89.20000000],[1583479210000,89.40000000],[1583479810000,89.60000000],[1583480410000,89.80000000],[1583481010000,90.00000000],[1583481610000,90.00000000],[1583482210000,90.20000000],[1583482810000,90.40000000],[1583483409000,90.40000000],[1583484010000,90.60000000],[1583484610000,90.80000000],[1583485209000,90.80000000],[1583485810000,90.80000000],[1583486409000,91.00000000],[1583487010000,91.00000000],[1583487610000,91.20000000],[1583488210000,91.20000000],[1583488810000,91.20000000],[1583489410000,91.20000000],[1583490010000,91.20000000],[1583490610000,91.20000000],[1583491210000,91.20000000],[1583491810000,91.20000000],[1583492411000,91.40000000],[1583493010000,91.40000000],[1583493610000,91.20000000],[1583494210000,91.40000000],[1583494810000,91.60000000],[1583495410000,91.40000000],[1583496010000,91.40000000],[1583496610000,91.40000000],[1583497210000,91.40000000],[1583497811000,91.40000000],[1583498410000,91.40000000],[1583499010000,91.40000000],[1583499611000,91.60000000],[1583500210000,91.60000000],[1583500810000,91.60000000],[1583501411000,91.60000000],[1583502011000,91.60000000],[1583502610000,91.80000000],[1583503211000,91.80000000],[1583503811000,91.80000000],[1583504410000,92.00000000],[1583505010000,92.00000000],[1583505611000,92.00000000],[1583506210000,92.00000000],[1583506810000,92.00000000],[1583507410000,92.00000000],[1583508010000,92.00000000],[1583508611000,92.00000000],[1583509211000,92.00000000],[1583509810000,92.00000000],[1583510410000,92.00000000],[1583511011000,92.20000000],[1583511610000,92.20000000],[1583512210000,92.20000000],[1583512811000,92.20000000],[1583513411000,92.20000000],[1583514010000,92.20000000],[1583514611000,92.40000000],[1583515211000,92.40000000],[1583515810000,92.40000000],[1583516410000,92.40000000],[1583517011000,92.40000000],[1583517610000,92.40000000],[1583518211000,92.40000000],[1583518811000,92.40000000],[1583519411000,92.40000000],[1583520011000,92.40000000],[1583520611000,92.40000000],[1583521211000,92.40000000],[1583521811000,92.20000000],[1583522411000,92.20000000],[1583523011000,92.20000000],[1583523611000,92.20000000],[1583524211000,92.20000000],[1583524811000,92.20000000],[1583525411000,92.20000000],[1583526011000,92.20000000],[1583526611000,92.20000000],[1583527211000,92.20000000],[1583527811000,92.20000000],[1583528411000,92.20000000],[1583529011000,92.00000000],[1583529611000,92.00000000],[1583530212000,92.00000000],[1583530811000,92.00000000],[1583531411000,92.00000000],[1583532011000,91.80000000],[1583532611000,91.80000000],[1583533211000,91.80000000],[1583533811000,91.80000000],[1583534411000,91.80000000],[1583535011000,92.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: [[1583449209000,1007.1],[1583449809000,1007],[1583450409000,1006.9],[1583451009000,1006.8],[1583451609000,1006.7],[1583452209000,1006.6],[1583452810000,1006.5],[1583453409000,1006.4],[1583454009000,1006.3],[1583454609000,1006.1],[1583455209000,1006],[1583455809000,1005.9],[1583456409000,1005.7],[1583457010000,1005.6],[1583457609000,1005.5],[1583458209000,1005.5],[1583458809000,1005.3],[1583459409000,1005.3],[1583460009000,1005.2],[1583460610000,1005.1],[1583461209000,1005],[1583461809000,1004.9],[1583462409000,1004.8],[1583463009000,1004.7],[1583463609000,1004.7],[1583464210000,1004.8],[1583464809000,1004.8],[1583465410000,1004.8],[1583466009000,1004.9],[1583466610000,1005.1],[1583467210000,1004.9],[1583467809000,1004.8],[1583468410000,1004.7],[1583469009000,1004.7],[1583469609000,1004.6],[1583470210000,1004.5],[1583470810000,1004.5],[1583471409000,1004.5],[1583472009000,1004.5],[1583472610000,1004.5],[1583473209000,1004.4],[1583473809000,1004.4],[1583474410000,1004.5],[1583475009000,1004.5],[1583475610000,1004.6],[1583476210000,1004.7],[1583476809000,1004.7],[1583477410000,1004.8],[1583478010000,1005],[1583478609000,1005.1],[1583479210000,1005.2],[1583479810000,1005.2],[1583480410000,1005.3],[1583481010000,1005.3],[1583481610000,1005.3],[1583482210000,1005.3],[1583482810000,1005.3],[1583483409000,1005.4],[1583484010000,1005.4],[1583484610000,1005.4],[1583485209000,1005.5],[1583485810000,1005.5],[1583486409000,1005.4],[1583487010000,1005.5],[1583487610000,1005.5],[1583488210000,1005.5],[1583488810000,1005.4],[1583489410000,1005.4],[1583490010000,1005.4],[1583490610000,1005.4],[1583491210000,1005.4],[1583491810000,1005.4],[1583492411000,1005.4],[1583493010000,1005.3],[1583493610000,1005.2],[1583494210000,1005.1],[1583494810000,1005.1],[1583495410000,1005],[1583496010000,1005],[1583496610000,1004.9],[1583497210000,1004.8],[1583497811000,1004.9],[1583498410000,1004.8],[1583499010000,1004.8],[1583499611000,1004.8],[1583500210000,1004.8],[1583500810000,1004.8],[1583501411000,1004.8],[1583502011000,1004.7],[1583502610000,1004.7],[1583503211000,1004.7],[1583503811000,1004.7],[1583504410000,1004.7],[1583505010000,1004.8],[1583505611000,1004.8],[1583506210000,1004.8],[1583506810000,1004.8],[1583507410000,1004.9],[1583508010000,1005],[1583508611000,1005],[1583509211000,1005.1],[1583509810000,1005.2],[1583510410000,1005.3],[1583511011000,1005.5],[1583511610000,1005.6],[1583512210000,1005.7],[1583512811000,1005.9],[1583513411000,1006],[1583514010000,1006.2],[1583514611000,1006.3],[1583515211000,1006.3],[1583515810000,1006.5],[1583516410000,1006.6],[1583517011000,1006.7],[1583517610000,1006.5],[1583518211000,1006.6],[1583518811000,1006.7],[1583519411000,1006.9],[1583520011000,1006.9],[1583520611000,1007],[1583521211000,1006.9],[1583521811000,1007.1],[1583522411000,1007.1],[1583523011000,1007.2],[1583523611000,1007.3],[1583524211000,1007.5],[1583524811000,1007.4],[1583525411000,1007.4],[1583526011000,1007.5],[1583526611000,1007.6],[1583527211000,1007.7],[1583527811000,1007.8],[1583528411000,1007.8],[1583529011000,1007.9],[1583529611000,1008],[1583530212000,1008.2],[1583530811000,1008.3],[1583531411000,1008.4],[1583532011000,1008.5],[1583532611000,1008.5],[1583533211000,1008.5],[1583533811000,1008.6],[1583534411000,1008.6],[1583535011000,1008.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: [[1583449209000,0.00000000],[1583449809000,0.00000000],[1583450409000,0.00000000],[1583451009000,0.00000000],[1583451609000,0.00000000],[1583452209000,0.00000000],[1583452810000,0.00000000],[1583453409000,0.00000000],[1583454009000,0.00000000],[1583454609000,0.00000000],[1583455209000,0.00000000],[1583455809000,0.00000000],[1583456409000,0.00000000],[1583457010000,0.00000000],[1583457609000,0.00000000],[1583458209000,0.00000000],[1583458809000,0.00000000],[1583459409000,0.00000000],[1583460009000,0.00000000],[1583460610000,0.00000000],[1583461209000,0.00000000],[1583461809000,0.00000000],[1583462409000,0.00000000],[1583463009000,0.00000000],[1583463609000,0.00000000],[1583464210000,0.00000000],[1583464809000,0.00000000],[1583465410000,0.00000000],[1583466009000,0.00000000],[1583466610000,0.00000000],[1583467210000,0.00000000],[1583467809000,0.00000000],[1583468410000,0.00000000],[1583469009000,0.00000000],[1583469609000,0.00000000],[1583470210000,0.00000000],[1583470810000,0.00000000],[1583471409000,0.00000000],[1583472009000,0.00000000],[1583472610000,0.00000000],[1583473209000,0.00000000],[1583473809000,2.00000000],[1583474410000,4.00000000],[1583475009000,4.00000000],[1583475610000,2.00000000],[1583476210000,4.00000000],[1583476809000,8.00000000],[1583477410000,12.00000000],[1583478010000,16.00000000],[1583478609000,18.00000000],[1583479210000,18.00000000],[1583479810000,20.00000000],[1583480410000,22.00000000],[1583481010000,16.00000000],[1583481610000,24.00000000],[1583482210000,28.00000000],[1583482810000,22.00000000],[1583483409000,20.00000000],[1583484010000,18.00000000],[1583484610000,16.00000000],[1583485209000,12.00000000],[1583485810000,12.00000000],[1583486409000,12.00000000],[1583487010000,12.00000000],[1583487610000,12.00000000],[1583488210000,12.00000000],[1583488810000,12.00000000],[1583489410000,10.00000000],[1583490010000,12.00000000],[1583490610000,10.00000000],[1583491210000,12.00000000],[1583491810000,12.00000000],[1583492411000,14.00000000],[1583493010000,16.00000000],[1583493610000,18.00000000],[1583494210000,22.00000000],[1583494810000,20.00000000],[1583495410000,18.00000000],[1583496010000,18.00000000],[1583496610000,22.00000000],[1583497210000,26.00000000],[1583497811000,24.00000000],[1583498410000,30.00000000],[1583499010000,20.00000000],[1583499611000,22.00000000],[1583500210000,20.00000000],[1583500810000,22.00000000],[1583501411000,18.00000000],[1583502011000,22.00000000],[1583502610000,26.00000000],[1583503211000,26.00000000],[1583503811000,38.00000000],[1583504410000,42.00000000],[1583505010000,34.00000000],[1583505611000,30.00000000],[1583506210000,32.00000000],[1583506810000,28.00000000],[1583507410000,20.00000000],[1583508010000,18.00000000],[1583508611000,16.00000000],[1583509211000,14.00000000],[1583509810000,10.00000000],[1583510410000,4.00000000],[1583511011000,4.00000000],[1583511610000,2.00000000],[1583512210000,0.00000000],[1583512811000,0.00000000],[1583513411000,0.00000000],[1583514010000,0.00000000],[1583514611000,0.00000000],[1583515211000,0.00000000],[1583515810000,0.00000000],[1583516410000,0.00000000],[1583517011000,0.00000000],[1583517610000,0.00000000],[1583518211000,0.00000000],[1583518811000,0.00000000],[1583519411000,0.00000000],[1583520011000,0.00000000],[1583520611000,0.00000000],[1583521211000,0.00000000],[1583521811000,0.00000000],[1583522411000,0.00000000],[1583523011000,0.00000000],[1583523611000,0.00000000],[1583524211000,0.00000000],[1583524811000,0.00000000],[1583525411000,0.00000000],[1583526011000,0.00000000],[1583526611000,0.00000000],[1583527211000,0.00000000],[1583527811000,0.00000000],[1583528411000,0.00000000],[1583529011000,0.00000000],[1583529611000,0.00000000],[1583530212000,0.00000000],[1583530811000,0.00000000],[1583531411000,0.00000000],[1583532011000,0.00000000],[1583532611000,0.00000000],[1583533211000,0.00000000],[1583533811000,0.00000000],[1583534411000,0.00000000],[1583535011000,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: [[1583466009000,0.28000000],[1583468410000,0.28000000],[1583474410000,0.28000000],[1583476210000,0.28000000],[1583477410000,0.28000000],[1583497210000,0.28000000],[1583497811000,0.84000000],[1583498410000,0.56000000],[1583499010000,0.56000000],[1583499611000,0.56000000],[1583500210000,0.28000000],[1583500810000,0.56000000],[1583501411000,0.28000000],[1583502011000,0.56000000],[1583502610000,0.28000000],[1583503211000,0.56000000],[1583503811000,0.28000000],[1583504410000,0.28000000],[1583505010000,0.28000000],[1583506210000,0.56000000],[1583506810000,0.28000000],[1583507410000,0.28000000],[1583508010000,0.28000000],[1583508611000,0.28000000],[1583509211000,0.28000000],[1583509810000,0.28000000],[1583511011000,0.28000000],[1583511610000,0.28000000],[1583512210000,0.28000000],[1583512811000,0.28000000],[1583513411000,0.28000000],[1583514611000,0.28000000],[1583515211000,0.28000000],[1583517011000,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; }