var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1617487200000,2.40000000],[1617487800000,2.40000000],[1617488400000,2.30000000],[1617489000000,2.40000000],[1617489600000,2.30000000],[1617490200000,2.20000000],[1617490800000,2.20000000],[1617491400000,2.10000000],[1617492000000,2.20000000],[1617492600000,2.20000000],[1617493200000,2.20000000],[1617493800000,2.20000000],[1617494400000,2.20000000],[1617495000000,2.10000000],[1617495600000,2.20000000],[1617496200000,2.10000000],[1617496800000,2.00000000],[1617497400000,2.10000000],[1617498000000,2.20000000],[1617498600000,2.10000000],[1617499200000,2.00000000],[1617499800000,2.00000000],[1617500400000,2.10000000],[1617501000000,2.30000000],[1617501600000,2.30000000],[1617502200000,2.40000000],[1617502800000,2.40000000],[1617503400000,2.30000000],[1617504000000,2.30000000],[1617504600000,2.20000000],[1617505200000,2.20000000],[1617505800000,2.10000000],[1617506400000,2.10000000],[1617507000000,2.00000000],[1617507600000,1.90000000],[1617508200000,1.90000000],[1617508800000,1.90000000],[1617509400000,1.80000000],[1617510000000,1.70000000],[1617510600000,1.70000000],[1617511200000,1.90000000],[1617511800000,2.30000000],[1617512400000,2.60000000],[1617513000000,2.90000000],[1617513600000,3.10000000],[1617514200000,3.50000000],[1617514800000,3.90000000],[1617515400000,4.10000000],[1617516000000,4.30000000],[1617516600000,4.50000000],[1617517200000,4.70000000],[1617517800000,5.00000000],[1617518400000,5.30000000],[1617519000000,5.40000000],[1617519600000,5.70000000],[1617520200000,5.70000000],[1617520800000,6.00000000],[1617521400000,6.30000000],[1617522000000,6.60000000],[1617522600000,6.70000000],[1617523200000,6.90000000],[1617523800000,7.30000000],[1617524400000,7.90000000],[1617525000000,8.00000000],[1617525600000,8.10000000],[1617526200000,8.10000000],[1617526800000,7.30000000],[1617527400000,6.60000000],[1617528000000,6.60000000],[1617528600000,7.00000000],[1617529200000,7.70000000],[1617529800000,7.70000000],[1617530400000,7.40000000],[1617531000000,7.00000000],[1617531600000,7.10000000],[1617532200000,7.30000000],[1617532800000,7.10000000],[1617533400000,7.30000000],[1617534000000,7.30000000],[1617534600000,8.40000000],[1617535200000,8.20000000],[1617535800000,7.40000000],[1617536400000,8.10000000],[1617537000000,9.00000000],[1617537600000,9.40000000],[1617538200000,9.60000000],[1617538800000,9.60000000],[1617539400000,9.70000000],[1617540000000,9.90000000],[1617540600000,9.30000000],[1617541200000,9.10000000],[1617541800000,9.10000000],[1617542400000,9.10000000],[1617543000000,8.90000000],[1617543600000,9.10000000],[1617544200000,9.20000000],[1617544800000,9.10000000],[1617545400000,8.70000000],[1617546000000,8.70000000],[1617546600000,8.50000000],[1617547200000,8.40000000],[1617547800000,8.30000000],[1617548400000,8.30000000],[1617549000000,8.20000000],[1617549600000,8.00000000],[1617550200000,7.70000000],[1617550800000,7.60000000],[1617551400000,7.30000000],[1617552000000,7.30000000],[1617552600000,6.90000000],[1617553200000,6.60000000],[1617553800000,6.20000000],[1617554400000,6.00000000],[1617555000000,5.80000000],[1617555600000,5.50000000],[1617556200000,5.30000000],[1617556800000,5.00000000],[1617557400000,4.90000000],[1617558000000,4.70000000],[1617558600000,4.40000000],[1617559200000,4.30000000],[1617559800000,4.20000000],[1617560400000,4.00000000],[1617561000000,3.90000000],[1617561600000,3.80000000],[1617562200000,3.60000000],[1617562800000,3.50000000],[1617563400000,3.40000000],[1617564000000,3.40000000],[1617564600000,3.30000000],[1617565200000,3.20000000],[1617565800000,3.10000000],[1617566400000,3.00000000],[1617567000000,2.90000000],[1617567600000,2.80000000],[1617568200000,2.80000000],[1617568800000,2.70000000],[1617569400000,2.70000000],[1617570000000,2.70000000],[1617570600000,2.70000000],[1617571200000,2.40000000],[1617571800000,2.20000000],[1617572400000,2.10000000],[1617573000000,2.00000000],[1617573600000,1.70000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1617487200000,-2.9],[1617487800000,-2.8],[1617488400000,-2.8],[1617489000000,-2.6],[1617489600000,-2.7],[1617490200000,-2.7],[1617490800000,-2.6],[1617491400000,-2.6],[1617492000000,-2.5],[1617492600000,-2.6],[1617493200000,-2.6],[1617493800000,-2.6],[1617494400000,-2.6],[1617495000000,-2.8],[1617495600000,-2.8],[1617496200000,-2.9],[1617496800000,-3],[1617497400000,-2.9],[1617498000000,-2.9],[1617498600000,-3],[1617499200000,-3],[1617499800000,-3],[1617500400000,-2.9],[1617501000000,-2.8],[1617501600000,-2.8],[1617502200000,-2.8],[1617502800000,-2.8],[1617503400000,-2.9],[1617504000000,-2.9],[1617504600000,-3],[1617505200000,-3],[1617505800000,-3.2],[1617506400000,-3.1],[1617507000000,-3.2],[1617507600000,-3.2],[1617508200000,-3.2],[1617508800000,-3.2],[1617509400000,-3.2],[1617510000000,-3.2],[1617510600000,-3.1],[1617511200000,-2.9],[1617511800000,-2.7],[1617512400000,-2.5],[1617513000000,-2.3],[1617513600000,-2.3],[1617514200000,-2],[1617514800000,-1.8],[1617515400000,-1.8],[1617516000000,-1.8],[1617516600000,-1.8],[1617517200000,-1.8],[1617517800000,-1.6],[1617518400000,-1.6],[1617519000000,-1.8],[1617519600000,-1.7],[1617520200000,-2],[1617520800000,-1.9],[1617521400000,-1.9],[1617522000000,-1.7],[1617522600000,-1.8],[1617523200000,-1.8],[1617523800000,-1.5],[1617524400000,-1.1],[1617525000000,-1.2],[1617525600000,-1.4],[1617526200000,-1.5],[1617526800000,-2.4],[1617527400000,-3],[1617528000000,-3],[1617528600000,-3],[1617529200000,-2.8],[1617529800000,-3.4],[1617530400000,-3.7],[1617531000000,-4.1],[1617531600000,-4.2],[1617532200000,-4.2],[1617532800000,-4.4],[1617533400000,-4.4],[1617534000000,-4.5],[1617534600000,-3.6],[1617535200000,-4.3],[1617535800000,-4.8],[1617536400000,-3.6],[1617537000000,-3.5],[1617537600000,-3],[1617538200000,-3.2],[1617538800000,-3.7],[1617539400000,-3.3],[1617540000000,-3.4],[1617540600000,-3.9],[1617541200000,-4.1],[1617541800000,-3.9],[1617542400000,-4.2],[1617543000000,-4.4],[1617543600000,-4],[1617544200000,-4],[1617544800000,-4],[1617545400000,-4.5],[1617546000000,-4.3],[1617546600000,-4.4],[1617547200000,-4.6],[1617547800000,-4.6],[1617548400000,-4.6],[1617549000000,-4.7],[1617549600000,-4.8],[1617550200000,-4.9],[1617550800000,-4.9],[1617551400000,-5.1],[1617552000000,-4.9],[1617552600000,-5.2],[1617553200000,-5.3],[1617553800000,-5.5],[1617554400000,-5.5],[1617555000000,-5.5],[1617555600000,-5.5],[1617556200000,-5.4],[1617556800000,-5.5],[1617557400000,-5.5],[1617558000000,-5.6],[1617558600000,-5.7],[1617559200000,-5.6],[1617559800000,-5.6],[1617560400000,-5.6],[1617561000000,-5.6],[1617561600000,-5.6],[1617562200000,-5.7],[1617562800000,-5.6],[1617563400000,-5.6],[1617564000000,-5.6],[1617564600000,-5.7],[1617565200000,-5.7],[1617565800000,-5.7],[1617566400000,-5.8],[1617567000000,-5.8],[1617567600000,-5.9],[1617568200000,-5.8],[1617568800000,-5.9],[1617569400000,-5.8],[1617570000000,-5.8],[1617570600000,-5.8],[1617571200000,-6],[1617571800000,-6.1],[1617572400000,-6.1],[1617573000000,-6.2],[1617573600000,-6.3],], 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: [[1617487200000,68.40000000],[1617487800000,69.00000000],[1617488400000,69.60000000],[1617489000000,69.80000000],[1617489600000,70.00000000],[1617490200000,70.60000000],[1617490800000,71.00000000],[1617491400000,71.20000000],[1617492000000,71.40000000],[1617492600000,71.00000000],[1617493200000,71.00000000],[1617493800000,71.00000000],[1617494400000,70.80000000],[1617495000000,70.40000000],[1617495600000,70.00000000],[1617496200000,69.80000000],[1617496800000,69.80000000],[1617497400000,69.60000000],[1617498000000,69.40000000],[1617498600000,69.40000000],[1617499200000,69.60000000],[1617499800000,69.60000000],[1617500400000,69.60000000],[1617501000000,69.20000000],[1617501600000,69.20000000],[1617502200000,69.00000000],[1617502800000,69.00000000],[1617503400000,69.00000000],[1617504000000,69.00000000],[1617504600000,69.00000000],[1617505200000,68.60000000],[1617505800000,68.40000000],[1617506400000,68.60000000],[1617507000000,68.80000000],[1617507600000,69.20000000],[1617508200000,69.20000000],[1617508800000,69.40000000],[1617509400000,69.80000000],[1617510000000,70.40000000],[1617510600000,70.60000000],[1617511200000,70.60000000],[1617511800000,70.00000000],[1617512400000,69.20000000],[1617513000000,68.80000000],[1617513600000,68.20000000],[1617514200000,67.40000000],[1617514800000,66.60000000],[1617515400000,65.80000000],[1617516000000,65.00000000],[1617516600000,64.00000000],[1617517200000,63.20000000],[1617517800000,62.60000000],[1617518400000,61.60000000],[1617519000000,60.20000000],[1617519600000,59.20000000],[1617520200000,58.20000000],[1617520800000,57.40000000],[1617521400000,56.20000000],[1617522000000,55.80000000],[1617522600000,55.00000000],[1617523200000,54.20000000],[1617523800000,54.00000000],[1617524400000,53.20000000],[1617525000000,52.60000000],[1617525600000,51.40000000],[1617526200000,51.20000000],[1617526800000,50.40000000],[1617527400000,50.80000000],[1617528000000,50.80000000],[1617528600000,49.40000000],[1617529200000,47.80000000],[1617529800000,45.80000000],[1617530400000,45.60000000],[1617531000000,45.60000000],[1617531600000,44.80000000],[1617532200000,44.20000000],[1617532800000,44.00000000],[1617533400000,43.60000000],[1617534000000,43.20000000],[1617534600000,43.00000000],[1617535200000,41.40000000],[1617535800000,42.00000000],[1617536400000,43.80000000],[1617537000000,41.60000000],[1617537600000,41.80000000],[1617538200000,40.80000000],[1617538800000,39.40000000],[1617539400000,40.20000000],[1617540000000,39.40000000],[1617540600000,39.40000000],[1617541200000,39.40000000],[1617541800000,40.00000000],[1617542400000,39.20000000],[1617543000000,39.00000000],[1617543600000,39.80000000],[1617544200000,39.40000000],[1617544800000,39.60000000],[1617545400000,39.40000000],[1617546000000,39.80000000],[1617546600000,40.00000000],[1617547200000,39.80000000],[1617547800000,40.00000000],[1617548400000,40.00000000],[1617549000000,40.00000000],[1617549600000,40.20000000],[1617550200000,40.80000000],[1617550800000,41.00000000],[1617551400000,41.40000000],[1617552000000,41.80000000],[1617552600000,42.20000000],[1617553200000,42.80000000],[1617553800000,43.20000000],[1617554400000,43.80000000],[1617555000000,44.60000000],[1617555600000,45.40000000],[1617556200000,46.20000000],[1617556800000,47.00000000],[1617557400000,47.20000000],[1617558000000,47.60000000],[1617558600000,48.20000000],[1617559200000,48.80000000],[1617559800000,49.20000000],[1617560400000,49.80000000],[1617561000000,50.40000000],[1617561600000,50.60000000],[1617562200000,51.20000000],[1617562800000,51.60000000],[1617563400000,52.00000000],[1617564000000,52.00000000],[1617564600000,52.20000000],[1617565200000,52.40000000],[1617565800000,52.80000000],[1617566400000,53.00000000],[1617567000000,53.00000000],[1617567600000,53.20000000],[1617568200000,53.40000000],[1617568800000,53.60000000],[1617569400000,53.80000000],[1617570000000,54.00000000],[1617570600000,53.80000000],[1617571200000,54.20000000],[1617571800000,54.60000000],[1617572400000,54.80000000],[1617573000000,55.00000000],[1617573600000,55.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: [[1617487200000,1019.7],[1617487800000,1019.7],[1617488400000,1019.7],[1617489000000,1019.7],[1617489600000,1019.6],[1617490200000,1019.7],[1617490800000,1019.6],[1617491400000,1019.7],[1617492000000,1019.7],[1617492600000,1019.7],[1617493200000,1019.8],[1617493800000,1019.8],[1617494400000,1019.8],[1617495000000,1019.9],[1617495600000,1019.9],[1617496200000,1020],[1617496800000,1020.1],[1617497400000,1020.1],[1617498000000,1020.1],[1617498600000,1020.1],[1617499200000,1020.1],[1617499800000,1020.1],[1617500400000,1020],[1617501000000,1020],[1617501600000,1020],[1617502200000,1020.1],[1617502800000,1020],[1617503400000,1019.9],[1617504000000,1020],[1617504600000,1020.1],[1617505200000,1020.1],[1617505800000,1020.1],[1617506400000,1020.2],[1617507000000,1020.3],[1617507600000,1020.3],[1617508200000,1020.4],[1617508800000,1020.5],[1617509400000,1020.6],[1617510000000,1020.6],[1617510600000,1020.6],[1617511200000,1020.7],[1617511800000,1020.6],[1617512400000,1020.6],[1617513000000,1020.6],[1617513600000,1020.6],[1617514200000,1020.7],[1617514800000,1020.7],[1617515400000,1020.6],[1617516000000,1020.6],[1617516600000,1020.6],[1617517200000,1020.6],[1617517800000,1020.7],[1617518400000,1020.7],[1617519000000,1020.7],[1617519600000,1020.7],[1617520200000,1020.7],[1617520800000,1020.7],[1617521400000,1020.8],[1617522000000,1020.8],[1617522600000,1020.7],[1617523200000,1020.6],[1617523800000,1020.6],[1617524400000,1020.5],[1617525000000,1020.5],[1617525600000,1020.5],[1617526200000,1020.5],[1617526800000,1020.7],[1617527400000,1020.9],[1617528000000,1020.9],[1617528600000,1020.6],[1617529200000,1020.4],[1617529800000,1020.4],[1617530400000,1020.4],[1617531000000,1020.5],[1617531600000,1020.6],[1617532200000,1020.5],[1617532800000,1020.5],[1617533400000,1020.3],[1617534000000,1020.2],[1617534600000,1019.9],[1617535200000,1019.9],[1617535800000,1020],[1617536400000,1019.9],[1617537000000,1019.6],[1617537600000,1019.5],[1617538200000,1019.4],[1617538800000,1019.3],[1617539400000,1019.2],[1617540000000,1019.1],[1617540600000,1019.3],[1617541200000,1019.1],[1617541800000,1019],[1617542400000,1019],[1617543000000,1018.9],[1617543600000,1018.8],[1617544200000,1018.7],[1617544800000,1018.7],[1617545400000,1018.7],[1617546000000,1018.7],[1617546600000,1018.6],[1617547200000,1018.6],[1617547800000,1018.6],[1617548400000,1018.5],[1617549000000,1018.5],[1617549600000,1018.5],[1617550200000,1018.4],[1617550800000,1018.4],[1617551400000,1018.5],[1617552000000,1018.4],[1617552600000,1018.4],[1617553200000,1018.5],[1617553800000,1018.6],[1617554400000,1018.6],[1617555000000,1018.6],[1617555600000,1018.7],[1617556200000,1018.8],[1617556800000,1018.8],[1617557400000,1018.9],[1617558000000,1018.9],[1617558600000,1018.9],[1617559200000,1019],[1617559800000,1019],[1617560400000,1019.1],[1617561000000,1019.1],[1617561600000,1019.3],[1617562200000,1019.2],[1617562800000,1019.2],[1617563400000,1019.3],[1617564000000,1019.3],[1617564600000,1019.3],[1617565200000,1019.3],[1617565800000,1019.3],[1617566400000,1019.2],[1617567000000,1019.2],[1617567600000,1019.1],[1617568200000,1019.2],[1617568800000,1019.2],[1617569400000,1019.1],[1617570000000,1019],[1617570600000,1018.9],[1617571200000,1018.9],[1617571800000,1018.9],[1617572400000,1018.8],[1617573000000,1018.9],[1617573600000,1019],], 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: [[1617487200000,0.00000000],[1617487800000,0.00000000],[1617488400000,0.00000000],[1617489000000,0.00000000],[1617489600000,0.00000000],[1617490200000,0.00000000],[1617490800000,0.00000000],[1617491400000,0.00000000],[1617492000000,0.00000000],[1617492600000,0.00000000],[1617493200000,0.00000000],[1617493800000,0.00000000],[1617494400000,0.00000000],[1617495000000,0.00000000],[1617495600000,0.00000000],[1617496200000,0.00000000],[1617496800000,0.00000000],[1617497400000,0.00000000],[1617498000000,0.00000000],[1617498600000,0.00000000],[1617499200000,0.00000000],[1617499800000,0.00000000],[1617500400000,0.00000000],[1617501000000,0.00000000],[1617501600000,0.00000000],[1617502200000,0.00000000],[1617502800000,0.00000000],[1617503400000,0.00000000],[1617504000000,0.00000000],[1617504600000,0.00000000],[1617505200000,0.00000000],[1617505800000,0.00000000],[1617506400000,0.00000000],[1617507000000,0.00000000],[1617507600000,0.00000000],[1617508200000,0.00000000],[1617508800000,0.00000000],[1617509400000,0.00000000],[1617510000000,4.00000000],[1617510600000,8.00000000],[1617511200000,14.00000000],[1617511800000,26.00000000],[1617512400000,42.00000000],[1617513000000,62.00000000],[1617513600000,84.00000000],[1617514200000,108.00000000],[1617514800000,132.00000000],[1617515400000,160.00000000],[1617516000000,188.00000000],[1617516600000,218.00000000],[1617517200000,248.00000000],[1617517800000,276.00000000],[1617518400000,306.00000000],[1617519000000,338.00000000],[1617519600000,364.00000000],[1617520200000,392.00000000],[1617520800000,418.00000000],[1617521400000,444.00000000],[1617522000000,472.00000000],[1617522600000,498.00000000],[1617523200000,522.00000000],[1617523800000,574.00000000],[1617524400000,636.00000000],[1617525000000,678.00000000],[1617525600000,740.00000000],[1617526200000,630.00000000],[1617526800000,182.00000000],[1617527400000,150.00000000],[1617528000000,330.00000000],[1617528600000,678.00000000],[1617529200000,826.00000000],[1617529800000,560.00000000],[1617530400000,210.00000000],[1617531000000,240.00000000],[1617531600000,360.00000000],[1617532200000,306.00000000],[1617532800000,340.00000000],[1617533400000,354.00000000],[1617534000000,480.00000000],[1617534600000,654.00000000],[1617535200000,304.00000000],[1617535800000,192.00000000],[1617536400000,688.00000000],[1617537000000,876.00000000],[1617537600000,870.00000000],[1617538200000,838.00000000],[1617538800000,640.00000000],[1617539400000,836.00000000],[1617540000000,834.00000000],[1617540600000,668.00000000],[1617541200000,684.00000000],[1617541800000,656.00000000],[1617542400000,646.00000000],[1617543000000,624.00000000],[1617543600000,608.00000000],[1617544200000,598.00000000],[1617544800000,592.00000000],[1617545400000,512.00000000],[1617546000000,476.00000000],[1617546600000,442.00000000],[1617547200000,418.00000000],[1617547800000,388.00000000],[1617548400000,358.00000000],[1617549000000,328.00000000],[1617549600000,296.00000000],[1617550200000,268.00000000],[1617550800000,238.00000000],[1617551400000,208.00000000],[1617552000000,178.00000000],[1617552600000,146.00000000],[1617553200000,108.00000000],[1617553800000,34.00000000],[1617554400000,26.00000000],[1617555000000,22.00000000],[1617555600000,16.00000000],[1617556200000,10.00000000],[1617556800000,6.00000000],[1617557400000,2.00000000],[1617558000000,0.00000000],[1617558600000,0.00000000],[1617559200000,0.00000000],[1617559800000,0.00000000],[1617560400000,0.00000000],[1617561000000,0.00000000],[1617561600000,0.00000000],[1617562200000,0.00000000],[1617562800000,0.00000000],[1617563400000,0.00000000],[1617564000000,0.00000000],[1617564600000,0.00000000],[1617565200000,0.00000000],[1617565800000,0.00000000],[1617566400000,0.00000000],[1617567000000,0.00000000],[1617567600000,0.00000000],[1617568200000,0.00000000],[1617568800000,0.00000000],[1617569400000,0.00000000],[1617570000000,0.00000000],[1617570600000,0.00000000],[1617571200000,0.00000000],[1617571800000,0.00000000],[1617572400000,0.00000000],[1617573000000,0.00000000],[1617573600000,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); }); $('.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; }