var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1773270040000,5.75000000],[1773270168000,5.62000000],[1773270489000,5.64000000],[1773270809000,5.55000000],[1773271065000,5.42000000],[1773271384000,5.40000000],[1773271705000,5.50000000],[1773271960000,5.66000000],[1773272280000,5.80000000],[1773272600000,5.85000000],[1773272856000,5.90000000],[1773273176000,6.26000000],[1773273497000,6.55000000],[1773273752000,6.86000000],[1773274073000,6.86000000],[1773274393000,6.94000000],[1773274712000,7.00000000],[1773274952000,6.94000000],[1773275257000,6.90000000],[1773275577000,6.22000000],[1773275897000,5.57500000],[1773276153000,5.46000000],[1773276474000,5.40000000],[1773276793000,5.40000000],[1773277113000,5.30000000],[1773277369000,5.10000000],[1773277689000,4.92000000],[1773278009000,4.82500000],[1773278265000,4.74000000],[1773278585000,4.58000000],[1773278905000,4.42500000],[1773279161000,4.24000000],[1773279481000,4.10000000],[1773279801000,4.02500000],[1773280057000,3.86000000],[1773280377000,3.68000000],[1773280698000,3.60000000],[1773280953000,3.46000000],[1773281273000,3.34000000],[1773281593000,3.30000000],[1773281912000,3.25000000],[1773282169000,3.20000000],[1773282490000,3.20000000],[1773282809000,3.20000000],[1773283065000,3.14000000],[1773283385000,3.06000000],[1773283705000,2.92500000],[1773283961000,2.90000000],[1773284281000,2.86000000],[1773284601000,2.80000000],[1773284857000,2.76000000],[1773285177000,2.64000000],[1773285497000,2.52500000],[1773285752000,2.50000000],[1773286073000,2.40000000],[1773286393000,2.40000000],[1773286712000,2.40000000],[1773286969000,2.44000000],[1773287290000,2.42000000],[1773287609000,2.37500000],[1773287865000,2.22000000],[1773288185000,2.52000000],[1773288506000,2.70000000],[1773288761000,2.68000000],[1773289081000,2.50000000],[1773289402000,2.37500000],[1773289658000,2.16000000],[1773289977000,2.12000000],[1773290297000,2.27500000],[1773290552000,2.30000000],[1773290873000,2.30000000],[1773291197000,2.30000000],[1773291465000,2.22000000],[1773291785000,2.28000000],[1773292105000,2.20000000],[1773292361000,2.10000000],[1773292681000,2.04000000],[1773293001000,1.90000000],[1773293257000,1.92000000],[1773293577000,2.06000000],[1773293897000,2.20000000],[1773294152000,2.36000000],[1773294457000,2.40000000],[1773294777000,2.46000000],[1773295097000,2.55000000],[1773295353000,2.62000000],[1773295673000,3.06000000],[1773295993000,3.22000000],[1773296313000,3.20000000],[1773296569000,3.50000000],[1773296889000,4.08000000],[1773297210000,4.77500000],[1773297466000,4.76000000],[1773297785000,5.10000000],[1773298106000,5.55000000],[1773298361000,5.92000000],[1773298681000,6.26000000],[1773299001000,6.57500000],[1773299258000,6.84000000],[1773299577000,7.20000000],[1773299897000,7.55000000],[1773300153000,7.86000000],[1773300475000,8.18000000],[1773300793000,8.07500000],[1773301050000,8.02000000],[1773301369000,8.34000000],[1773301690000,8.68000000],[1773302010000,8.92500000],[1773302265000,9.16000000],[1773302601000,9.65000000],[1773302852000,9.90000000],[1773303177000,10.22000000],[1773303497000,10.75000000],[1773303752000,10.86000000],[1773304072000,11.34000000],[1773304392000,11.40000000],[1773304712000,11.42500000],[1773304952000,12.00000000],[1773305252000,12.38000000],[1773305576000,12.26000000],[1773305897000,12.27500000],[1773306153000,12.66000000],[1773306473000,13.22000000],[1773306793000,13.37500000],[1773307065000,13.30000000],[1773307385000,13.46000000],[1773307705000,13.57500000],[1773307961000,13.76000000],[1773308281000,14.10000000],[1773308601000,14.15000000],[1773308858000,14.16000000],[1773309177000,14.30000000],[1773309497000,14.95000000],[1773309753000,15.06000000],[1773310073000,15.50000000],[1773310393000,16.13333333],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1773270040000,3.2],[1773270168000,3.2],[1773270489000,3.3],[1773270809000,3.2],[1773271065000,3.1],[1773271384000,3.2],[1773271705000,3.2],[1773271960000,3.3],[1773272280000,3.4],[1773272600000,3.5],[1773272856000,3.5],[1773273176000,3.9],[1773273497000,4],[1773273752000,4.2],[1773274073000,4.2],[1773274393000,4.4],[1773274712000,4.4],[1773274952000,4.4],[1773275257000,4.3],[1773275577000,3.6],[1773275897000,3.2],[1773276153000,3.2],[1773276474000,3.4],[1773276793000,3.4],[1773277113000,3.3],[1773277369000,3.1],[1773277689000,2.9],[1773278009000,3],[1773278265000,2.9],[1773278585000,2.7],[1773278905000,2.6],[1773279161000,2.5],[1773279481000,2.4],[1773279801000,2.4],[1773280057000,2.3],[1773280377000,2.2],[1773280698000,2.1],[1773280953000,2],[1773281273000,1.9],[1773281593000,2],[1773281912000,1.9],[1773282169000,1.9],[1773282490000,1.9],[1773282809000,2],[1773283065000,1.9],[1773283385000,1.9],[1773283705000,1.7],[1773283961000,1.7],[1773284281000,1.7],[1773284601000,1.7],[1773284857000,1.7],[1773285177000,1.6],[1773285497000,1.5],[1773285752000,1.5],[1773286073000,1.4],[1773286393000,1.4],[1773286712000,1.4],[1773286969000,1.5],[1773287290000,1.4],[1773287609000,1.5],[1773287865000,1.3],[1773288185000,1.6],[1773288506000,1.8],[1773288761000,1.8],[1773289081000,1.6],[1773289402000,1.5],[1773289658000,1.3],[1773289977000,1.3],[1773290297000,1.5],[1773290552000,1.5],[1773290873000,1.6],[1773291197000,1.6],[1773291465000,1.5],[1773291785000,1.6],[1773292105000,1.5],[1773292361000,1.4],[1773292681000,1.3],[1773293001000,1.2],[1773293257000,1.2],[1773293577000,1.3],[1773293897000,1.5],[1773294152000,1.6],[1773294457000,1.7],[1773294777000,1.7],[1773295097000,1.8],[1773295353000,1.9],[1773295673000,2.3],[1773295993000,2.4],[1773296313000,2.3],[1773296569000,2.5],[1773296889000,3],[1773297210000,3.6],[1773297466000,3.4],[1773297785000,3.6],[1773298106000,3.9],[1773298361000,4.1],[1773298681000,4.4],[1773299001000,4.5],[1773299258000,4.6],[1773299577000,4.9],[1773299897000,5],[1773300153000,5.2],[1773300475000,5.3],[1773300793000,5.2],[1773301050000,5.3],[1773301369000,5.4],[1773301690000,5.6],[1773302010000,5.7],[1773302265000,5.7],[1773302601000,6],[1773302852000,6.1],[1773303177000,6.2],[1773303497000,6.5],[1773303752000,6.6],[1773304072000,6.7],[1773304392000,6.9],[1773304712000,6.8],[1773304952000,7.1],[1773305252000,7.2],[1773305576000,7.1],[1773305897000,7.2],[1773306153000,7.1],[1773306473000,7.4],[1773306793000,7.4],[1773307065000,7.5],[1773307385000,7.4],[1773307705000,7.5],[1773307961000,7.4],[1773308281000,7.6],[1773308601000,7.5],[1773308858000,7.6],[1773309177000,7.5],[1773309497000,7.9],[1773309753000,7.5],[1773310073000,7.8],[1773310393000,8.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: [[1773270040000,84.00000000],[1773270168000,84.60000000],[1773270489000,85.00000000],[1773270809000,85.00000000],[1773271065000,85.00000000],[1773271384000,85.60000000],[1773271705000,85.50000000],[1773271960000,85.20000000],[1773272280000,85.00000000],[1773272600000,85.00000000],[1773272856000,85.00000000],[1773273176000,85.20000000],[1773273497000,84.00000000],[1773273752000,83.60000000],[1773274073000,83.60000000],[1773274393000,84.00000000],[1773274712000,84.00000000],[1773274952000,84.00000000],[1773275257000,83.80000000],[1773275577000,83.40000000],[1773275897000,84.75000000],[1773276153000,85.80000000],[1773276474000,86.80000000],[1773276793000,87.00000000],[1773277113000,87.00000000],[1773277369000,87.00000000],[1773277689000,87.20000000],[1773278009000,88.00000000],[1773278265000,88.00000000],[1773278585000,88.00000000],[1773278905000,88.00000000],[1773279161000,88.80000000],[1773279481000,89.00000000],[1773279801000,89.00000000],[1773280057000,89.40000000],[1773280377000,90.00000000],[1773280698000,90.00000000],[1773280953000,90.00000000],[1773281273000,90.40000000],[1773281593000,91.00000000],[1773281912000,91.00000000],[1773282169000,91.00000000],[1773282490000,91.60000000],[1773282809000,92.00000000],[1773283065000,92.00000000],[1773283385000,92.00000000],[1773283705000,92.00000000],[1773283961000,92.00000000],[1773284281000,92.00000000],[1773284601000,92.25000000],[1773284857000,93.00000000],[1773285177000,93.00000000],[1773285497000,93.00000000],[1773285752000,93.00000000],[1773286073000,93.00000000],[1773286393000,93.00000000],[1773286712000,93.00000000],[1773286969000,93.80000000],[1773287290000,93.20000000],[1773287609000,93.75000000],[1773287865000,93.40000000],[1773288185000,94.00000000],[1773288506000,94.00000000],[1773288761000,94.00000000],[1773289081000,94.00000000],[1773289402000,94.00000000],[1773289658000,94.00000000],[1773289977000,94.20000000],[1773290297000,95.00000000],[1773290552000,94.60000000],[1773290873000,95.00000000],[1773291197000,95.00000000],[1773291465000,95.00000000],[1773291785000,95.00000000],[1773292105000,95.00000000],[1773292361000,95.00000000],[1773292681000,95.00000000],[1773293001000,95.00000000],[1773293257000,95.00000000],[1773293577000,95.00000000],[1773293897000,95.00000000],[1773294152000,95.00000000],[1773294457000,95.00000000],[1773294777000,95.00000000],[1773295097000,95.00000000],[1773295353000,95.00000000],[1773295673000,95.00000000],[1773295993000,94.20000000],[1773296313000,94.00000000],[1773296569000,93.00000000],[1773296889000,93.00000000],[1773297210000,92.00000000],[1773297466000,90.80000000],[1773297785000,90.00000000],[1773298106000,89.50000000],[1773298361000,88.20000000],[1773298681000,87.80000000],[1773299001000,87.00000000],[1773299258000,86.00000000],[1773299577000,85.40000000],[1773299897000,84.00000000],[1773300153000,83.20000000],[1773300475000,82.40000000],[1773300793000,82.50000000],[1773301050000,83.00000000],[1773301369000,82.00000000],[1773301690000,81.20000000],[1773302010000,80.25000000],[1773302265000,79.40000000],[1773302601000,78.00000000],[1773302852000,77.40000000],[1773303177000,76.60000000],[1773303497000,75.00000000],[1773303752000,75.20000000],[1773304072000,73.40000000],[1773304392000,74.00000000],[1773304712000,73.50000000],[1773304952000,72.20000000],[1773305252000,70.80000000],[1773305576000,71.00000000],[1773305897000,71.25000000],[1773306153000,69.20000000],[1773306473000,68.20000000],[1773306793000,67.50000000],[1773307065000,68.00000000],[1773307385000,67.20000000],[1773307705000,67.00000000],[1773307961000,65.80000000],[1773308281000,65.20000000],[1773308601000,64.50000000],[1773308858000,64.80000000],[1773309177000,64.00000000],[1773309497000,62.75000000],[1773309753000,61.00000000],[1773310073000,60.40000000],[1773310393000,60.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: [[1773270040000,1021.5],[1773270168000,1021.5],[1773270489000,1021.4],[1773270809000,1021.5],[1773271065000,1021.5],[1773271384000,1021.4],[1773271705000,1021.5],[1773271960000,1021.5],[1773272280000,1021.5],[1773272600000,1021.5],[1773272856000,1021.4],[1773273176000,1021.4],[1773273497000,1021.4],[1773273752000,1021.4],[1773274073000,1021.4],[1773274393000,1021.4],[1773274712000,1021.5],[1773274952000,1021.4],[1773275257000,1021.3],[1773275577000,1021.4],[1773275897000,1021.3],[1773276153000,1021.4],[1773276474000,1021.3],[1773276793000,1021.3],[1773277113000,1021.3],[1773277369000,1021.3],[1773277689000,1021.4],[1773278009000,1021.4],[1773278265000,1021.4],[1773278585000,1021.4],[1773278905000,1021.4],[1773279161000,1021.4],[1773279481000,1021.3],[1773279801000,1021.4],[1773280057000,1021.5],[1773280377000,1021.5],[1773280698000,1021.6],[1773280953000,1021.6],[1773281273000,1021.6],[1773281593000,1021.6],[1773281912000,1021.6],[1773282169000,1021.6],[1773282490000,1021.7],[1773282809000,1021.6],[1773283065000,1021.7],[1773283385000,1021.7],[1773283705000,1021.8],[1773283961000,1021.7],[1773284281000,1021.8],[1773284601000,1021.8],[1773284857000,1021.8],[1773285177000,1021.8],[1773285497000,1022],[1773285752000,1021.9],[1773286073000,1021.9],[1773286393000,1021.8],[1773286712000,1021.8],[1773286969000,1021.9],[1773287290000,1021.9],[1773287609000,1021.8],[1773287865000,1022],[1773288185000,1021.9],[1773288506000,1021.9],[1773288761000,1022],[1773289081000,1022],[1773289402000,1022.1],[1773289658000,1022.2],[1773289977000,1022.3],[1773290297000,1022.3],[1773290552000,1022.4],[1773290873000,1022.4],[1773291197000,1022.4],[1773291465000,1022.6],[1773291785000,1022.6],[1773292105000,1022.6],[1773292361000,1022.6],[1773292681000,1022.5],[1773293001000,1022.7],[1773293257000,1022.7],[1773293577000,1022.7],[1773293897000,1022.7],[1773294152000,1022.6],[1773294457000,1022.7],[1773294777000,1022.8],[1773295097000,1022.9],[1773295353000,1022.9],[1773295673000,1023.1],[1773295993000,1023.2],[1773296313000,1023.4],[1773296569000,1023.3],[1773296889000,1023.3],[1773297210000,1023.4],[1773297466000,1023.6],[1773297785000,1023.5],[1773298106000,1023.6],[1773298361000,1023.6],[1773298681000,1023.7],[1773299001000,1023.6],[1773299258000,1023.7],[1773299577000,1023.7],[1773299897000,1023.8],[1773300153000,1023.9],[1773300475000,1023.9],[1773300793000,1024],[1773301050000,1023.9],[1773301369000,1024],[1773301690000,1024.1],[1773302010000,1024.1],[1773302265000,1024.1],[1773302601000,1024],[1773302852000,1024],[1773303177000,1024.1],[1773303497000,1024],[1773303752000,1024],[1773304072000,1024],[1773304392000,1024.1],[1773304712000,1024.1],[1773304952000,1024],[1773305252000,1024],[1773305576000,1024.1],[1773305897000,1024.1],[1773306153000,1024.1],[1773306473000,1024.1],[1773306793000,1024.1],[1773307065000,1024.1],[1773307385000,1024.1],[1773307705000,1024.1],[1773307961000,1024.1],[1773308281000,1024],[1773308601000,1024.1],[1773308858000,1024.2],[1773309177000,1024],[1773309497000,1024],[1773309753000,1024],[1773310073000,1024],[1773310393000,1023.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: [[1773270040000,1.8],[1773270168000,0.72],[1773270489000,1.08],[1773270809000,0.63],[1773271065000,0.144],[1773271384000,0],[1773271705000,0],[1773271960000,0.072],[1773272280000,0],[1773272600000,0],[1773272856000,0],[1773273176000,0.504],[1773273497000,0.81],[1773273752000,1.224],[1773274073000,1.584],[1773274393000,0.072],[1773274712000,0.09],[1773274952000,0],[1773275257000,0.36],[1773275577000,1.512],[1773275897000,0.09],[1773276153000,0],[1773276474000,0],[1773276793000,0],[1773277113000,0],[1773277369000,0],[1773277689000,0],[1773278009000,0],[1773278265000,0],[1773278585000,0],[1773278905000,0],[1773279161000,0],[1773279481000,0],[1773279801000,0],[1773280057000,0.288],[1773280377000,0],[1773280698000,0],[1773280953000,0],[1773281273000,0],[1773281593000,0],[1773281912000,0],[1773282169000,0],[1773282490000,0],[1773282809000,0],[1773283065000,0],[1773283385000,0],[1773283705000,0],[1773283961000,0],[1773284281000,0],[1773284601000,0],[1773284857000,0],[1773285177000,0],[1773285497000,0],[1773285752000,0],[1773286073000,0],[1773286393000,0],[1773286712000,0],[1773286969000,0],[1773287290000,0],[1773287609000,0],[1773287865000,0],[1773288185000,0],[1773288506000,0],[1773288761000,0],[1773289081000,0],[1773289402000,0],[1773289658000,0],[1773289977000,0],[1773290297000,0],[1773290552000,0],[1773290873000,0],[1773291197000,0],[1773291465000,0],[1773291785000,0],[1773292105000,0],[1773292361000,0],[1773292681000,0],[1773293001000,0],[1773293257000,0],[1773293577000,0],[1773293897000,0],[1773294152000,0],[1773294457000,0],[1773294777000,0],[1773295097000,0],[1773295353000,0.576],[1773295673000,2.952],[1773295993000,4.824],[1773296313000,4.77],[1773296569000,2.808],[1773296889000,0.432],[1773297210000,2.43],[1773297466000,4.392],[1773297785000,1.872],[1773298106000,0.09],[1773298361000,2.736],[1773298681000,1.872],[1773299001000,2.34],[1773299258000,3.096],[1773299577000,0.864],[1773299897000,2.16],[1773300153000,2.376],[1773300475000,2.592],[1773300793000,7.02],[1773301050000,5.472],[1773301369000,5.616],[1773301690000,4.32],[1773302010000,5.67],[1773302265000,3.528],[1773302601000,2.61],[1773302852000,4.032],[1773303177000,1.512],[1773303497000,2.52],[1773303752000,4.464],[1773304072000,2.592],[1773304392000,4.032],[1773304712000,3.87],[1773304952000,2.16],[1773305252000,2.592],[1773305576000,3.528],[1773305897000,3.15],[1773306153000,1.8],[1773306473000,2.808],[1773306793000,4.05],[1773307065000,3.96],[1773307385000,2.592],[1773307705000,4.32],[1773307961000,2.952],[1773308281000,4.464],[1773308601000,2.88],[1773308858000,4.392],[1773309177000,2.16],[1773309497000,2.79],[1773309753000,2.736],[1773310073000,2.448],[1773310393000,1.44],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1773270040000,2.52],[1773270168000,2.016],[1773270489000,2.52],[1773270809000,1.26],[1773271065000,1.008],[1773271384000,0],[1773271705000,0],[1773271960000,0.504],[1773272280000,0],[1773272600000,0],[1773272856000,0],[1773273176000,1.512],[1773273497000,2.52],[1773273752000,2.016],[1773274073000,2.52],[1773274393000,0.504],[1773274712000,0.63],[1773274952000,0],[1773275257000,1.008],[1773275577000,2.016],[1773275897000,0.63],[1773276153000,0],[1773276474000,0],[1773276793000,0],[1773277113000,0],[1773277369000,0],[1773277689000,0],[1773278009000,0],[1773278265000,0],[1773278585000,0],[1773278905000,0],[1773279161000,0],[1773279481000,0],[1773279801000,0],[1773280057000,0.504],[1773280377000,0],[1773280698000,0],[1773280953000,0],[1773281273000,0],[1773281593000,0],[1773281912000,0],[1773282169000,0],[1773282490000,0],[1773282809000,0],[1773283065000,0],[1773283385000,0],[1773283705000,0],[1773283961000,0],[1773284281000,0],[1773284601000,0],[1773284857000,0],[1773285177000,0],[1773285497000,0],[1773285752000,0],[1773286073000,0],[1773286393000,0],[1773286712000,0],[1773286969000,0],[1773287290000,0],[1773287609000,0],[1773287865000,0],[1773288185000,0],[1773288506000,0],[1773288761000,0],[1773289081000,0],[1773289402000,0],[1773289658000,0],[1773289977000,0],[1773290297000,0],[1773290552000,0],[1773290873000,0],[1773291197000,0],[1773291465000,0],[1773291785000,0],[1773292105000,0],[1773292361000,0],[1773292681000,0],[1773293001000,0],[1773293257000,0],[1773293577000,0],[1773293897000,0],[1773294152000,0],[1773294457000,0],[1773294777000,0],[1773295097000,0],[1773295353000,1.512],[1773295673000,3.528],[1773295993000,6.048],[1773296313000,6.3],[1773296569000,3.528],[1773296889000,0.504],[1773297210000,3.78],[1773297466000,5.544],[1773297785000,3.528],[1773298106000,0.63],[1773298361000,4.536],[1773298681000,2.52],[1773299001000,3.15],[1773299258000,3.528],[1773299577000,2.52],[1773299897000,2.52],[1773300153000,3.528],[1773300475000,3.528],[1773300793000,8.82],[1773301050000,7.056],[1773301369000,7.056],[1773301690000,5.544],[1773302010000,6.93],[1773302265000,5.04],[1773302601000,3.78],[1773302852000,5.544],[1773303177000,3.024],[1773303497000,3.78],[1773303752000,5.04],[1773304072000,3.528],[1773304392000,6.048],[1773304712000,4.41],[1773304952000,4.032],[1773305252000,3.528],[1773305576000,5.04],[1773305897000,4.41],[1773306153000,2.52],[1773306473000,3.528],[1773306793000,6.39],[1773307065000,5.544],[1773307385000,3.528],[1773307705000,5.04],[1773307961000,4.536],[1773308281000,6.048],[1773308601000,3.78],[1773308858000,5.544],[1773309177000,3.528],[1773309497000,3.78],[1773309753000,3.528],[1773310073000,3.528],[1773310393000,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: [[1773270040000,181.00000000],[1773270168000,181.60000000],[1773270489000,178.00000000],[1773270809000,182.25000000],[1773271065000,183.60000000],[1773271384000,184.00000000],[1773271705000,184.75000000],[1773271960000,185.00000000],[1773272280000,185.00000000],[1773272600000,185.00000000],[1773272856000,185.00000000],[1773273176000,185.00000000],[1773273497000,185.00000000],[1773273752000,185.00000000],[1773274073000,185.00000000],[1773274393000,185.00000000],[1773274712000,185.00000000],[1773274952000,185.00000000],[1773275257000,183.80000000],[1773275577000,169.00000000],[1773275897000,177.50000000],[1773276153000,187.20000000],[1773276474000,190.80000000],[1773276793000,196.40000000],[1773277113000,203.25000000],[1773277369000,203.00000000],[1773277689000,207.20000000],[1773278009000,209.00000000],[1773278265000,215.00000000],[1773278585000,211.40000000],[1773278905000,210.25000000],[1773279161000,210.00000000],[1773279481000,210.00000000],[1773279801000,210.00000000],[1773280057000,204.00000000],[1773280377000,204.40000000],[1773280698000,204.00000000],[1773280953000,204.00000000],[1773281273000,204.00000000],[1773281593000,204.80000000],[1773281912000,205.00000000],[1773282169000,205.00000000],[1773282490000,205.60000000],[1773282809000,208.00000000],[1773283065000,210.00000000],[1773283385000,210.80000000],[1773283705000,210.00000000],[1773283961000,210.00000000],[1773284281000,210.00000000],[1773284601000,210.00000000],[1773284857000,210.00000000],[1773285177000,210.00000000],[1773285497000,210.00000000],[1773285752000,210.00000000],[1773286073000,210.00000000],[1773286393000,210.00000000],[1773286712000,210.00000000],[1773286969000,210.00000000],[1773287290000,210.00000000],[1773287609000,210.00000000],[1773287865000,209.60000000],[1773288185000,208.40000000],[1773288506000,205.50000000],[1773288761000,205.00000000],[1773289081000,205.00000000],[1773289402000,205.25000000],[1773289658000,205.80000000],[1773289977000,209.60000000],[1773290297000,216.50000000],[1773290552000,215.20000000],[1773290873000,214.20000000],[1773291197000,214.00000000],[1773291465000,214.00000000],[1773291785000,214.00000000],[1773292105000,214.00000000],[1773292361000,212.40000000],[1773292681000,212.00000000],[1773293001000,212.00000000],[1773293257000,212.00000000],[1773293577000,212.00000000],[1773293897000,212.00000000],[1773294152000,212.00000000],[1773294457000,212.00000000],[1773294777000,212.00000000],[1773295097000,212.00000000],[1773295353000,221.00000000],[1773295673000,255.80000000],[1773295993000,293.00000000],[1773296313000,288.00000000],[1773296569000,256.20000000],[1773296889000,223.40000000],[1773297210000,251.75000000],[1773297466000,277.00000000],[1773297785000,242.60000000],[1773298106000,224.25000000],[1773298361000,236.60000000],[1773298681000,243.00000000],[1773299001000,242.00000000],[1773299258000,257.00000000],[1773299577000,235.60000000],[1773299897000,245.50000000],[1773300153000,237.00000000],[1773300475000,251.20000000],[1773300793000,305.50000000],[1773301050000,281.00000000],[1773301369000,293.60000000],[1773301690000,290.20000000],[1773302010000,301.25000000],[1773302265000,274.80000000],[1773302601000,252.50000000],[1773302852000,273.20000000],[1773303177000,240.60000000],[1773303497000,246.00000000],[1773303752000,271.40000000],[1773304072000,243.60000000],[1773304392000,311.40000000],[1773304712000,260.00000000],[1773304952000,214.60000000],[1773305252000,246.00000000],[1773305576000,265.20000000],[1773305897000,299.75000000],[1773306153000,266.80000000],[1773306473000,242.20000000],[1773306793000,263.50000000],[1773307065000,277.40000000],[1773307385000,257.60000000],[1773307705000,285.25000000],[1773307961000,248.40000000],[1773308281000,266.20000000],[1773308601000,197.00000000],[1773308858000,249.80000000],[1773309177000,233.80000000],[1773309497000,228.25000000],[1773309753000,254.00000000],[1773310073000,173.60000000],[1773310393000,188.33333333],], 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: [[1773270040000,0.00000000],[1773270168000,0.00000000],[1773270489000,0.00000000],[1773270809000,0.00000000],[1773271065000,0.00000000],[1773271384000,0.00000000],[1773271705000,0.00000000],[1773271960000,0.00000000],[1773272280000,0.00000000],[1773272600000,0.00000000],[1773272856000,0.00000000],[1773273176000,0.00000000],[1773273497000,0.00000000],[1773273752000,0.00000000],[1773274073000,0.00000000],[1773274393000,0.00000000],[1773274712000,0.00000000],[1773274952000,0.00000000],[1773275257000,0.00000000],[1773275577000,0.00000000],[1773275897000,0.00000000],[1773276153000,0.00000000],[1773276474000,0.00000000],[1773276793000,0.00000000],[1773277113000,0.00000000],[1773277369000,0.00000000],[1773277689000,0.00000000],[1773278009000,0.00000000],[1773278265000,0.00000000],[1773278585000,0.00000000],[1773278905000,0.00000000],[1773279161000,0.00000000],[1773279481000,0.00000000],[1773279801000,0.00000000],[1773280057000,0.00000000],[1773280377000,0.00000000],[1773280698000,0.00000000],[1773280953000,0.00000000],[1773281273000,0.00000000],[1773281593000,0.00000000],[1773281912000,0.00000000],[1773282169000,0.00000000],[1773282490000,0.00000000],[1773282809000,0.00000000],[1773283065000,0.00000000],[1773283385000,0.00000000],[1773283705000,0.00000000],[1773283961000,0.00000000],[1773284281000,0.00000000],[1773284601000,0.00000000],[1773284857000,0.00000000],[1773285177000,0.00000000],[1773285497000,0.00000000],[1773285752000,0.00000000],[1773286073000,0.00000000],[1773286393000,0.00000000],[1773286712000,0.00000000],[1773286969000,0.00000000],[1773287290000,0.00000000],[1773287609000,0.00000000],[1773287865000,0.00000000],[1773288185000,0.00000000],[1773288506000,0.00000000],[1773288761000,0.00000000],[1773289081000,0.00000000],[1773289402000,0.00000000],[1773289658000,0.00000000],[1773289977000,0.00000000],[1773290297000,0.00000000],[1773290552000,0.00000000],[1773290873000,0.00000000],[1773291197000,0.00000000],[1773291465000,0.80000000],[1773291785000,1.40000000],[1773292105000,2.25000000],[1773292361000,3.80000000],[1773292681000,5.80000000],[1773293001000,7.75000000],[1773293257000,10.20000000],[1773293577000,12.80000000],[1773293897000,15.00000000],[1773294152000,17.20000000],[1773294457000,19.80000000],[1773294777000,22.20000000],[1773295097000,25.00000000],[1773295353000,27.20000000],[1773295673000,31.40000000],[1773295993000,39.60000000],[1773296313000,43.00000000],[1773296569000,36.60000000],[1773296889000,38.80000000],[1773297210000,45.00000000],[1773297466000,45.80000000],[1773297785000,67.80000000],[1773298106000,75.25000000],[1773298361000,83.60000000],[1773298681000,93.60000000],[1773299001000,103.75000000],[1773299258000,109.00000000],[1773299577000,120.20000000],[1773299897000,128.75000000],[1773300153000,135.80000000],[1773300475000,144.00000000],[1773300793000,147.75000000],[1773301050000,146.20000000],[1773301369000,167.00000000],[1773301690000,175.80000000],[1773302010000,184.25000000],[1773302265000,192.40000000],[1773302601000,199.75000000],[1773302852000,208.20000000],[1773303177000,217.20000000],[1773303497000,224.50000000],[1773303752000,231.80000000],[1773304072000,240.60000000],[1773304392000,249.60000000],[1773304712000,257.75000000],[1773304952000,264.00000000],[1773305252000,271.80000000],[1773305576000,278.80000000],[1773305897000,284.00000000],[1773306153000,293.00000000],[1773306473000,301.40000000],[1773306793000,307.25000000],[1773307065000,313.40000000],[1773307385000,317.60000000],[1773307705000,324.00000000],[1773307961000,331.00000000],[1773308281000,336.60000000],[1773308601000,342.75000000],[1773308858000,346.60000000],[1773309177000,350.20000000],[1773309497000,353.25000000],[1773309753000,352.60000000],[1773310073000,360.00000000],[1773310393000,361.33333333],], 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: [[1773270040000,0.00000000],[1773270168000,0.00000000],[1773270489000,0.00000000],[1773270809000,0.00000000],[1773271065000,0.00000000],[1773271384000,0.00000000],[1773271705000,0.00000000],[1773271960000,0.00000000],[1773272280000,0.00000000],[1773272600000,0.00000000],[1773272856000,0.00000000],[1773273176000,0.00000000],[1773273497000,0.00000000],[1773273752000,0.00000000],[1773274073000,0.00000000],[1773274393000,0.00000000],[1773274712000,0.00000000],[1773274952000,0.00000000],[1773275257000,0.00000000],[1773275577000,0.00000000],[1773275897000,0.00000000],[1773276153000,0.00000000],[1773276474000,0.00000000],[1773276793000,0.00000000],[1773277113000,0.00000000],[1773277369000,0.00000000],[1773277689000,0.00000000],[1773278009000,0.00000000],[1773278265000,0.00000000],[1773278585000,0.00000000],[1773278905000,0.00000000],[1773279161000,0.00000000],[1773279481000,0.00000000],[1773279801000,0.00000000],[1773280057000,0.00000000],[1773280377000,0.00000000],[1773280698000,0.00000000],[1773280953000,0.00000000],[1773281273000,0.00000000],[1773281593000,0.00000000],[1773281912000,0.00000000],[1773282169000,0.00000000],[1773282490000,0.00000000],[1773282809000,0.00000000],[1773283065000,0.00000000],[1773283385000,0.00000000],[1773283705000,0.00000000],[1773283961000,0.00000000],[1773284281000,0.00000000],[1773284601000,0.00000000],[1773284857000,0.00000000],[1773285177000,0.00000000],[1773285497000,0.00000000],[1773285752000,0.00000000],[1773286073000,0.00000000],[1773286393000,0.00000000],[1773286712000,0.00000000],[1773286969000,0.00000000],[1773287290000,0.00000000],[1773287609000,0.00000000],[1773287865000,0.00000000],[1773288185000,0.00000000],[1773288506000,0.00000000],[1773288761000,0.00000000],[1773289081000,0.00000000],[1773289402000,0.00000000],[1773289658000,0.00000000],[1773289977000,0.00000000],[1773290297000,0.00000000],[1773290552000,0.00000000],[1773290873000,0.00000000],[1773291197000,0.00000000],[1773291465000,0.00000000],[1773291785000,0.00000000],[1773292105000,0.00000000],[1773292361000,0.00000000],[1773292681000,0.00000000],[1773293001000,0.00000000],[1773293257000,0.00000000],[1773293577000,0.00000000],[1773293897000,0.00000000],[1773294152000,0.00000000],[1773294457000,0.00000000],[1773294777000,0.00000000],[1773295097000,0.00000000],[1773295353000,0.00000000],[1773295673000,0.00000000],[1773295993000,0.00000000],[1773296313000,0.00000000],[1773296569000,0.00000000],[1773296889000,0.00000000],[1773297210000,0.00000000],[1773297466000,0.00000000],[1773297785000,0.00000000],[1773298106000,0.00000000],[1773298361000,0.00000000],[1773298681000,0.00000000],[1773299001000,0.50000000],[1773299258000,1.00000000],[1773299577000,1.00000000],[1773299897000,1.00000000],[1773300153000,1.00000000],[1773300475000,1.00000000],[1773300793000,1.00000000],[1773301050000,0.80000000],[1773301369000,1.00000000],[1773301690000,1.00000000],[1773302010000,1.00000000],[1773302265000,1.00000000],[1773302601000,1.00000000],[1773302852000,1.80000000],[1773303177000,2.00000000],[1773303497000,2.00000000],[1773303752000,2.00000000],[1773304072000,2.00000000],[1773304392000,2.00000000],[1773304712000,2.00000000],[1773304952000,2.00000000],[1773305252000,2.00000000],[1773305576000,2.00000000],[1773305897000,2.00000000],[1773306153000,2.00000000],[1773306473000,2.00000000],[1773306793000,2.50000000],[1773307065000,3.00000000],[1773307385000,3.00000000],[1773307705000,3.00000000],[1773307961000,3.00000000],[1773308281000,3.00000000],[1773308601000,3.00000000],[1773308858000,3.00000000],[1773309177000,3.00000000],[1773309497000,3.00000000],[1773309753000,3.00000000],[1773310073000,3.00000000],[1773310393000,3.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: [[1773270040000,0.00000000],[1773270168000,0.00000000],[1773270489000,0.00000000],[1773270809000,0.00000000],[1773271065000,0.00000000],[1773271384000,0.00000000],[1773271705000,0.00000000],[1773271960000,0.00000000],[1773272280000,0.00000000],[1773272600000,0.00000000],[1773272856000,0.00000000],[1773273176000,0.00000000],[1773273497000,0.00000000],[1773273752000,0.00000000],[1773274073000,0.00000000],[1773274393000,0.00000000],[1773274712000,0.00000000],[1773274952000,0.00000000],[1773275257000,0.00000000],[1773275577000,0.00000000],[1773275897000,0.00000000],[1773276153000,0.00000000],[1773276474000,0.00000000],[1773276793000,0.00000000],[1773277113000,0.00000000],[1773277369000,0.00000000],[1773277689000,0.00000000],[1773278009000,0.00000000],[1773278265000,0.00000000],[1773278585000,0.00000000],[1773278905000,0.00000000],[1773279161000,0.00000000],[1773279481000,0.00000000],[1773279801000,0.00000000],[1773280057000,0.00000000],[1773280377000,0.00000000],[1773280698000,0.00000000],[1773280953000,0.00000000],[1773281273000,0.00000000],[1773281593000,0.00000000],[1773281912000,0.00000000],[1773282169000,0.00000000],[1773282490000,0.00000000],[1773282809000,0.00000000],[1773283065000,0.00000000],[1773283385000,0.00000000],[1773283705000,0.00000000],[1773283961000,0.00000000],[1773284281000,0.00000000],[1773284601000,0.00000000],[1773284857000,0.00000000],[1773285177000,0.00000000],[1773285497000,0.00000000],[1773285752000,0.00000000],[1773286073000,0.00000000],[1773286393000,0.00000000],[1773286712000,0.00000000],[1773286969000,0.00000000],[1773287290000,0.00000000],[1773287609000,0.00000000],[1773287865000,0.00000000],[1773288185000,0.00000000],[1773288506000,0.00000000],[1773288761000,0.00000000],[1773289081000,0.00000000],[1773289402000,0.00000000],[1773289658000,0.00000000],[1773289977000,0.00000000],[1773290297000,0.00000000],[1773290552000,0.00000000],[1773290873000,0.00000000],[1773291197000,0.00000000],[1773291465000,0.00000000],[1773291785000,0.00000000],[1773292105000,0.00000000],[1773292361000,0.00000000],[1773292681000,0.00000000],[1773293001000,0.00000000],[1773293257000,0.00000000],[1773293577000,0.00000000],[1773293897000,0.00000000],[1773294152000,0.00000000],[1773294457000,0.00000000],[1773294777000,0.00000000],[1773295097000,0.00000000],[1773295353000,0.00000000],[1773295673000,0.00000000],[1773295993000,0.00000000],[1773296313000,0.00000000],[1773296569000,0.00000000],[1773296889000,0.00000000],[1773297210000,0.00000000],[1773297466000,0.00000000],[1773297785000,0.00000000],[1773298106000,0.00000000],[1773298361000,0.00000000],[1773298681000,0.00000000],[1773299001000,0.00000000],[1773299258000,0.00000000],[1773299577000,0.00000000],[1773299897000,0.00000000],[1773300153000,0.00000000],[1773300475000,0.00000000],[1773300793000,0.00000000],[1773301050000,0.00000000],[1773301369000,0.00000000],[1773301690000,0.00000000],[1773302010000,0.00000000],[1773302265000,0.00000000],[1773302601000,0.00000000],[1773302852000,0.00000000],[1773303177000,0.00000000],[1773303497000,0.00000000],[1773303752000,0.00000000],[1773304072000,0.00000000],[1773304392000,0.00000000],[1773304712000,0.00000000],[1773304952000,0.00000000],[1773305252000,0.00000000],[1773305576000,0.00000000],[1773305897000,0.00000000],[1773306153000,0.00000000],[1773306473000,0.00000000],[1773306793000,0.00000000],[1773307065000,0.00000000],[1773307385000,0.00000000],[1773307705000,0.00000000],[1773307961000,0.00000000],[1773308281000,0.00000000],[1773308601000,0.00000000],[1773308858000,0.00000000],[1773309177000,0.00000000],[1773309497000,0.00000000],[1773309753000,0.00000000],[1773310073000,0.00000000],[1773310393000,0.00000000],], 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; }