var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787263248000,18.50000000],[1787263406000,19.07500000],[1787263653000,18.85000000],[1787263954000,18.70000000],[1787264253000,18.86666667],[1787264605000,19.16000000],[1787264913000,19.05000000],[1787265154000,19.00000000],[1787265469000,18.82000000],[1787265758000,18.55714286],[1787266093000,18.40000000],[1787266462000,19.04000000],[1787266653000,19.31666667],[1787266989000,19.05000000],[1787267252000,18.68000000],[1787267554000,18.45000000],[1787267853000,18.21428571],[1787268152000,18.03333333],[1787268462000,18.08571429],[1787268813000,18.10000000],[1787269052000,18.15714286],[1787269406000,18.31666667],[1787269710000,18.40000000],[1787269965000,18.53750000],[1787270286000,18.57500000],[1787270554000,18.60000000],[1787270862000,18.90000000],[1787271212000,19.04285714],[1787271533000,18.74000000],[1787271773000,18.65555556],[1787272077000,18.74444444],[1787272381000,18.83333333],[1787272652000,18.75000000],[1787273005000,18.92500000],[1787273277000,18.41428571],[1787273582000,18.01666667],[1787273852000,17.96250000],[1787274173000,18.08571429],[1787274477000,18.12857143],[1787274812000,18.11428571],[1787275053000,18.12500000],[1787275390000,18.10000000],[1787275677000,18.14285714],[1787275952000,18.23333333],[1787276312000,18.30000000],[1787276573000,18.36250000],[1787276877000,18.21250000],[1787277181000,18.05714286],[1787277470000,18.10000000],[1787277773000,18.15000000],[1787278076000,18.30000000],[1787278477000,18.30000000],[1787278669000,18.13333333],[1787278954000,18.13333333],[1787279290000,18.20000000],[1787279553000,18.20000000],[1787282652000,17.50000000],[1787283033000,17.50000000],[1787283153000,17.50000000],[1787283468000,17.50000000],[1787283847000,17.50000000],[1787284062000,17.60000000],[1787284413000,17.80000000],[1787284653000,17.80000000],[1787287952000,18.10000000],[1787288253000,18.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787263248000,17],[1787263406000,16.8],[1787263653000,16.9],[1787263954000,16.8],[1787264253000,16.6],[1787264605000,16.7],[1787264913000,16.5],[1787265154000,16.7],[1787265469000,16.6],[1787265758000,16.7],[1787266093000,16.5],[1787266462000,16.3],[1787266653000,16.5],[1787266989000,16.8],[1787267252000,16.6],[1787267554000,16.6],[1787267853000,16.6],[1787268152000,16.5],[1787268462000,16.6],[1787268813000,16.6],[1787269052000,16.6],[1787269406000,16.6],[1787269710000,16.7],[1787269965000,16.9],[1787270286000,16.9],[1787270554000,16.7],[1787270862000,16.6],[1787271212000,17],[1787271533000,16.9],[1787271773000,16.8],[1787272077000,16.6],[1787272381000,16.7],[1787272652000,16.5],[1787273005000,16.7],[1787273277000,16.9],[1787273582000,16.8],[1787273852000,16.8],[1787274173000,16.7],[1787274477000,16.6],[1787274812000,16.6],[1787275053000,16.6],[1787275390000,16.6],[1787275677000,16.7],[1787275952000,16.8],[1787276312000,16.8],[1787276573000,16.9],[1787276877000,16.9],[1787277181000,16.8],[1787277470000,16.8],[1787277773000,16.8],[1787278076000,16.7],[1787278477000,16.9],[1787278669000,16.9],[1787278954000,17],[1787279290000,17],[1787279553000,17],[1787282652000,17],[1787283033000,17],[1787283153000,17],[1787283468000,17],[1787283847000,17],[1787284062000,17.1],[1787284413000,17.1],[1787284653000,17.1],[1787287952000,17.4],[1787288253000,17.4],], 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: [[1787263248000,91.00000000],[1787263406000,86.50000000],[1787263653000,88.50000000],[1787263954000,89.00000000],[1787264253000,86.83333333],[1787264605000,85.80000000],[1787264913000,85.50000000],[1787265154000,86.80000000],[1787265469000,87.00000000],[1787265758000,89.14285714],[1787266093000,88.57142857],[1787266462000,84.00000000],[1787266653000,83.66666667],[1787266989000,86.75000000],[1787267252000,87.80000000],[1787267554000,88.83333333],[1787267853000,90.57142857],[1787268152000,90.83333333],[1787268462000,91.00000000],[1787268813000,91.00000000],[1787269052000,90.42857143],[1787269406000,90.00000000],[1787269710000,90.00000000],[1787269965000,90.00000000],[1787270286000,90.00000000],[1787270554000,89.00000000],[1787270862000,86.60000000],[1787271212000,88.28571429],[1787271533000,89.00000000],[1787271773000,88.77777778],[1787272077000,87.66666667],[1787272381000,87.66666667],[1787272652000,86.62500000],[1787273005000,87.25000000],[1787273277000,90.85714286],[1787273582000,92.83333333],[1787273852000,92.75000000],[1787274173000,91.85714286],[1787274477000,91.00000000],[1787274812000,91.00000000],[1787275053000,91.00000000],[1787275390000,91.00000000],[1787275677000,91.42857143],[1787275952000,91.16666667],[1787276312000,91.00000000],[1787276573000,91.12500000],[1787276877000,92.00000000],[1787277181000,92.28571429],[1787277470000,92.00000000],[1787277773000,92.00000000],[1787278076000,90.50000000],[1787278477000,91.60000000],[1787278669000,92.66666667],[1787278954000,93.00000000],[1787279290000,93.00000000],[1787279553000,93.00000000],[1787282652000,97.00000000],[1787283033000,97.00000000],[1787283153000,97.00000000],[1787283468000,97.00000000],[1787283847000,97.00000000],[1787284062000,97.00000000],[1787284413000,96.00000000],[1787284653000,96.00000000],[1787287952000,96.00000000],[1787288253000,96.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: [[1787263248000,1014.4],[1787263653000,1014.5],[1787263954000,1014.5],[1787264253000,1014.3],[1787264605000,1014.3],[1787264913000,1014.3],[1787265154000,1014.2],[1787265469000,1014.2],[1787265758000,1014.5],[1787266093000,1014.6],[1787266462000,1014.5],[1787266653000,1014.3],[1787266989000,1014.3],[1787267252000,1014.5],[1787267554000,1014.6],[1787267853000,1014.7],[1787268152000,1014.9],[1787268462000,1015.1],[1787268813000,1014.9],[1787269052000,1015],[1787269406000,1015.1],[1787269710000,1015.1],[1787269965000,1015],[1787270286000,1015],[1787270554000,1015],[1787270862000,1014.9],[1787271212000,1015],[1787271533000,1015],[1787271773000,1015],[1787272077000,1015.1],[1787272381000,1015.2],[1787272652000,1015.3],[1787273005000,1015.2],[1787273277000,1015.3],[1787273582000,1015.5],[1787273852000,1015.6],[1787274173000,1015.6],[1787274477000,1015.6],[1787274812000,1015.6],[1787275053000,1015.6],[1787275390000,1015.7],[1787275677000,1015.7],[1787275952000,1015.6],[1787276312000,1015.6],[1787276573000,1015.5],[1787276877000,1015.7],[1787277181000,1015.7],[1787277470000,1015.9],[1787277773000,1015.9],[1787278076000,1016],[1787278477000,1016.4],[1787278669000,1016.3],[1787278954000,1016.2],[1787279290000,1016.4],[1787279553000,1016.7],[1787283033000,1016.1],[1787283153000,1015.9],[1787283468000,1015.8],[1787283847000,1015.6],[1787284062000,1015.5],[1787284413000,1015.7],[1787284653000,1015.5],[1787287952000,1014.9],[1787288253000,1014.8],], 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: 'Rýchlosť vetra (km/h)', data: [[1787263248000,2.16],[1787263406000,5.31],[1787263653000,3.24],[1787263954000,2.304],[1787264253000,3.300000012],[1787264605000,3.744],[1787264913000,3.6],[1787265154000,1.296],[1787265469000,1.944],[1787265758000,3.548571444],[1787266093000,2.982857148],[1787266462000,4.752],[1787266653000,3.78],[1787266989000,1.53],[1787267252000,1.44],[1787267554000,0.119999988],[1787267853000,1.028571444],[1787268152000,0],[1787268462000,1.8],[1787268813000,2.97],[1787269052000,1.131428556],[1787269406000,2.400000012],[1787269710000,2.304],[1787269965000,2.295],[1787270286000,2.7],[1787270554000,4.32],[1787270862000,3.096],[1787271212000,3.96],[1787271533000,1.008],[1787271773000,0.399999996],[1787272077000,0],[1787272381000,1.739999988],[1787272652000,3.915],[1787273005000,0.09],[1787273277000,0.514285704],[1787273582000,1.62],[1787273852000,0.63],[1787274173000,0.874285704],[1787274477000,0.977142852],[1787274812000,0.72],[1787275053000,0],[1787275390000,0],[1787275677000,1.131428556],[1787275952000,1.26],[1787276312000,0],[1787276573000,0],[1787276877000,2.115],[1787277181000,2.314285704],[1787277470000,1.224],[1787277773000,2.43],[1787278076000,2.88],[1787278477000,2.736],[1787278669000,1.919999988],[1787278954000,3.840000012],[1787279290000,5.76],[1787279553000,5.76],[1787282652000,1.44],[1787283033000,1.44],[1787283153000,4.200000012],[1787283468000,9.72],[1787283847000,10.26],[1787284062000,12.24],[1787284413000,6.84],[1787284653000,6.84],[1787287952000,1.44],[1787288253000,1.44],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787263248000,2.52],[1787263406000,6.93],[1787263653000,4.41],[1787263954000,2.52],[1787264253000,3.78],[1787264605000,4.536],[1787264913000,3.78],[1787265154000,1.512],[1787265469000,3.024],[1787265758000,4.32],[1787266093000,3.6],[1787266462000,5.544],[1787266653000,4.619999988],[1787266989000,1.89],[1787267252000,2.016],[1787267554000,0.420000012],[1787267853000,1.8],[1787268152000,0],[1787268462000,2.52],[1787268813000,3.78],[1787269052000,2.52],[1787269406000,2.940000012],[1787269710000,2.52],[1787269965000,2.835],[1787270286000,4.41],[1787270554000,5.04],[1787270862000,5.04],[1787271212000,5.04],[1787271533000,1.008],[1787271773000,0.839999988],[1787272077000,0],[1787272381000,2.52],[1787272652000,5.04],[1787273005000,0.63],[1787273277000,1.44],[1787273582000,1.680000012],[1787273852000,2.205],[1787274173000,1.8],[1787274477000,1.44],[1787274812000,1.44],[1787275053000,0],[1787275390000,0],[1787275677000,2.16],[1787275952000,2.099999988],[1787276312000,0],[1787276573000,0],[1787276877000,2.52],[1787277181000,3.6],[1787277470000,2.52],[1787277773000,3.78],[1787278076000,3.78],[1787278477000,4.032],[1787278669000,3.359999988],[1787278954000,5.879999988],[1787279290000,7.56],[1787279553000,7.56],[1787282652000,5.04],[1787283033000,5.04],[1787283153000,7.679999988],[1787283468000,12.96],[1787283847000,12.96],[1787284062000,15.48],[1787284413000,7.56],[1787284653000,7.56],[1787287952000,2.52],[1787288253000,2.52],], color: '#EF9856', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind', }], 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.1km/h' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-legend' } }; graphs['#chart-wind'] = $.plot('#chart-wind', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Smer vetra', data: [[1787263248000,299.00000000],[1787263406000,296.75000000],[1787263653000,299.00000000],[1787263954000,307.40000000],[1787264253000,309.16666667],[1787264605000,304.60000000],[1787264913000,316.50000000],[1787265154000,305.00000000],[1787265469000,293.20000000],[1787265758000,307.71428571],[1787266093000,323.85714286],[1787266462000,312.80000000],[1787266653000,311.00000000],[1787266989000,206.25000000],[1787267252000,242.40000000],[1787267554000,300.33333333],[1787267853000,299.85714286],[1787268152000,295.00000000],[1787268462000,300.00000000],[1787268813000,298.00000000],[1787269052000,299.85714286],[1787269406000,303.66666667],[1787269710000,320.40000000],[1787269965000,309.75000000],[1787270286000,308.50000000],[1787270554000,315.83333333],[1787270862000,302.60000000],[1787271212000,302.42857143],[1787271533000,316.20000000],[1787271773000,312.77777778],[1787272077000,307.44444444],[1787272381000,300.50000000],[1787272652000,301.12500000],[1787273005000,292.37500000],[1787273277000,262.42857143],[1787273582000,323.83333333],[1787273852000,330.25000000],[1787274173000,297.00000000],[1787274477000,295.71428571],[1787274812000,321.42857143],[1787275053000,296.00000000],[1787275390000,335.00000000],[1787275677000,332.42857143],[1787275952000,334.66666667],[1787276312000,326.00000000],[1787276573000,322.25000000],[1787276877000,267.87500000],[1787277181000,270.00000000],[1787277470000,200.40000000],[1787277773000,290.00000000],[1787278076000,260.33333333],[1787278477000,271.80000000],[1787278669000,332.00000000],[1787278954000,334.00000000],[1787279290000,320.00000000],[1787279553000,320.00000000],[1787282652000,19.00000000],[1787283033000,19.00000000],[1787283153000,22.66666667],[1787283468000,30.00000000],[1787283847000,273.00000000],[1787284062000,2.00000000],[1787284413000,359.00000000],[1787284653000,359.00000000],[1787287952000,29.00000000],[1787288253000,29.00000000],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Slnečné žiarenie (W/m2)', data: [[1787263248000,0.00000000],[1787263406000,0.00000000],[1787263653000,0.00000000],[1787263954000,0.00000000],[1787264253000,0.00000000],[1787264605000,0.00000000],[1787264913000,0.00000000],[1787265154000,0.00000000],[1787265469000,0.00000000],[1787265758000,0.00000000],[1787266093000,0.00000000],[1787266462000,0.00000000],[1787266653000,0.00000000],[1787266989000,0.00000000],[1787267252000,0.00000000],[1787267554000,0.00000000],[1787267853000,0.00000000],[1787268152000,0.00000000],[1787268462000,0.00000000],[1787268813000,0.00000000],[1787269052000,0.00000000],[1787269406000,0.00000000],[1787269710000,0.00000000],[1787269965000,0.00000000],[1787270286000,0.00000000],[1787270554000,0.00000000],[1787270862000,0.00000000],[1787271212000,0.00000000],[1787271533000,0.00000000],[1787271773000,0.00000000],[1787272077000,0.00000000],[1787272381000,0.00000000],[1787272652000,0.00000000],[1787273005000,0.00000000],[1787273277000,0.00000000],[1787273582000,0.00000000],[1787273852000,0.00000000],[1787274173000,0.00000000],[1787274477000,0.00000000],[1787274812000,0.00000000],[1787275053000,0.00000000],[1787275390000,0.00000000],[1787275677000,0.00000000],[1787275952000,0.00000000],[1787276312000,0.00000000],[1787276573000,0.00000000],[1787276877000,0.00000000],[1787277181000,0.00000000],[1787277470000,0.00000000],[1787277773000,0.00000000],[1787278076000,0.00000000],[1787278477000,0.00000000],[1787278669000,0.00000000],[1787278954000,0.00000000],[1787279290000,0.00000000],[1787279553000,0.00000000],[1787282652000,0.00000000],[1787283033000,0.00000000],[1787283153000,0.00000000],[1787283468000,0.00000000],[1787283847000,0.75000000],[1787284062000,1.00000000],[1787284413000,2.00000000],[1787284653000,2.00000000],[1787287952000,33.00000000],[1787288253000,33.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: 'UV žiarenie', data: [[1787263248000,0.00000000],[1787263406000,0.00000000],[1787263653000,0.00000000],[1787263954000,0.00000000],[1787264253000,0.00000000],[1787264605000,0.00000000],[1787264913000,0.00000000],[1787265154000,0.00000000],[1787265469000,0.00000000],[1787265758000,0.00000000],[1787266093000,0.00000000],[1787266462000,0.00000000],[1787266653000,0.00000000],[1787266989000,0.00000000],[1787267252000,0.00000000],[1787267554000,0.00000000],[1787267853000,0.00000000],[1787268152000,0.00000000],[1787268462000,0.00000000],[1787268813000,0.00000000],[1787269052000,0.00000000],[1787269406000,0.00000000],[1787269710000,0.00000000],[1787269965000,0.00000000],[1787270286000,0.00000000],[1787270554000,0.00000000],[1787270862000,0.00000000],[1787271212000,0.00000000],[1787271533000,0.00000000],[1787271773000,0.00000000],[1787272077000,0.00000000],[1787272381000,0.00000000],[1787272652000,0.00000000],[1787273005000,0.00000000],[1787273277000,0.00000000],[1787273582000,0.00000000],[1787273852000,0.00000000],[1787274173000,0.00000000],[1787274477000,0.00000000],[1787274812000,0.00000000],[1787275053000,0.00000000],[1787275390000,0.00000000],[1787275677000,0.00000000],[1787275952000,0.00000000],[1787276312000,0.00000000],[1787276573000,0.00000000],[1787276877000,0.00000000],[1787277181000,0.00000000],[1787277470000,0.00000000],[1787277773000,0.00000000],[1787278076000,0.00000000],[1787278477000,0.00000000],[1787278669000,0.00000000],[1787278954000,0.00000000],[1787279290000,0.00000000],[1787279553000,0.00000000],[1787282652000,0.00000000],[1787283033000,0.00000000],[1787283153000,0.00000000],[1787283468000,0.00000000],[1787283847000,0.00000000],[1787284062000,0.00000000],[1787284413000,0.00000000],[1787284653000,0.00000000],[1787287952000,0.00000000],[1787288253000,0.00000000],], color: '#802674' } ]; var options = { xaxes: [{ axisLabel: 'uv', }], 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.0' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-uv-legend' } }; graphs['#chart-uv'] = $.plot('#chart-uv', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1787263248000,0.00000000],[1787263406000,0.00000000],[1787263653000,0.00000000],[1787263954000,0.00000000],[1787264253000,0.00000000],[1787264605000,0.00000000],[1787264913000,0.00000000],[1787265154000,0.00000000],[1787265469000,0.00000000],[1787265758000,0.00000000],[1787266093000,0.00000000],[1787266462000,0.00000000],[1787266653000,0.00000000],[1787266989000,0.00000000],[1787267252000,0.00000000],[1787267554000,0.00000000],[1787267853000,0.00000000],[1787268152000,0.00000000],[1787268462000,0.00000000],[1787268813000,0.00000000],[1787269052000,0.00000000],[1787269406000,0.00000000],[1787269710000,0.00000000],[1787269965000,0.00000000],[1787270286000,0.00000000],[1787270554000,0.00000000],[1787270862000,0.00000000],[1787271212000,0.00000000],[1787271533000,0.00000000],[1787271773000,0.00000000],[1787272077000,0.00000000],[1787272381000,0.00000000],[1787272652000,0.00000000],[1787273005000,0.00000000],[1787273277000,0.00000000],[1787273582000,0.00000000],[1787273852000,0.00000000],[1787274173000,0.00000000],[1787274477000,0.00000000],[1787274812000,0.00000000],[1787275053000,0.00000000],[1787275390000,0.00000000],[1787275677000,0.00000000],[1787275952000,0.00000000],[1787276312000,0.00000000],[1787276573000,0.00000000],[1787276877000,0.00000000],[1787277181000,0.00000000],[1787277470000,0.00000000],[1787277773000,0.00000000],[1787278076000,0.00000000],[1787278477000,0.00000000],[1787278669000,0.00000000],[1787278954000,0.10166667],[1787279290000,0.30500000],[1787279553000,0.30500000],[1787282652000,0.78700000],[1787283033000,0.78700000],[1787283153000,0.78700000],[1787283468000,0.78700000],[1787283847000,0.78700000],[1787284062000,0.78700000],[1787284413000,0.78700000],[1787284653000,0.78700000],[1787287952000,0.78700000],[1787288253000,0.78700000],], 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; }