var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1579474817000,-0.80000000],[1579475418000,-0.80000000],[1579476018000,-0.80000000],[1579476617000,-0.80000000],[1579477218000,-0.90000000],[1579477818000,-1.00000000],[1579478418000,-1.20000000],[1579479018000,-1.20000000],[1579479618000,-1.30000000],[1579480218000,-1.40000000],[1579480818000,-1.50000000],[1579481418000,-1.50000000],[1579482018000,-1.50000000],[1579482618000,-1.40000000],[1579483218000,-1.20000000],[1579483818000,-0.70000000],[1579484419000,0.00000000],[1579485018000,0.80000000],[1579485618000,1.00000000],[1579486218000,1.20000000],[1579486818000,1.30000000],[1579487418000,1.20000000],[1579488018000,1.20000000],[1579488618000,1.30000000],[1579489218000,1.40000000],[1579489819000,1.20000000],[1579490418000,0.70000000],[1579491018000,0.20000000],[1579491618000,0.30000000],[1579492218000,-0.50000000],[1579492818000,-1.10000000],[1579493418000,-0.70000000],[1579494019000,0.40000000],[1579494618000,0.70000000],[1579495218000,1.00000000],[1579495819000,0.90000000],[1579496418000,0.70000000],[1579497018000,0.20000000],[1579497619000,0.00000000],[1579498218000,-0.60000000],[1579498818000,-1.00000000],[1579499418000,-0.70000000],[1579500019000,-0.50000000],[1579500618000,-1.10000000],[1579501219000,-1.10000000],[1579501819000,-0.90000000],[1579502419000,-1.20000000],[1579503019000,-0.50000000],[1579503619000,0.10000000],[1579504218000,-0.80000000],[1579504819000,0.10000000],[1579505419000,1.10000000],[1579506019000,1.10000000],[1579506619000,1.00000000],[1579507219000,1.50000000],[1579507819000,1.50000000],[1579508419000,1.20000000],[1579509019000,1.30000000],[1579509619000,1.90000000],[1579510218000,2.00000000],[1579510819000,2.00000000],[1579511419000,2.20000000],[1579512019000,2.00000000],[1579512619000,1.50000000],[1579513219000,1.50000000],[1579513819000,2.00000000],[1579514419000,2.40000000],[1579515019000,2.50000000],[1579515619000,2.40000000],[1579516219000,2.20000000],[1579516819000,1.90000000],[1579517419000,1.70000000],[1579518019000,1.50000000],[1579518619000,0.60000000],[1579519219000,0.00000000],[1579519819000,0.10000000],[1579520419000,0.30000000],[1579521019000,0.40000000],[1579521620000,0.40000000],[1579522219000,0.40000000],[1579522819000,-0.10000000],[1579523419000,-0.70000000],[1579524019000,-1.00000000],[1579524619000,-1.00000000],[1579525220000,-1.20000000],[1579525819000,-1.20000000],[1579526419000,-1.00000000],[1579527020000,-1.20000000],[1579527619000,-1.30000000],[1579528219000,-1.20000000],[1579528820000,-1.10000000],[1579529420000,-1.40000000],[1579530019000,-1.50000000],[1579530620000,-1.60000000],[1579531220000,-1.70000000],[1579531819000,-1.80000000],[1579532419000,-1.90000000],[1579533020000,-2.00000000],[1579533619000,-2.10000000],[1579534219000,-2.40000000],[1579534820000,-2.60000000],[1579535419000,-2.80000000],[1579536019000,-3.00000000],[1579536619000,-3.10000000],[1579537220000,-3.20000000],[1579537819000,-3.30000000],[1579538420000,-3.50000000],[1579539019000,-3.60000000],[1579539619000,-3.50000000],[1579540220000,-3.70000000],[1579540820000,-3.80000000],[1579541419000,-3.80000000],[1579542020000,-3.90000000],[1579542620000,-4.00000000],[1579543220000,-4.10000000],[1579543820000,-4.30000000],[1579544419000,-4.40000000],[1579545020000,-4.60000000],[1579545620000,-4.60000000],[1579546220000,-4.70000000],[1579546820000,-4.80000000],[1579547420000,-5.00000000],[1579548020000,-5.10000000],[1579548620000,-5.20000000],[1579549220000,-5.20000000],[1579549820000,-5.00000000],[1579550420000,-5.00000000],[1579551020000,-5.10000000],[1579551620000,-5.30000000],[1579552220000,-5.20000000],[1579552820000,-5.40000000],[1579553420000,-5.60000000],[1579554020000,-5.60000000],[1579554620000,-5.50000000],[1579555221000,-5.50000000],[1579555820000,-5.50000000],[1579556420000,-5.60000000],[1579557020000,-5.80000000],[1579557621000,-6.10000000],[1579558220000,-6.10000000],[1579558820000,-6.20000000],[1579559421000,-6.10000000],[1579560020000,-6.10000000],[1579560620000,-6.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1579474817000,-1.5],[1579475418000,-1.5],[1579476018000,-1.6],[1579476617000,-1.6],[1579477218000,-1.7],[1579477818000,-1.8],[1579478418000,-2],[1579479018000,-2],[1579479618000,-2.1],[1579480218000,-2.2],[1579480818000,-2.3],[1579481418000,-2.2],[1579482018000,-2.2],[1579482618000,-2.1],[1579483218000,-1.9],[1579483818000,-1.4],[1579484419000,-0.7],[1579485018000,-0.1],[1579485618000,-0],[1579486218000,0],[1579486818000,0],[1579487418000,-0.1],[1579488018000,-0.2],[1579488618000,-0.1],[1579489218000,-0.1],[1579489819000,-0.4],[1579490418000,-0.8],[1579491018000,-1.2],[1579491618000,-1.1],[1579492218000,-1.8],[1579492818000,-2.3],[1579493418000,-1.8],[1579494019000,-1],[1579494618000,-0.9],[1579495218000,-0.7],[1579495819000,-0.8],[1579496418000,-1],[1579497018000,-1.5],[1579497619000,-1.7],[1579498218000,-2.2],[1579498818000,-2.5],[1579499418000,-2.1],[1579500019000,-2.1],[1579500618000,-2.6],[1579501219000,-2.4],[1579501819000,-2.3],[1579502419000,-2.5],[1579503019000,-1.8],[1579503619000,-1.5],[1579504218000,-2.3],[1579504819000,-1.4],[1579505419000,-0.6],[1579506019000,-0.7],[1579506619000,-0.8],[1579507219000,-0.3],[1579507819000,-0.4],[1579508419000,-0.5],[1579509019000,-0.4],[1579509619000,0.2],[1579510218000,0.1],[1579510819000,0.1],[1579511419000,0.3],[1579512019000,0.1],[1579512619000,-0.4],[1579513219000,-0.4],[1579513819000,0.1],[1579514419000,0.4],[1579515019000,0.4],[1579515619000,0.2],[1579516219000,0],[1579516819000,-0.2],[1579517419000,-0.4],[1579518019000,-0.6],[1579518619000,-1.4],[1579519219000,-1.8],[1579519819000,-1.6],[1579520419000,-1.4],[1579521019000,-1.2],[1579521620000,-1.2],[1579522219000,-1.2],[1579522819000,-1.7],[1579523419000,-2.2],[1579524019000,-2.4],[1579524619000,-2.3],[1579525220000,-2.4],[1579525819000,-2.4],[1579526419000,-2.2],[1579527020000,-2.4],[1579527619000,-2.4],[1579528219000,-2.3],[1579528820000,-2.2],[1579529420000,-2.5],[1579530019000,-2.6],[1579530620000,-2.7],[1579531220000,-2.7],[1579531819000,-2.8],[1579532419000,-2.9],[1579533020000,-3],[1579533619000,-3.1],[1579534219000,-3.4],[1579534820000,-3.6],[1579535419000,-3.8],[1579536019000,-4],[1579536619000,-4],[1579537220000,-4.1],[1579537819000,-4.2],[1579538420000,-4.4],[1579539019000,-4.5],[1579539619000,-4.4],[1579540220000,-4.6],[1579540820000,-4.7],[1579541419000,-4.7],[1579542020000,-4.8],[1579542620000,-4.9],[1579543220000,-5],[1579543820000,-5.2],[1579544419000,-5.3],[1579545020000,-5.5],[1579545620000,-5.5],[1579546220000,-5.5],[1579546820000,-5.7],[1579547420000,-5.9],[1579548020000,-6],[1579548620000,-6.1],[1579549220000,-6],[1579549820000,-5.8],[1579550420000,-5.8],[1579551020000,-5.9],[1579551620000,-6.1],[1579552220000,-6],[1579552820000,-6.2],[1579553420000,-6.4],[1579554020000,-6.4],[1579554620000,-6.3],[1579555221000,-6.3],[1579555820000,-6.3],[1579556420000,-6.4],[1579557020000,-6.6],[1579557621000,-6.9],[1579558220000,-6.9],[1579558820000,-7],[1579559421000,-6.9],[1579560020000,-6.9],[1579560620000,-6.9],], 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: [[1579474817000,95.00000000],[1579475418000,94.80000000],[1579476018000,94.60000000],[1579476617000,94.60000000],[1579477218000,94.40000000],[1579477818000,94.40000000],[1579478418000,94.40000000],[1579479018000,94.60000000],[1579479618000,94.60000000],[1579480218000,94.60000000],[1579480818000,94.60000000],[1579481418000,94.80000000],[1579482018000,94.80000000],[1579482618000,95.00000000],[1579483218000,95.00000000],[1579483818000,95.40000000],[1579484419000,95.20000000],[1579485018000,94.00000000],[1579485618000,92.80000000],[1579486218000,92.00000000],[1579486818000,91.40000000],[1579487418000,91.00000000],[1579488018000,90.60000000],[1579488618000,90.20000000],[1579489218000,89.80000000],[1579489819000,89.40000000],[1579490418000,89.80000000],[1579491018000,90.40000000],[1579491618000,90.40000000],[1579492218000,90.80000000],[1579492818000,91.60000000],[1579493418000,92.20000000],[1579494019000,90.60000000],[1579494618000,89.40000000],[1579495218000,88.60000000],[1579495819000,88.40000000],[1579496418000,88.40000000],[1579497018000,88.60000000],[1579497619000,88.80000000],[1579498218000,89.00000000],[1579498818000,89.80000000],[1579499418000,90.20000000],[1579500019000,89.40000000],[1579500618000,90.00000000],[1579501219000,90.80000000],[1579501819000,90.40000000],[1579502419000,90.80000000],[1579503019000,90.80000000],[1579503619000,89.20000000],[1579504218000,89.40000000],[1579504819000,90.00000000],[1579505419000,88.80000000],[1579506019000,88.00000000],[1579506619000,88.20000000],[1579507219000,88.00000000],[1579507819000,87.60000000],[1579508419000,88.60000000],[1579509019000,88.60000000],[1579509619000,88.60000000],[1579510218000,87.40000000],[1579510819000,87.40000000],[1579511419000,87.40000000],[1579512019000,87.40000000],[1579512619000,87.20000000],[1579513219000,87.40000000],[1579513819000,87.40000000],[1579514419000,86.60000000],[1579515019000,86.00000000],[1579515619000,85.60000000],[1579516219000,85.80000000],[1579516819000,86.00000000],[1579517419000,86.20000000],[1579518019000,86.40000000],[1579518619000,86.80000000],[1579519219000,88.00000000],[1579519819000,88.80000000],[1579520419000,88.60000000],[1579521019000,89.00000000],[1579521620000,89.00000000],[1579522219000,89.40000000],[1579522819000,89.20000000],[1579523419000,90.00000000],[1579524019000,90.60000000],[1579524619000,91.20000000],[1579525220000,91.40000000],[1579525819000,91.80000000],[1579526419000,92.00000000],[1579527020000,92.00000000],[1579527619000,92.20000000],[1579528219000,92.60000000],[1579528820000,92.40000000],[1579529420000,92.40000000],[1579530019000,92.60000000],[1579530620000,92.60000000],[1579531220000,92.80000000],[1579531819000,92.80000000],[1579532419000,93.00000000],[1579533020000,93.00000000],[1579533619000,93.00000000],[1579534219000,93.00000000],[1579534820000,93.20000000],[1579535419000,93.20000000],[1579536019000,93.20000000],[1579536619000,93.40000000],[1579537220000,93.40000000],[1579537819000,93.40000000],[1579538420000,93.40000000],[1579539019000,93.60000000],[1579539619000,93.60000000],[1579540220000,93.60000000],[1579540820000,93.60000000],[1579541419000,93.80000000],[1579542020000,93.80000000],[1579542620000,93.80000000],[1579543220000,93.60000000],[1579543820000,93.80000000],[1579544419000,93.80000000],[1579545020000,93.80000000],[1579545620000,93.80000000],[1579546220000,94.00000000],[1579546820000,93.80000000],[1579547420000,93.80000000],[1579548020000,93.80000000],[1579548620000,93.80000000],[1579549220000,94.00000000],[1579549820000,94.20000000],[1579550420000,94.00000000],[1579551020000,94.00000000],[1579551620000,94.00000000],[1579552220000,94.00000000],[1579552820000,94.00000000],[1579553420000,94.00000000],[1579554020000,94.00000000],[1579554620000,94.20000000],[1579555221000,94.00000000],[1579555820000,94.20000000],[1579556420000,94.00000000],[1579557020000,94.00000000],[1579557621000,93.80000000],[1579558220000,94.00000000],[1579558820000,94.00000000],[1579559421000,94.20000000],[1579560020000,94.20000000],[1579560620000,94.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: [[1579474817000,1040.7],[1579475418000,1040.8],[1579476018000,1040.9],[1579476617000,1041],[1579477218000,1041.1],[1579477818000,1041.3],[1579478418000,1041.5],[1579479018000,1041.5],[1579479618000,1041.7],[1579480218000,1041.9],[1579480818000,1042.1],[1579481418000,1042.3],[1579482018000,1042.4],[1579482618000,1042.4],[1579483218000,1042.5],[1579483818000,1042.4],[1579484419000,1042.3],[1579485018000,1042.3],[1579485618000,1042.4],[1579486218000,1042.4],[1579486818000,1042.4],[1579487418000,1042.3],[1579488018000,1042.4],[1579488618000,1042.5],[1579489218000,1042.5],[1579489819000,1042.6],[1579490418000,1042.8],[1579491018000,1042.9],[1579491618000,1042.9],[1579492218000,1043.1],[1579492818000,1043.2],[1579493418000,1043.3],[1579494019000,1043.2],[1579494618000,1043.3],[1579495218000,1043.4],[1579495819000,1043.5],[1579496418000,1043.7],[1579497018000,1044],[1579497619000,1044.2],[1579498218000,1044.5],[1579498818000,1044.6],[1579499418000,1044.6],[1579500019000,1044.9],[1579500618000,1045.1],[1579501219000,1045.2],[1579501819000,1045.3],[1579502419000,1045.5],[1579503019000,1045.5],[1579503619000,1045.6],[1579504218000,1046],[1579504819000,1046],[1579505419000,1045.9],[1579506019000,1046.1],[1579506619000,1046.2],[1579507219000,1046.2],[1579507819000,1046.3],[1579508419000,1046.5],[1579509019000,1046.6],[1579509619000,1046.6],[1579510218000,1046.7],[1579510819000,1046.8],[1579511419000,1047],[1579512019000,1047.1],[1579512619000,1047.3],[1579513219000,1047.3],[1579513819000,1047.2],[1579514419000,1047.1],[1579515019000,1047.2],[1579515619000,1047.1],[1579516219000,1047.2],[1579516819000,1047.3],[1579517419000,1047.4],[1579518019000,1047.3],[1579518619000,1047.6],[1579519219000,1047.8],[1579519819000,1047.8],[1579520419000,1047.7],[1579521019000,1047.8],[1579521620000,1047.8],[1579522219000,1047.8],[1579522819000,1047.9],[1579523419000,1048.1],[1579524019000,1048.2],[1579524619000,1048.2],[1579525220000,1048.2],[1579525819000,1048.3],[1579526419000,1048.3],[1579527020000,1048.5],[1579527619000,1048.5],[1579528219000,1048.4],[1579528820000,1048.3],[1579529420000,1048.5],[1579530019000,1048.6],[1579530620000,1048.6],[1579531220000,1048.6],[1579531819000,1048.6],[1579532419000,1048.7],[1579533020000,1048.7],[1579533619000,1048.8],[1579534219000,1048.9],[1579534820000,1048.9],[1579535419000,1049.1],[1579536019000,1049.2],[1579536619000,1049.2],[1579537220000,1049.3],[1579537819000,1049.3],[1579538420000,1049.3],[1579539019000,1049.6],[1579539619000,1049.6],[1579540220000,1049.7],[1579540820000,1049.7],[1579541419000,1049.9],[1579542020000,1050],[1579542620000,1050],[1579543220000,1050],[1579543820000,1050.2],[1579544419000,1050.3],[1579545020000,1050.4],[1579545620000,1050.5],[1579546220000,1050.6],[1579546820000,1050.7],[1579547420000,1050.8],[1579548020000,1050.7],[1579548620000,1050.7],[1579549220000,1050.7],[1579549820000,1050.7],[1579550420000,1050.7],[1579551020000,1050.7],[1579551620000,1050.7],[1579552220000,1050.7],[1579552820000,1050.7],[1579553420000,1050.9],[1579554020000,1050.9],[1579554620000,1050.9],[1579555221000,1051],[1579555820000,1050.9],[1579556420000,1050.9],[1579557020000,1051.1],[1579557621000,1051.1],[1579558220000,1051.1],[1579558820000,1051.1],[1579559421000,1051],[1579560020000,1050.9],[1579560620000,1050.9],], 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: [[1579474817000,0.00000000],[1579475418000,0.00000000],[1579476018000,0.00000000],[1579476617000,0.00000000],[1579477218000,0.00000000],[1579477818000,0.00000000],[1579478418000,0.00000000],[1579479018000,0.00000000],[1579479618000,0.00000000],[1579480218000,0.00000000],[1579480818000,0.00000000],[1579481418000,0.00000000],[1579482018000,0.00000000],[1579482618000,0.00000000],[1579483218000,0.00000000],[1579483818000,0.00000000],[1579484419000,0.00000000],[1579485018000,0.00000000],[1579485618000,0.00000000],[1579486218000,0.00000000],[1579486818000,0.00000000],[1579487418000,0.00000000],[1579488018000,0.00000000],[1579488618000,0.00000000],[1579489218000,0.00000000],[1579489819000,0.00000000],[1579490418000,0.00000000],[1579491018000,0.00000000],[1579491618000,0.00000000],[1579492218000,0.00000000],[1579492818000,0.00000000],[1579493418000,0.00000000],[1579494019000,0.00000000],[1579494618000,0.00000000],[1579495218000,0.00000000],[1579495819000,0.00000000],[1579496418000,0.00000000],[1579497018000,0.00000000],[1579497619000,0.00000000],[1579498218000,0.00000000],[1579498818000,0.00000000],[1579499418000,0.00000000],[1579500019000,0.00000000],[1579500618000,0.00000000],[1579501219000,2.00000000],[1579501819000,4.00000000],[1579502419000,8.00000000],[1579503019000,12.00000000],[1579503619000,18.00000000],[1579504218000,38.00000000],[1579504819000,56.00000000],[1579505419000,74.00000000],[1579506019000,92.00000000],[1579506619000,110.00000000],[1579507219000,122.00000000],[1579507819000,134.00000000],[1579508419000,152.00000000],[1579509019000,170.00000000],[1579509619000,190.00000000],[1579510218000,208.00000000],[1579510819000,226.00000000],[1579511419000,240.00000000],[1579512019000,254.00000000],[1579512619000,266.00000000],[1579513219000,280.00000000],[1579513819000,292.00000000],[1579514419000,304.00000000],[1579515019000,314.00000000],[1579515619000,320.00000000],[1579516219000,328.00000000],[1579516819000,334.00000000],[1579517419000,344.00000000],[1579518019000,352.00000000],[1579518619000,366.00000000],[1579519219000,414.00000000],[1579519819000,458.00000000],[1579520419000,454.00000000],[1579521019000,442.00000000],[1579521620000,432.00000000],[1579522219000,360.00000000],[1579522819000,128.00000000],[1579523419000,82.00000000],[1579524019000,116.00000000],[1579524619000,148.00000000],[1579525220000,144.00000000],[1579525819000,136.00000000],[1579526419000,132.00000000],[1579527020000,106.00000000],[1579527619000,104.00000000],[1579528219000,100.00000000],[1579528820000,94.00000000],[1579529420000,74.00000000],[1579530019000,62.00000000],[1579530620000,48.00000000],[1579531220000,40.00000000],[1579531819000,30.00000000],[1579532419000,22.00000000],[1579533020000,14.00000000],[1579533619000,8.00000000],[1579534219000,4.00000000],[1579534820000,2.00000000],[1579535419000,0.00000000],[1579536019000,0.00000000],[1579536619000,0.00000000],[1579537220000,0.00000000],[1579537819000,0.00000000],[1579538420000,0.00000000],[1579539019000,0.00000000],[1579539619000,0.00000000],[1579540220000,0.00000000],[1579540820000,0.00000000],[1579541419000,0.00000000],[1579542020000,0.00000000],[1579542620000,0.00000000],[1579543220000,0.00000000],[1579543820000,0.00000000],[1579544419000,0.00000000],[1579545020000,0.00000000],[1579545620000,0.00000000],[1579546220000,0.00000000],[1579546820000,0.00000000],[1579547420000,0.00000000],[1579548020000,0.00000000],[1579548620000,0.00000000],[1579549220000,0.00000000],[1579549820000,0.00000000],[1579550420000,0.00000000],[1579551020000,0.00000000],[1579551620000,0.00000000],[1579552220000,0.00000000],[1579552820000,0.00000000],[1579553420000,0.00000000],[1579554020000,0.00000000],[1579554620000,0.00000000],[1579555221000,0.00000000],[1579555820000,0.00000000],[1579556420000,0.00000000],[1579557020000,0.00000000],[1579557621000,0.00000000],[1579558220000,0.00000000],[1579558820000,0.00000000],[1579559421000,0.00000000],[1579560020000,0.00000000],[1579560620000,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; }