var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1581634810000,3.60000000],[1581635410000,3.70000000],[1581636010000,3.70000000],[1581636610000,3.60000000],[1581637210000,3.60000000],[1581637811000,3.60000000],[1581638411000,3.50000000],[1581639010000,3.50000000],[1581639611000,3.50000000],[1581640210000,3.50000000],[1581640810000,3.50000000],[1581641411000,3.50000000],[1581642010000,3.40000000],[1581642610000,3.20000000],[1581643211000,3.20000000],[1581643810000,3.20000000],[1581644410000,3.20000000],[1581645011000,3.20000000],[1581645610000,3.30000000],[1581646210000,3.30000000],[1581646811000,3.40000000],[1581647411000,3.30000000],[1581648010000,3.20000000],[1581648611000,3.00000000],[1581649211000,2.90000000],[1581649810000,2.90000000],[1581650411000,3.00000000],[1581651011000,3.10000000],[1581651610000,3.10000000],[1581652211000,3.10000000],[1581652811000,3.00000000],[1581653410000,3.00000000],[1581654011000,3.00000000],[1581654611000,2.70000000],[1581655211000,2.40000000],[1581655811000,2.40000000],[1581656411000,2.40000000],[1581657011000,2.40000000],[1581657611000,2.40000000],[1581658211000,2.30000000],[1581658811000,2.30000000],[1581659411000,2.40000000],[1581660011000,2.50000000],[1581660610000,2.60000000],[1581661211000,2.70000000],[1581661811000,2.80000000],[1581662411000,2.90000000],[1581663011000,3.00000000],[1581663611000,3.10000000],[1581664210000,3.20000000],[1581664811000,3.30000000],[1581665411000,3.40000000],[1581666011000,3.40000000],[1581666611000,3.50000000],[1581667211000,3.40000000],[1581667811000,3.40000000],[1581668411000,3.80000000],[1581669011000,4.20000000],[1581669611000,4.50000000],[1581670211000,4.00000000],[1581670811000,3.70000000],[1581671411000,3.70000000],[1581672011000,3.80000000],[1581672611000,4.20000000],[1581673212000,4.40000000],[1581673811000,4.60000000],[1581674411000,4.70000000],[1581675011000,4.90000000],[1581675612000,5.00000000],[1581676211000,5.20000000],[1581676811000,5.20000000],[1581677412000,5.30000000],[1581678011000,5.50000000],[1581678611000,6.30000000],[1581679212000,6.60000000],[1581679811000,6.60000000],[1581680411000,6.60000000],[1581681012000,6.90000000],[1581681612000,7.20000000],[1581682211000,7.50000000],[1581682812000,7.70000000],[1581683411000,7.50000000],[1581684012000,7.30000000],[1581684612000,7.30000000],[1581685211000,7.20000000],[1581685811000,7.20000000],[1581686412000,7.30000000],[1581687011000,7.10000000],[1581687611000,7.00000000],[1581688211000,7.00000000],[1581688811000,7.10000000],[1581689411000,7.40000000],[1581690012000,7.50000000],[1581690612000,7.30000000],[1581691211000,6.70000000],[1581691812000,6.50000000],[1581692412000,6.50000000],[1581693011000,6.60000000],[1581693611000,6.60000000],[1581694212000,6.30000000],[1581694811000,6.20000000],[1581695411000,6.10000000],[1581696011000,6.00000000],[1581696611000,6.00000000],[1581697211000,6.00000000],[1581697811000,6.10000000],[1581698411000,6.00000000],[1581699012000,6.00000000],[1581699611000,5.90000000],[1581700212000,5.70000000],[1581700812000,5.80000000],[1581701412000,5.90000000],[1581702012000,6.00000000],[1581702612000,5.90000000],[1581703212000,5.90000000],[1581703812000,5.80000000],[1581704412000,5.70000000],[1581705012000,5.60000000],[1581705611000,5.50000000],[1581706212000,5.40000000],[1581706812000,5.30000000],[1581707412000,5.10000000],[1581708011000,5.10000000],[1581708612000,5.30000000],[1581709212000,5.10000000],[1581709812000,5.10000000],[1581710412000,5.30000000],[1581711012000,5.40000000],[1581711612000,5.30000000],[1581712212000,5.30000000],[1581712812000,5.20000000],[1581713412000,5.20000000],[1581714012000,5.30000000],[1581714612000,5.30000000],[1581715212000,5.20000000],[1581715811000,5.10000000],[1581716412000,5.00000000],[1581717011000,5.10000000],[1581717612000,5.00000000],[1581718212000,5.10000000],[1581718812000,5.10000000],[1581719412000,5.30000000],[1581720012000,5.30000000],[1581720612000,5.00000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1581634810000,-0.5],[1581635410000,-0.4],[1581636010000,-0.4],[1581636610000,-0.5],[1581637210000,-0.5],[1581637811000,-0.5],[1581638411000,-0.6],[1581639010000,-0.6],[1581639611000,-0.5],[1581640210000,-0.5],[1581640810000,-0.5],[1581641411000,-0.4],[1581642010000,-0.3],[1581642610000,-0.3],[1581643211000,-0.3],[1581643810000,-0.3],[1581644410000,-0.3],[1581645011000,-0.2],[1581645610000,-0.1],[1581646210000,-0.1],[1581646811000,-0],[1581647411000,-0.1],[1581648010000,-0.2],[1581648611000,-0.3],[1581649211000,-0.3],[1581649810000,-0.3],[1581650411000,-0.3],[1581651011000,-0.2],[1581651610000,-0.2],[1581652211000,-0.2],[1581652811000,-0.3],[1581653410000,-0.3],[1581654011000,-0.3],[1581654611000,-0.5],[1581655211000,-0.7],[1581655811000,-0.6],[1581656411000,-0.5],[1581657011000,-0.5],[1581657611000,-0.5],[1581658211000,-0.6],[1581658811000,-0.5],[1581659411000,-0.4],[1581660011000,-0.3],[1581660610000,-0.2],[1581661211000,-0.1],[1581661811000,-0],[1581662411000,0],[1581663011000,0.2],[1581663611000,0.3],[1581664210000,0.4],[1581664811000,0.6],[1581665411000,0.8],[1581666011000,0.8],[1581666611000,1.1],[1581667211000,1.1],[1581667811000,1.2],[1581668411000,1.6],[1581669011000,2],[1581669611000,2.3],[1581670211000,1.7],[1581670811000,1.5],[1581671411000,1.5],[1581672011000,1.7],[1581672611000,2.1],[1581673212000,2.2],[1581673811000,2.4],[1581674411000,2.4],[1581675011000,2.6],[1581675612000,2.7],[1581676211000,2.9],[1581676811000,2.8],[1581677412000,3],[1581678011000,3.1],[1581678611000,3.8],[1581679212000,3.7],[1581679811000,3.7],[1581680411000,3.6],[1581681012000,3.7],[1581681612000,3.8],[1581682211000,3.9],[1581682812000,3.8],[1581683411000,3.5],[1581684012000,3.2],[1581684612000,3.2],[1581685211000,3],[1581685811000,2.8],[1581686412000,2.7],[1581687011000,2.3],[1581687611000,2.1],[1581688211000,1.9],[1581688811000,1.8],[1581689411000,2],[1581690012000,1.8],[1581690612000,1.5],[1581691211000,1.1],[1581691812000,1],[1581692412000,1],[1581693011000,1.1],[1581693611000,1.1],[1581694212000,0.8],[1581694811000,0.7],[1581695411000,0.7],[1581696011000,0.7],[1581696611000,0.8],[1581697211000,0.8],[1581697811000,1],[1581698411000,1],[1581699012000,1.1],[1581699611000,1.1],[1581700212000,1],[1581700812000,1.2],[1581701412000,1.3],[1581702012000,1.4],[1581702612000,1.4],[1581703212000,1.5],[1581703812000,1.6],[1581704412000,1.6],[1581705012000,1.5],[1581705611000,1.5],[1581706212000,1.5],[1581706812000,1.5],[1581707412000,1.4],[1581708011000,1.5],[1581708612000,1.7],[1581709212000,1.6],[1581709812000,1.6],[1581710412000,1.8],[1581711012000,1.9],[1581711612000,1.8],[1581712212000,1.8],[1581712812000,1.7],[1581713412000,1.7],[1581714012000,1.8],[1581714612000,1.8],[1581715212000,1.7],[1581715811000,1.6],[1581716412000,1.6],[1581717011000,1.7],[1581717612000,1.6],[1581718212000,1.7],[1581718812000,1.7],[1581719412000,1.9],[1581720012000,1.8],[1581720612000,1.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: [[1581634810000,74.80000000],[1581635410000,74.60000000],[1581636010000,74.60000000],[1581636610000,74.80000000],[1581637210000,74.80000000],[1581637811000,74.80000000],[1581638411000,75.00000000],[1581639010000,75.00000000],[1581639611000,75.20000000],[1581640210000,75.20000000],[1581640810000,75.40000000],[1581641411000,76.00000000],[1581642010000,77.00000000],[1581642610000,77.80000000],[1581643211000,77.80000000],[1581643810000,78.00000000],[1581644410000,78.20000000],[1581645011000,78.40000000],[1581645610000,78.40000000],[1581646210000,78.40000000],[1581646811000,78.40000000],[1581647411000,78.60000000],[1581648010000,78.80000000],[1581648611000,79.20000000],[1581649211000,79.60000000],[1581649810000,79.60000000],[1581650411000,79.40000000],[1581651011000,79.40000000],[1581651610000,79.40000000],[1581652211000,79.20000000],[1581652811000,79.40000000],[1581653410000,79.40000000],[1581654011000,79.40000000],[1581654611000,79.60000000],[1581655211000,80.40000000],[1581655811000,81.00000000],[1581656411000,81.20000000],[1581657011000,81.40000000],[1581657611000,81.40000000],[1581658211000,81.60000000],[1581658811000,81.80000000],[1581659411000,81.80000000],[1581660011000,81.80000000],[1581660610000,81.80000000],[1581661211000,81.80000000],[1581661811000,81.80000000],[1581662411000,81.60000000],[1581663011000,81.80000000],[1581663611000,81.80000000],[1581664210000,82.00000000],[1581664811000,82.60000000],[1581665411000,83.00000000],[1581666011000,83.20000000],[1581666611000,84.20000000],[1581667211000,85.20000000],[1581667811000,85.40000000],[1581668411000,85.60000000],[1581669011000,85.80000000],[1581669611000,85.60000000],[1581670211000,85.20000000],[1581670811000,85.60000000],[1581671411000,86.00000000],[1581672011000,86.20000000],[1581672611000,86.20000000],[1581673212000,85.80000000],[1581673811000,85.60000000],[1581674411000,85.40000000],[1581675011000,85.20000000],[1581675612000,85.20000000],[1581676211000,85.20000000],[1581676811000,84.80000000],[1581677412000,85.00000000],[1581678011000,84.80000000],[1581678611000,84.00000000],[1581679212000,82.20000000],[1581679811000,82.00000000],[1581680411000,81.40000000],[1581681012000,80.40000000],[1581681612000,79.00000000],[1581682211000,78.00000000],[1581682812000,76.40000000],[1581683411000,76.00000000],[1581684012000,75.60000000],[1581684612000,75.20000000],[1581685211000,74.80000000],[1581685811000,73.80000000],[1581686412000,72.80000000],[1581687011000,71.80000000],[1581687611000,71.20000000],[1581688211000,70.20000000],[1581688811000,69.40000000],[1581689411000,68.80000000],[1581690012000,67.40000000],[1581690612000,66.80000000],[1581691211000,67.60000000],[1581691812000,68.00000000],[1581692412000,68.40000000],[1581693011000,68.40000000],[1581693611000,68.20000000],[1581694212000,68.20000000],[1581694811000,68.40000000],[1581695411000,68.80000000],[1581696011000,69.20000000],[1581696611000,69.60000000],[1581697211000,69.80000000],[1581697811000,70.20000000],[1581698411000,70.60000000],[1581699012000,71.20000000],[1581699611000,71.60000000],[1581700212000,72.00000000],[1581700812000,72.60000000],[1581701412000,72.80000000],[1581702012000,72.80000000],[1581702612000,73.00000000],[1581703212000,73.40000000],[1581703812000,74.60000000],[1581704412000,75.00000000],[1581705012000,75.20000000],[1581705611000,75.60000000],[1581706212000,76.00000000],[1581706812000,76.60000000],[1581707412000,77.20000000],[1581708011000,78.00000000],[1581708612000,78.00000000],[1581709212000,78.40000000],[1581709812000,78.60000000],[1581710412000,78.60000000],[1581711012000,78.20000000],[1581711612000,78.40000000],[1581712212000,78.60000000],[1581712812000,78.60000000],[1581713412000,78.60000000],[1581714012000,78.60000000],[1581714612000,78.40000000],[1581715212000,78.20000000],[1581715811000,78.40000000],[1581716412000,78.80000000],[1581717011000,78.80000000],[1581717612000,79.00000000],[1581718212000,78.80000000],[1581718812000,79.00000000],[1581719412000,79.00000000],[1581720012000,78.60000000],[1581720612000,78.80000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1581634810000,1015.5],[1581635410000,1015.4],[1581636010000,1015.3],[1581636610000,1015],[1581637210000,1014.8],[1581637811000,1014.7],[1581638411000,1014.8],[1581639010000,1014.9],[1581639611000,1014.8],[1581640210000,1014.8],[1581640810000,1015.1],[1581641411000,1015.1],[1581642010000,1015],[1581642610000,1014.9],[1581643211000,1014.7],[1581643810000,1014.4],[1581644410000,1014.3],[1581645011000,1014.4],[1581645610000,1014.5],[1581646210000,1014.4],[1581646811000,1014.3],[1581647411000,1014.3],[1581648010000,1014.1],[1581648611000,1013.8],[1581649211000,1014.1],[1581649810000,1014.3],[1581650411000,1014.3],[1581651011000,1014.2],[1581651610000,1014.2],[1581652211000,1014.1],[1581652811000,1014.3],[1581653410000,1014.4],[1581654011000,1014.4],[1581654611000,1014.7],[1581655211000,1014.7],[1581655811000,1014.8],[1581656411000,1014.9],[1581657011000,1015.1],[1581657611000,1015.1],[1581658211000,1015.3],[1581658811000,1015.3],[1581659411000,1015.4],[1581660011000,1015.5],[1581660610000,1015.7],[1581661211000,1015.8],[1581661811000,1015.8],[1581662411000,1015.9],[1581663011000,1016],[1581663611000,1016.1],[1581664210000,1016.2],[1581664811000,1016.3],[1581665411000,1016.4],[1581666011000,1016.5],[1581666611000,1016.6],[1581667211000,1016.7],[1581667811000,1016.7],[1581668411000,1016.7],[1581669011000,1016.7],[1581669611000,1016.8],[1581670211000,1017],[1581670811000,1017.1],[1581671411000,1017.3],[1581672011000,1017.4],[1581672611000,1017.3],[1581673212000,1017.4],[1581673811000,1017.7],[1581674411000,1017.8],[1581675011000,1017.9],[1581675612000,1018],[1581676211000,1018.2],[1581676811000,1018.2],[1581677412000,1018.4],[1581678011000,1018.5],[1581678611000,1018.5],[1581679212000,1018.5],[1581679811000,1018.8],[1581680411000,1018.9],[1581681012000,1019],[1581681612000,1019.1],[1581682211000,1019.1],[1581682812000,1019.2],[1581683411000,1019.3],[1581684012000,1019.5],[1581684612000,1019.6],[1581685211000,1019.8],[1581685811000,1019.9],[1581686412000,1020],[1581687011000,1020.2],[1581687611000,1020.3],[1581688211000,1020.3],[1581688811000,1020.4],[1581689411000,1020.5],[1581690012000,1020.6],[1581690612000,1020.9],[1581691211000,1021.2],[1581691812000,1021.4],[1581692412000,1021.6],[1581693011000,1021.7],[1581693611000,1021.8],[1581694212000,1022],[1581694811000,1022.1],[1581695411000,1022.4],[1581696011000,1022.6],[1581696611000,1022.8],[1581697211000,1023],[1581697811000,1023.2],[1581698411000,1023.4],[1581699012000,1023.5],[1581699611000,1023.6],[1581700212000,1023.8],[1581700812000,1024],[1581701412000,1024],[1581702012000,1024.2],[1581702612000,1024.4],[1581703212000,1024.5],[1581703812000,1024.5],[1581704412000,1024.5],[1581705012000,1024.6],[1581705611000,1024.6],[1581706212000,1024.7],[1581706812000,1024.8],[1581707412000,1025.1],[1581708011000,1025.1],[1581708612000,1025.1],[1581709212000,1025.4],[1581709812000,1025.4],[1581710412000,1025.5],[1581711012000,1025.6],[1581711612000,1025.8],[1581712212000,1025.9],[1581712812000,1026],[1581713412000,1026.1],[1581714012000,1026.3],[1581714612000,1026.4],[1581715212000,1026.5],[1581715811000,1026.6],[1581716412000,1026.7],[1581717011000,1026.7],[1581717612000,1026.8],[1581718212000,1026.9],[1581718812000,1027],[1581719412000,1027.2],[1581720012000,1027.2],[1581720612000,1027.2],], 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: [[1581634810000,0.00000000],[1581635410000,0.00000000],[1581636010000,0.00000000],[1581636610000,0.00000000],[1581637210000,0.00000000],[1581637811000,0.00000000],[1581638411000,0.00000000],[1581639010000,0.00000000],[1581639611000,0.00000000],[1581640210000,0.00000000],[1581640810000,0.00000000],[1581641411000,0.00000000],[1581642010000,0.00000000],[1581642610000,0.00000000],[1581643211000,0.00000000],[1581643810000,0.00000000],[1581644410000,0.00000000],[1581645011000,0.00000000],[1581645610000,0.00000000],[1581646210000,0.00000000],[1581646811000,0.00000000],[1581647411000,0.00000000],[1581648010000,0.00000000],[1581648611000,0.00000000],[1581649211000,0.00000000],[1581649810000,0.00000000],[1581650411000,0.00000000],[1581651011000,0.00000000],[1581651610000,0.00000000],[1581652211000,0.00000000],[1581652811000,0.00000000],[1581653410000,0.00000000],[1581654011000,0.00000000],[1581654611000,0.00000000],[1581655211000,0.00000000],[1581655811000,0.00000000],[1581656411000,0.00000000],[1581657011000,0.00000000],[1581657611000,0.00000000],[1581658211000,0.00000000],[1581658811000,0.00000000],[1581659411000,0.00000000],[1581660011000,2.00000000],[1581660610000,4.00000000],[1581661211000,8.00000000],[1581661811000,12.00000000],[1581662411000,8.00000000],[1581663011000,14.00000000],[1581663611000,12.00000000],[1581664210000,30.00000000],[1581664811000,50.00000000],[1581665411000,32.00000000],[1581666011000,32.00000000],[1581666611000,40.00000000],[1581667211000,62.00000000],[1581667811000,112.00000000],[1581668411000,150.00000000],[1581669011000,268.00000000],[1581669611000,242.00000000],[1581670211000,122.00000000],[1581670811000,50.00000000],[1581671411000,98.00000000],[1581672011000,202.00000000],[1581672611000,198.00000000],[1581673212000,164.00000000],[1581673811000,196.00000000],[1581674411000,242.00000000],[1581675011000,180.00000000],[1581675612000,158.00000000],[1581676211000,172.00000000],[1581676811000,236.00000000],[1581677412000,206.00000000],[1581678011000,272.00000000],[1581678611000,204.00000000],[1581679212000,188.00000000],[1581679811000,210.00000000],[1581680411000,200.00000000],[1581681012000,280.00000000],[1581681612000,332.00000000],[1581682211000,338.00000000],[1581682812000,272.00000000],[1581683411000,168.00000000],[1581684012000,156.00000000],[1581684612000,106.00000000],[1581685211000,146.00000000],[1581685811000,152.00000000],[1581686412000,186.00000000],[1581687011000,132.00000000],[1581687611000,108.00000000],[1581688211000,176.00000000],[1581688811000,210.00000000],[1581689411000,244.00000000],[1581690012000,216.00000000],[1581690612000,100.00000000],[1581691211000,54.00000000],[1581691812000,54.00000000],[1581692412000,48.00000000],[1581693011000,54.00000000],[1581693611000,38.00000000],[1581694212000,22.00000000],[1581694811000,14.00000000],[1581695411000,10.00000000],[1581696011000,4.00000000],[1581696611000,2.00000000],[1581697211000,0.00000000],[1581697811000,0.00000000],[1581698411000,0.00000000],[1581699012000,0.00000000],[1581699611000,0.00000000],[1581700212000,0.00000000],[1581700812000,0.00000000],[1581701412000,0.00000000],[1581702012000,0.00000000],[1581702612000,0.00000000],[1581703212000,0.00000000],[1581703812000,0.00000000],[1581704412000,0.00000000],[1581705012000,0.00000000],[1581705611000,0.00000000],[1581706212000,0.00000000],[1581706812000,0.00000000],[1581707412000,0.00000000],[1581708011000,0.00000000],[1581708612000,0.00000000],[1581709212000,0.00000000],[1581709812000,0.00000000],[1581710412000,0.00000000],[1581711012000,0.00000000],[1581711612000,0.00000000],[1581712212000,0.00000000],[1581712812000,0.00000000],[1581713412000,0.00000000],[1581714012000,0.00000000],[1581714612000,0.00000000],[1581715212000,0.00000000],[1581715811000,0.00000000],[1581716412000,0.00000000],[1581717011000,0.00000000],[1581717612000,0.00000000],[1581718212000,0.00000000],[1581718812000,0.00000000],[1581719412000,0.00000000],[1581720012000,0.00000000],[1581720612000,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: [[1581668411000,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; }