var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1776204050000,12.00000000],[1776204178000,12.04000000],[1776204498000,12.20000000],[1776204754000,12.18000000],[1776205074000,12.00000000],[1776205394000,11.92500000],[1776205650000,11.84000000],[1776205970000,11.66000000],[1776206290000,11.48000000],[1776206610000,11.50000000],[1776206866000,11.58000000],[1776207186000,11.50000000],[1776207506000,11.50000000],[1776207762000,11.46000000],[1776208082000,11.38000000],[1776208402000,11.27500000],[1776208651000,11.20000000],[1776208978000,11.08000000],[1776209298000,11.00000000],[1776209552000,10.92000000],[1776209874000,10.82000000],[1776210196000,10.75000000],[1776210451000,10.66000000],[1776210771000,10.58000000],[1776211091000,10.50000000],[1776211411000,10.57500000],[1776211667000,10.52000000],[1776211987000,10.48000000],[1776212309000,10.40000000],[1776212564000,10.32000000],[1776212884000,10.32000000],[1776213202000,10.40000000],[1776213458000,10.34000000],[1776213778000,10.30000000],[1776214098000,10.22500000],[1776214354000,10.34000000],[1776214674000,10.40000000],[1776214994000,10.47500000],[1776215250000,10.36000000],[1776215570000,10.24000000],[1776215890000,10.20000000],[1776216210000,10.17500000],[1776216467000,10.12000000],[1776216788000,10.20000000],[1776217060000,10.16000000],[1776217379000,10.10000000],[1776217699000,10.10000000],[1776217955000,10.10000000],[1776218275000,10.02000000],[1776218595000,10.07500000],[1776218851000,10.06000000],[1776219171000,10.08000000],[1776219491000,10.00000000],[1776219812000,10.00000000],[1776220067000,10.08000000],[1776220387000,10.00000000],[1776220707000,10.07500000],[1776220963000,10.10000000],[1776221283000,9.98000000],[1776221603000,9.90000000],[1776221859000,9.90000000],[1776222179000,9.80000000],[1776222499000,9.80000000],[1776222755000,9.80000000],[1776223075000,9.72000000],[1776223395000,9.72500000],[1776223651000,9.78000000],[1776223986000,9.54000000],[1776224306000,9.50000000],[1776224562000,9.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1776204050000,9],[1776204178000,8.8],[1776204498000,8.9],[1776204754000,9.2],[1776205074000,9.1],[1776205394000,9.2],[1776205650000,9.2],[1776205970000,9.4],[1776206290000,9.3],[1776206610000,9],[1776206866000,9.3],[1776207186000,9.2],[1776207506000,9.4],[1776207762000,9.5],[1776208082000,9.5],[1776208402000,9.5],[1776208651000,9.5],[1776208978000,9.5],[1776209298000,9.4],[1776209552000,9.5],[1776209874000,9.5],[1776210196000,9.5],[1776210451000,9.5],[1776210771000,9.5],[1776211091000,9.6],[1776211411000,9.6],[1776211667000,9.6],[1776211987000,9.5],[1776212309000,9.5],[1776212564000,9.5],[1776212884000,9.5],[1776213202000,9.6],[1776213458000,9.6],[1776213778000,9.5],[1776214098000,9.5],[1776214354000,9.7],[1776214674000,9.8],[1776214994000,9.9],[1776215250000,9.7],[1776215570000,9.6],[1776215890000,9.6],[1776216210000,9.6],[1776216467000,9.5],[1776216788000,9.6],[1776217060000,9.5],[1776217379000,9.5],[1776217699000,9.5],[1776217955000,9.5],[1776218275000,9.4],[1776218595000,9.5],[1776218851000,9.5],[1776219171000,9.6],[1776219491000,9.5],[1776219812000,9.5],[1776220067000,9.6],[1776220387000,9.5],[1776220707000,9.6],[1776220963000,9.6],[1776221283000,9.5],[1776221603000,9.4],[1776221859000,9.4],[1776222179000,9.3],[1776222499000,9.3],[1776222755000,9.3],[1776223075000,9.3],[1776223395000,9.3],[1776223651000,9.3],[1776223986000,9.1],[1776224306000,9],[1776224562000,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: [[1776204050000,82.00000000],[1776204178000,81.00000000],[1776204498000,80.50000000],[1776204754000,82.00000000],[1776205074000,82.40000000],[1776205394000,83.50000000],[1776205650000,84.20000000],[1776205970000,86.00000000],[1776206290000,86.40000000],[1776206610000,85.00000000],[1776206866000,85.80000000],[1776207186000,86.00000000],[1776207506000,87.00000000],[1776207762000,87.60000000],[1776208082000,88.20000000],[1776208402000,89.00000000],[1776208651000,89.20000000],[1776208978000,90.00000000],[1776209298000,90.00000000],[1776209552000,91.00000000],[1776209874000,91.80000000],[1776210196000,92.00000000],[1776210451000,92.80000000],[1776210771000,93.20000000],[1776211091000,94.00000000],[1776211411000,94.00000000],[1776211667000,94.00000000],[1776211987000,94.00000000],[1776212309000,94.00000000],[1776212564000,94.80000000],[1776212884000,95.00000000],[1776213202000,95.00000000],[1776213458000,95.00000000],[1776213778000,95.00000000],[1776214098000,95.25000000],[1776214354000,96.00000000],[1776214674000,96.00000000],[1776214994000,96.00000000],[1776215250000,96.00000000],[1776215570000,96.00000000],[1776215890000,96.00000000],[1776216210000,96.00000000],[1776216467000,96.00000000],[1776216788000,96.00000000],[1776217060000,96.00000000],[1776217379000,96.00000000],[1776217699000,96.00000000],[1776217955000,96.00000000],[1776218275000,96.00000000],[1776218595000,96.00000000],[1776218851000,96.60000000],[1776219171000,96.60000000],[1776219491000,97.00000000],[1776219812000,97.00000000],[1776220067000,97.00000000],[1776220387000,97.00000000],[1776220707000,97.00000000],[1776220963000,97.00000000],[1776221283000,97.00000000],[1776221603000,97.00000000],[1776221859000,97.00000000],[1776222179000,97.00000000],[1776222499000,97.00000000],[1776222755000,97.00000000],[1776223075000,97.00000000],[1776223395000,97.00000000],[1776223651000,97.00000000],[1776223986000,97.00000000],[1776224306000,97.00000000],[1776224562000,97.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: [[1776204050000,1022.8],[1776204178000,1022.9],[1776204498000,1022.9],[1776204754000,1022.8],[1776205074000,1022.9],[1776205394000,1022.9],[1776205650000,1022.9],[1776205970000,1023],[1776206290000,1023],[1776206610000,1023],[1776206866000,1023],[1776207186000,1023],[1776207506000,1022.9],[1776207762000,1023.1],[1776208082000,1023.2],[1776208402000,1023.1],[1776208651000,1023.1],[1776208978000,1023.2],[1776209298000,1023.1],[1776209552000,1023],[1776209874000,1023],[1776210196000,1023],[1776210451000,1023],[1776210771000,1023],[1776211091000,1022.9],[1776211411000,1023],[1776211667000,1022.9],[1776211987000,1022.9],[1776212309000,1022.8],[1776212564000,1022.8],[1776212884000,1022.9],[1776213202000,1022.9],[1776213458000,1022.9],[1776213778000,1022.8],[1776214098000,1022.9],[1776214354000,1022.9],[1776214674000,1023.1],[1776214994000,1023.2],[1776215250000,1023.2],[1776215570000,1023.2],[1776215890000,1023.1],[1776216210000,1023],[1776216467000,1023],[1776216788000,1023.1],[1776217060000,1023.1],[1776217379000,1023.1],[1776217699000,1023],[1776217955000,1023.1],[1776218275000,1023],[1776218595000,1023.1],[1776218851000,1023],[1776219171000,1023],[1776219491000,1023.1],[1776219812000,1023],[1776220067000,1023],[1776220387000,1022.9],[1776220707000,1022.9],[1776220963000,1022.9],[1776221283000,1022.9],[1776221603000,1022.9],[1776221859000,1023],[1776222179000,1023],[1776222499000,1023],[1776222755000,1023],[1776223075000,1023],[1776223395000,1023],[1776223651000,1023],[1776223986000,1022.9],[1776224306000,1022.9],[1776224562000,1022.7],], 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: [[1776204050000,0.72],[1776204178000,0.648],[1776204498000,0],[1776204754000,0.792],[1776205074000,0.288],[1776205394000,0],[1776205650000,0],[1776205970000,0],[1776206290000,0.36],[1776206610000,0],[1776206866000,0],[1776207186000,0.432],[1776207506000,0],[1776207762000,0.072],[1776208082000,0],[1776208402000,0.54],[1776208651000,0],[1776208978000,0],[1776209298000,0],[1776209552000,0],[1776209874000,0],[1776210196000,0],[1776210451000,0],[1776210771000,0],[1776211091000,0],[1776211411000,0],[1776211667000,0],[1776211987000,0],[1776212309000,0],[1776212564000,0],[1776212884000,0],[1776213202000,0],[1776213458000,0],[1776213778000,0],[1776214098000,0],[1776214354000,0],[1776214674000,0],[1776214994000,0],[1776215250000,0],[1776215570000,0],[1776215890000,0],[1776216210000,0],[1776216467000,0],[1776216788000,0],[1776217060000,0],[1776217379000,0],[1776217699000,0],[1776217955000,0],[1776218275000,0],[1776218595000,0],[1776218851000,0],[1776219171000,0],[1776219491000,0],[1776219812000,0],[1776220067000,0],[1776220387000,0],[1776220707000,0],[1776220963000,0],[1776221283000,0],[1776221603000,0],[1776221859000,0],[1776222179000,0],[1776222499000,0],[1776222755000,0],[1776223075000,0],[1776223395000,0],[1776223651000,0],[1776223986000,0],[1776224306000,0],[1776224562000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1776204050000,1.26],[1776204178000,1.512],[1776204498000,0],[1776204754000,1.008],[1776205074000,0.504],[1776205394000,0],[1776205650000,0],[1776205970000,0],[1776206290000,1.008],[1776206610000,0],[1776206866000,0],[1776207186000,1.512],[1776207506000,0],[1776207762000,0.504],[1776208082000,0],[1776208402000,0.63],[1776208651000,0],[1776208978000,0],[1776209298000,0],[1776209552000,0],[1776209874000,0],[1776210196000,0],[1776210451000,0],[1776210771000,0],[1776211091000,0],[1776211411000,0],[1776211667000,0],[1776211987000,0],[1776212309000,0],[1776212564000,0],[1776212884000,0],[1776213202000,0],[1776213458000,0],[1776213778000,0],[1776214098000,0],[1776214354000,0],[1776214674000,0],[1776214994000,0],[1776215250000,0],[1776215570000,0],[1776215890000,0],[1776216210000,0],[1776216467000,0],[1776216788000,0],[1776217060000,0],[1776217379000,0],[1776217699000,0],[1776217955000,0],[1776218275000,0],[1776218595000,0],[1776218851000,0],[1776219171000,0],[1776219491000,0],[1776219812000,0],[1776220067000,0],[1776220387000,0],[1776220707000,0],[1776220963000,0],[1776221283000,0],[1776221603000,0],[1776221859000,0],[1776222179000,0],[1776222499000,0],[1776222755000,0],[1776223075000,0],[1776223395000,0],[1776223651000,0],[1776223986000,0],[1776224306000,0],[1776224562000,0],], 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: [[1776204050000,332.00000000],[1776204178000,121.20000000],[1776204498000,343.00000000],[1776204754000,316.00000000],[1776205074000,332.40000000],[1776205394000,334.00000000],[1776205650000,338.60000000],[1776205970000,339.00000000],[1776206290000,340.00000000],[1776206610000,90.50000000],[1776206866000,143.80000000],[1776207186000,348.60000000],[1776207506000,337.75000000],[1776207762000,328.40000000],[1776208082000,332.00000000],[1776208402000,331.75000000],[1776208651000,331.40000000],[1776208978000,332.40000000],[1776209298000,333.00000000],[1776209552000,333.20000000],[1776209874000,334.00000000],[1776210196000,334.00000000],[1776210451000,334.00000000],[1776210771000,334.40000000],[1776211091000,333.40000000],[1776211411000,332.25000000],[1776211667000,334.20000000],[1776211987000,334.40000000],[1776212309000,334.00000000],[1776212564000,334.00000000],[1776212884000,334.60000000],[1776213202000,334.50000000],[1776213458000,335.00000000],[1776213778000,334.80000000],[1776214098000,333.75000000],[1776214354000,332.60000000],[1776214674000,332.40000000],[1776214994000,333.75000000],[1776215250000,334.20000000],[1776215570000,334.00000000],[1776215890000,334.00000000],[1776216210000,334.00000000],[1776216467000,334.00000000],[1776216788000,334.00000000],[1776217060000,334.00000000],[1776217379000,334.40000000],[1776217699000,334.25000000],[1776217955000,334.20000000],[1776218275000,334.00000000],[1776218595000,334.00000000],[1776218851000,334.00000000],[1776219171000,334.00000000],[1776219491000,334.00000000],[1776219812000,334.00000000],[1776220067000,334.00000000],[1776220387000,334.00000000],[1776220707000,332.75000000],[1776220963000,333.60000000],[1776221283000,334.40000000],[1776221603000,334.00000000],[1776221859000,334.00000000],[1776222179000,334.00000000],[1776222499000,334.00000000],[1776222755000,334.40000000],[1776223075000,334.00000000],[1776223395000,334.00000000],[1776223651000,335.00000000],[1776223986000,335.00000000],[1776224306000,335.00000000],[1776224562000,334.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: [[1776204050000,0.00000000],[1776204178000,0.00000000],[1776204498000,0.00000000],[1776204754000,0.00000000],[1776205074000,0.00000000],[1776205394000,0.00000000],[1776205650000,0.00000000],[1776205970000,0.00000000],[1776206290000,0.00000000],[1776206610000,0.00000000],[1776206866000,0.00000000],[1776207186000,0.00000000],[1776207506000,0.00000000],[1776207762000,0.00000000],[1776208082000,0.00000000],[1776208402000,0.00000000],[1776208651000,0.00000000],[1776208978000,0.00000000],[1776209298000,0.00000000],[1776209552000,0.00000000],[1776209874000,0.00000000],[1776210196000,0.00000000],[1776210451000,0.00000000],[1776210771000,0.00000000],[1776211091000,0.00000000],[1776211411000,0.00000000],[1776211667000,0.00000000],[1776211987000,0.00000000],[1776212309000,0.00000000],[1776212564000,0.00000000],[1776212884000,0.00000000],[1776213202000,0.00000000],[1776213458000,0.00000000],[1776213778000,0.00000000],[1776214098000,0.00000000],[1776214354000,0.00000000],[1776214674000,0.00000000],[1776214994000,0.00000000],[1776215250000,0.00000000],[1776215570000,0.00000000],[1776215890000,0.00000000],[1776216210000,0.00000000],[1776216467000,0.00000000],[1776216788000,0.00000000],[1776217060000,0.00000000],[1776217379000,0.00000000],[1776217699000,0.00000000],[1776217955000,0.00000000],[1776218275000,0.00000000],[1776218595000,0.00000000],[1776218851000,0.00000000],[1776219171000,0.00000000],[1776219491000,0.00000000],[1776219812000,0.00000000],[1776220067000,0.00000000],[1776220387000,0.00000000],[1776220707000,0.00000000],[1776220963000,0.00000000],[1776221283000,0.00000000],[1776221603000,0.00000000],[1776221859000,0.00000000],[1776222179000,0.00000000],[1776222499000,0.00000000],[1776222755000,0.00000000],[1776223075000,0.00000000],[1776223395000,0.00000000],[1776223651000,0.00000000],[1776223986000,0.00000000],[1776224306000,0.00000000],[1776224562000,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: 'UV žiarenie', data: [[1776204050000,0.00000000],[1776204178000,0.00000000],[1776204498000,0.00000000],[1776204754000,0.00000000],[1776205074000,0.00000000],[1776205394000,0.00000000],[1776205650000,0.00000000],[1776205970000,0.00000000],[1776206290000,0.00000000],[1776206610000,0.00000000],[1776206866000,0.00000000],[1776207186000,0.00000000],[1776207506000,0.00000000],[1776207762000,0.00000000],[1776208082000,0.00000000],[1776208402000,0.00000000],[1776208651000,0.00000000],[1776208978000,0.00000000],[1776209298000,0.00000000],[1776209552000,0.00000000],[1776209874000,0.00000000],[1776210196000,0.00000000],[1776210451000,0.00000000],[1776210771000,0.00000000],[1776211091000,0.00000000],[1776211411000,0.00000000],[1776211667000,0.00000000],[1776211987000,0.00000000],[1776212309000,0.00000000],[1776212564000,0.00000000],[1776212884000,0.00000000],[1776213202000,0.00000000],[1776213458000,0.00000000],[1776213778000,0.00000000],[1776214098000,0.00000000],[1776214354000,0.00000000],[1776214674000,0.00000000],[1776214994000,0.00000000],[1776215250000,0.00000000],[1776215570000,0.00000000],[1776215890000,0.00000000],[1776216210000,0.00000000],[1776216467000,0.00000000],[1776216788000,0.00000000],[1776217060000,0.00000000],[1776217379000,0.00000000],[1776217699000,0.00000000],[1776217955000,0.00000000],[1776218275000,0.00000000],[1776218595000,0.00000000],[1776218851000,0.00000000],[1776219171000,0.00000000],[1776219491000,0.00000000],[1776219812000,0.00000000],[1776220067000,0.00000000],[1776220387000,0.00000000],[1776220707000,0.00000000],[1776220963000,0.00000000],[1776221283000,0.00000000],[1776221603000,0.00000000],[1776221859000,0.00000000],[1776222179000,0.00000000],[1776222499000,0.00000000],[1776222755000,0.00000000],[1776223075000,0.00000000],[1776223395000,0.00000000],[1776223651000,0.00000000],[1776223986000,0.00000000],[1776224306000,0.00000000],[1776224562000,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: [[1776204050000,0.00000000],[1776204178000,0.00000000],[1776204498000,0.00000000],[1776204754000,0.00000000],[1776205074000,0.00000000],[1776205394000,0.00000000],[1776205650000,0.00000000],[1776205970000,0.00000000],[1776206290000,0.00000000],[1776206610000,0.00000000],[1776206866000,0.00000000],[1776207186000,0.00000000],[1776207506000,0.00000000],[1776207762000,0.00000000],[1776208082000,0.00000000],[1776208402000,0.00000000],[1776208651000,0.00000000],[1776208978000,0.00000000],[1776209298000,0.00000000],[1776209552000,0.00000000],[1776209874000,0.00000000],[1776210196000,0.00000000],[1776210451000,0.16240000],[1776210771000,0.20300000],[1776211091000,0.20300000],[1776211411000,0.20300000],[1776211667000,0.20300000],[1776211987000,0.20300000],[1776212309000,0.20300000],[1776212564000,0.20300000],[1776212884000,0.20300000],[1776213202000,0.20300000],[1776213458000,0.20300000],[1776213778000,0.20300000],[1776214098000,0.20300000],[1776214354000,0.20300000],[1776214674000,0.20300000],[1776214994000,0.20300000],[1776215250000,0.20300000],[1776215570000,0.20300000],[1776215890000,0.20300000],[1776216210000,0.20300000],[1776216467000,0.20300000],[1776216788000,0.20300000],[1776217060000,0.20300000],[1776217379000,0.20300000],[1776217699000,0.20300000],[1776217955000,0.20300000],[1776218275000,0.20300000],[1776218595000,0.20300000],[1776218851000,0.20300000],[1776219171000,0.20300000],[1776219491000,0.20300000],[1776219812000,0.20300000],[1776220067000,0.20300000],[1776220387000,0.20300000],[1776220707000,0.20300000],[1776220963000,0.20300000],[1776221283000,0.20300000],[1776221603000,0.20300000],[1776221859000,0.20300000],[1776222179000,0.20300000],[1776222499000,0.20300000],[1776222755000,0.20300000],[1776223075000,0.20300000],[1776223395000,0.20300000],[1776223651000,0.20300000],[1776223986000,0.20300000],[1776224306000,0.20300000],[1776224562000,0.20300000],], 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; }