var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1604962801000,5.80000000],[1604962981000,5.80000000],[1604963281000,5.80000000],[1604963581000,5.74000000],[1604963881000,5.80000000],[1604964181000,5.80000000],[1604964481000,5.70000000],[1604964781000,5.72000000],[1604965081000,5.72000000],[1604965381000,5.70000000],[1604965681000,5.74000000],[1604965981000,5.72000000],[1604966281000,5.70000000],[1604966581000,5.70000000],[1604966881000,5.70000000],[1604967181000,5.70000000],[1604967481000,5.68000000],[1604967781000,5.60000000],[1604968081000,5.60000000],[1604968381000,5.60000000],[1604968681000,5.60000000],[1604968981000,5.60000000],[1604969281000,5.56000000],[1604969581000,5.50000000],[1604969881000,5.52000000],[1604970181000,5.50000000],[1604970481000,5.50000000],[1604970781000,5.54000000],[1604971081000,5.60000000],[1604971381000,5.54000000],[1604971682000,5.52000000],[1604971981000,5.56000000],[1604972281000,5.60000000],[1604972581000,5.60000000],[1604972881000,5.60000000],[1604973181000,5.60000000],[1604973481000,5.60000000],[1604973781000,5.60000000],[1604974081000,5.60000000],[1604974381000,5.60000000],[1604974681000,5.60000000],[1604974981000,5.60000000],[1604975281000,5.60000000],[1604975581000,5.60000000],[1604975881000,5.60000000],[1604976181000,5.60000000],[1604976481000,5.62000000],[1604976781000,5.66000000],[1604977081000,5.64000000],[1604977381000,5.70000000],[1604977681000,5.70000000],[1604977981000,5.64000000],[1604978281000,5.66000000],[1604978581000,5.70000000],[1604978881000,5.70000000],[1604979181000,5.70000000],[1604979481000,5.68000000],[1604979781000,5.70000000],[1604980081000,5.70000000],[1604980381000,5.70000000],[1604980681000,5.70000000],[1604980981000,5.70000000],[1604981281000,5.70000000],[1604981581000,5.70000000],[1604981881000,5.70000000],[1604982181000,5.70000000],[1604982481000,5.70000000],[1604982781000,5.70000000],[1604983081000,5.76000000],[1604983381000,5.78000000],[1604983681000,5.70000000],[1604983981000,5.70000000],[1604984281000,5.78000000],[1604984581000,5.76000000],[1604984881000,5.74000000],[1604985181000,5.74000000],[1604985481000,5.72000000],[1604985781000,5.70000000],[1604986081000,5.72000000],[1604986381000,5.76000000],[1604986681000,5.72000000],[1604986981000,5.80000000],[1604987281000,5.80000000],[1604987581000,5.80000000],[1604987881000,5.82000000],[1604988181000,5.80000000],[1604988481000,5.82000000],[1604988781000,5.82000000],[1604989081000,5.90000000],[1604989381000,5.90000000],[1604989681000,5.90000000],[1604989981000,5.90000000],[1604990281000,5.90000000],[1604990581000,5.98000000],[1604990881000,6.00000000],[1604991181000,6.00000000],[1604991481000,6.00000000],[1604991781000,6.00000000],[1604992081000,6.00000000],[1604992381000,6.06000000],[1604992681000,6.10000000],[1604992981000,6.16000000],[1604993281000,6.12000000],[1604993581000,6.20000000],[1604993881000,6.20000000],[1604994181000,6.20000000],[1604994481000,6.22000000],[1604994781000,6.20000000],[1604995081000,6.28000000],[1604995381000,6.30000000],[1604995681000,6.32000000],[1604995981000,6.40000000],[1604996281000,6.48000000],[1604996581000,6.50000000],[1604996881000,6.46000000],[1604997181000,6.52000000],[1604997481000,6.52000000],[1604997781000,6.50000000],[1604998081000,6.58000000],[1604998381000,6.70000000],[1604998681000,6.70000000],[1604998981000,6.70000000],[1604999281000,6.72000000],[1604999581000,6.78000000],[1604999881000,6.88000000],[1605000181000,6.90000000],[1605000481000,6.90000000],[1605000781000,6.90000000],[1605001081000,6.98000000],[1605001381000,7.00000000],[1605001681000,7.00000000],[1605001981000,7.04000000],[1605002281000,7.10000000],[1605002581000,7.12000000],[1605002881000,7.16000000],[1605003181000,7.10000000],[1605003481000,7.20000000],[1605003781000,7.22000000],[1605004081000,7.34000000],[1605004381000,7.38000000],[1605004681000,7.42000000],[1605004981000,7.46000000],[1605005281000,7.52000000],[1605005581000,7.50000000],[1605005881000,7.44000000],[1605006181000,7.42000000],[1605006481000,7.46000000],[1605006781000,7.50000000],[1605007081000,7.50000000],[1605007381000,7.50000000],[1605007681000,7.54000000],[1605007981000,7.62000000],[1605008281000,7.70000000],[1605008581000,7.60000000],[1605008881000,7.64000000],[1605009181000,7.66000000],[1605009481000,7.70000000],[1605009781000,7.70000000],[1605010081000,7.70000000],[1605010381000,7.70000000],[1605010681000,7.70000000],[1605010981000,7.70000000],[1605011281000,7.66000000],[1605011581000,7.68000000],[1605011881000,7.60000000],[1605012181000,7.60000000],[1605012481000,7.60000000],[1605012781000,7.60000000],[1605013081000,7.62000000],[1605013381000,7.62000000],[1605013681000,7.62000000],[1605013981000,7.62000000],[1605014281000,7.60000000],[1605014581000,7.60000000],[1605014881000,7.60000000],[1605015181000,7.60000000],[1605015481000,7.60000000],[1605015782000,7.60000000],[1605016081000,7.60000000],[1605016381000,7.66000000],[1605016681000,7.64000000],[1605016981000,7.64000000],[1605017281000,7.70000000],[1605017581000,7.68000000],[1605017881000,7.60000000],[1605018181000,7.60000000],[1605018481000,7.64000000],[1605018781000,7.68000000],[1605019081000,7.64000000],[1605019381000,7.68000000],[1605019681000,7.66000000],[1605019981000,7.66000000],[1605020281000,7.70000000],[1605020581000,7.70000000],[1605020881000,7.70000000],[1605021181000,7.68000000],[1605021481000,7.64000000],[1605021781000,7.60000000],[1605022081000,7.60000000],[1605022381000,7.60000000],[1605022681000,7.60000000],[1605022981000,7.60000000],[1605023281000,7.60000000],[1605023581000,7.60000000],[1605023881000,7.60000000],[1605024181000,7.58000000],[1605024481000,7.50000000],[1605024781000,7.50000000],[1605025081000,7.50000000],[1605025381000,7.50000000],[1605025681000,7.50000000],[1605025981000,7.50000000],[1605026281000,7.50000000],[1605026581000,7.50000000],[1605026881000,7.50000000],[1605027181000,7.50000000],[1605027481000,7.50000000],[1605027781000,7.50000000],[1605028081000,7.50000000],[1605028381000,7.46000000],[1605028681000,7.42000000],[1605028981000,7.48000000],[1605029281000,7.46000000],[1605029581000,7.48000000],[1605029881000,7.42000000],[1605030181000,7.40000000],[1605030481000,7.40000000],[1605030781000,7.40000000],[1605031081000,7.40000000],[1605031381000,7.38000000],[1605031681000,7.40000000],[1605031981000,7.36000000],[1605032281000,7.30000000],[1605032581000,7.30000000],[1605032881000,7.30000000],[1605033181000,7.28000000],[1605033481000,7.20000000],[1605033781000,7.20000000],[1605034081000,7.20000000],[1605034381000,7.22000000],[1605034681000,7.24000000],[1605034981000,7.24000000],[1605035281000,7.24000000],[1605035581000,7.28000000],[1605035881000,7.26000000],[1605036181000,7.24000000],[1605036481000,7.26000000],[1605036781000,7.20000000],[1605037081000,7.20000000],[1605037381000,7.20000000],[1605037681000,7.20000000],[1605037981000,7.20000000],[1605038281000,7.20000000],[1605038581000,7.20000000],[1605038881000,7.16000000],[1605039181000,7.14000000],[1605039481000,7.14000000],[1605039781000,7.10000000],[1605040081000,7.10000000],[1605040381000,7.10000000],[1605040681000,7.10000000],[1605040981000,7.10000000],[1605041281000,7.10000000],[1605041581000,7.10000000],[1605041881000,7.10000000],[1605042181000,7.10000000],[1605042481000,7.10000000],[1605042781000,7.10000000],[1605043081000,7.08000000],[1605043381000,7.10000000],[1605043681000,7.04000000],[1605043981000,7.00000000],[1605044281000,7.02000000],[1605044581000,7.00000000],[1605044881000,7.00000000],[1605045181000,7.00000000],[1605045481000,7.00000000],[1605045781000,7.00000000],[1605046081000,6.92000000],[1605046381000,6.92000000],[1605046681000,6.90000000],[1605046981000,6.90000000],[1605047281000,6.88000000],[1605047581000,6.88000000],[1605047881000,6.90000000],[1605048181000,6.88000000],[1605048481000,6.80000000],[1605048781000,6.80000000],[1605049081000,6.80000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [], 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: 'Rýchlosť vetra (km/h)', data: [[1604962801000,0.960000012],[1604962981000,0.648],[1604963281000,0.792],[1604963581000,0.072],[1604963881000,0.288],[1604964181000,0.36],[1604964481000,0.936],[1604964781000,2.232],[1604965081000,0],[1604965381000,0.648],[1604965681000,1.44],[1604965981000,0],[1604966281000,0],[1604966581000,0],[1604966881000,0.936],[1604967181000,0.792],[1604967481000,1.296],[1604967781000,2.232],[1604968081000,1.368],[1604968381000,0.36],[1604968681000,0.936],[1604968981000,1.008],[1604969281000,2.088],[1604969581000,2.016],[1604969881000,1.512],[1604970181000,1.656],[1604970481000,2.088],[1604970781000,0.936],[1604971081000,1.008],[1604971381000,2.16],[1604971681000,0.576],[1604971981000,0.36],[1604972281000,0.648],[1604972581000,0.936],[1604972881000,0.576],[1604973181000,2.232],[1604973481000,0.36],[1604973781000,2.952],[1604974081000,0.288],[1604974381000,0.144],[1604974681000,1.728],[1604974981000,3.24],[1604975281000,0.216],[1604975581000,0.288],[1604975881000,0.072],[1604976181000,1.08],[1604976481000,0],[1604976781000,0],[1604977081000,0.72],[1604977381000,0],[1604977681000,0],[1604977981000,0.576],[1604978281000,0.072],[1604978581000,0],[1604978881000,0],[1604979181000,0],[1604979481000,1.584],[1604979781000,0.36],[1604980081000,0],[1604980381000,0.216],[1604980681000,0.576],[1604980981000,2.304],[1604981281000,3.312],[1604981581000,1.152],[1604981881000,0.936],[1604982181000,1.512],[1604982481000,4.176],[1604982781000,3.528],[1604983081000,1.152],[1604983381000,0.432],[1604983681000,0.432],[1604983981000,0.144],[1604984281000,0.072],[1604984581000,2.808],[1604984881000,2.952],[1604985181000,0.576],[1604985481000,0.504],[1604985781000,0.864],[1604986081000,2.736],[1604986381000,0.504],[1604986681000,0],[1604986981000,0.936],[1604987281000,0.216],[1604987581000,1.08],[1604987881000,0],[1604988181000,0],[1604988481000,0.288],[1604988781000,1.296],[1604989081000,1.44],[1604989381000,0.288],[1604989681000,1.152],[1604989981000,0.072],[1604990281000,0.936],[1604990581000,0.216],[1604990881000,0],[1604991181000,0],[1604991481000,0.36],[1604991781000,1.8],[1604992081000,1.224],[1604992381000,2.664],[1604992681000,3.096],[1604992981000,0.792],[1604993281000,1.944],[1604993581000,1.368],[1604993881000,0.216],[1604994181000,0.792],[1604994481000,0.72],[1604994781000,0],[1604995081000,0],[1604995381000,0],[1604995681000,0],[1604995981000,0],[1604996281000,0],[1604996581000,1.728],[1604996881000,3.096],[1604997181000,4.536],[1604997481000,2.376],[1604997781000,3.672],[1604998081000,0.72],[1604998381000,0],[1604998681000,2.592],[1604998981000,3.816],[1604999281000,3.96],[1604999581000,3.096],[1604999881000,3.816],[1605000181000,5.472],[1605000481000,4.392],[1605000781000,2.808],[1605001081000,4.104],[1605001381000,2.52],[1605001681000,1.008],[1605001981000,1.152],[1605002281000,1.152],[1605002581000,1.512],[1605002881000,2.592],[1605003181000,3.816],[1605003481000,4.68],[1605003781000,2.592],[1605004081000,2.088],[1605004381000,3.744],[1605004681000,1.944],[1605004981000,1.656],[1605005281000,3.744],[1605005581000,3.096],[1605005881000,3.096],[1605006181000,2.448],[1605006481000,1.224],[1605006781000,2.448],[1605007081000,2.16],[1605007381000,3.24],[1605007681000,1.008],[1605007981000,3.096],[1605008281000,2.952],[1605008581000,2.88],[1605008881000,2.376],[1605009181000,2.232],[1605009481000,2.664],[1605009781000,2.232],[1605010081000,2.448],[1605010381000,1.368],[1605010681000,2.376],[1605010981000,3.888],[1605011281000,1.008],[1605011581000,2.592],[1605011881000,1.944],[1605012181000,2.304],[1605012481000,1.008],[1605012781000,3.096],[1605013081000,2.304],[1605013381000,1.008],[1605013681000,3.096],[1605013981000,1.944],[1605014281000,2.88],[1605014581000,6.696],[1605014881000,5.904],[1605015181000,4.176],[1605015481000,4.32],[1605015781000,6.768],[1605016081000,3.096],[1605016381000,2.664],[1605016681000,3.384],[1605016981000,2.448],[1605017281000,0.72],[1605017581000,2.664],[1605017881000,1.8],[1605018181000,4.392],[1605018481000,4.392],[1605018781000,3.744],[1605019081000,7.416],[1605019381000,6.264],[1605019681000,7.848],[1605019981000,9.216],[1605020281000,7.2],[1605020581000,7.704],[1605020881000,12.6],[1605021181000,9.936],[1605021481000,11.808],[1605021781000,13.176],[1605022081000,11.952],[1605022381000,13.104],[1605022681000,6.984],[1605022981000,5.472],[1605023281000,10.008],[1605023581000,6.984],[1605023881000,1.8],[1605024181000,1.224],[1605024481000,1.512],[1605024781000,1.584],[1605025081000,3.456],[1605025381000,2.88],[1605025681000,2.808],[1605025981000,2.304],[1605026281000,2.664],[1605026581000,1.224],[1605026881000,1.872],[1605027181000,1.368],[1605027481000,1.656],[1605027781000,1.512],[1605028081000,1.512],[1605028381000,1.944],[1605028681000,2.16],[1605028981000,0.648],[1605029281000,0],[1605029581000,0],[1605029881000,0.432],[1605030181000,0],[1605030481000,1.44],[1605030781000,0.432],[1605031081000,1.152],[1605031381000,0.288],[1605031681000,0.216],[1605031981000,0],[1605032281000,0.576],[1605032581000,1.584],[1605032881000,1.224],[1605033181000,0.576],[1605033481000,1.152],[1605033781000,1.872],[1605034081000,1.656],[1605034381000,2.16],[1605034681000,0.648],[1605034981000,2.016],[1605035281000,0.936],[1605035581000,0.864],[1605035881000,0.36],[1605036181000,0.072],[1605036481000,0.936],[1605036781000,4.824],[1605037081000,3.816],[1605037381000,2.808],[1605037681000,3.096],[1605037981000,2.088],[1605038281000,3.384],[1605038581000,3.312],[1605038881000,1.656],[1605039181000,1.44],[1605039481000,2.232],[1605039781000,3.456],[1605040081000,2.52],[1605040381000,2.088],[1605040681000,2.664],[1605040981000,2.448],[1605041281000,3.6],[1605041581000,1.728],[1605041881000,2.376],[1605042181000,3.312],[1605042481000,3.096],[1605042781000,3.024],[1605043081000,2.52],[1605043381000,0.936],[1605043681000,1.296],[1605043981000,1.584],[1605044281000,0.72],[1605044581000,0.72],[1605044881000,0.36],[1605045181000,0],[1605045481000,0.072],[1605045781000,0.072],[1605046081000,1.152],[1605046381000,1.224],[1605046681000,1.728],[1605046981000,1.44],[1605047281000,2.664],[1605047581000,1.512],[1605047881000,3.744],[1605048181000,2.808],[1605048481000,0.576],[1605048781000,2.016],[1605049081000,1.62],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1604962801000,1.302000012],[1604962981000,0.96984],[1604963281000,1.34784],[1604963581000,0.11952],[1604963881000,0.486],[1604964181000,0.50544],[1604964481000,1.34928],[1604964781000,3.51576],[1604965081000,0],[1604965381000,0.91656],[1604965681000,2.21112],[1604965981000,0],[1604966281000,0],[1604966581000,0],[1604966881000,1.52136],[1604967181000,1.27656],[1604967481000,2.0304],[1604967781000,3.4164],[1604968081000,2.10312],[1604968381000,0.61632],[1604968681000,1.45944],[1604968981000,1.55088],[1604969281000,3.20904],[1604969581000,3.06216],[1604969881000,2.27304],[1604970181000,2.4768],[1604970481000,3.21192],[1604970781000,1.4364],[1604971081000,1.55232],[1604971381000,3.28608],[1604971681000,0.95544],[1604971981000,0.576],[1604972281000,1.08072],[1604972581000,1.51992],[1604972881000,0.86688],[1604973181000,3.19536],[1604973481000,0.576],[1604973781000,4.50144],[1604974081000,0.35424],[1604974381000,0.18288],[1604974681000,2.61144],[1604974981000,4.82112],[1604975281000,0.31608],[1604975581000,0.40176],[1604975881000,0.0468],[1604976181000,1.66464],[1604976481000,0],[1604976781000,0],[1604977081000,1.11888],[1604977381000,0],[1604977681000,0],[1604977981000,0.87552],[1604978281000,0.09792],[1604978581000,0],[1604978881000,0],[1604979181000,0],[1604979481000,2.34792],[1604979781000,0.58608],[1604980081000,0],[1604980381000,0.30888],[1604980681000,0.86184],[1604980981000,3.52584],[1604981281000,5.02992],[1604981581000,1.53936],[1604981881000,1.5336],[1604982181000,2.24928],[1604982481000,6.38424],[1604982781000,5.39136],[1604983081000,1.92384],[1604983381000,0.77472],[1604983681000,0.62928],[1604983981000,0.16776],[1604984281000,0.09072],[1604984581000,4.21992],[1604984881000,4.53024],[1604985181000,0.8316],[1604985481000,0.86472],[1604985781000,1.36296],[1604986081000,4.16592],[1604986381000,0.792],[1604986681000,0],[1604986981000,1.47672],[1604987281000,0.34632],[1604987581000,1.62144],[1604987881000,0.05184],[1604988181000,0],[1604988481000,0.43776],[1604988781000,1.81944],[1604989081000,2.1384],[1604989381000,0.46512],[1604989681000,1.8036],[1604989981000,0.16416],[1604990281000,1.3932],[1604990581000,0.30672],[1604990881000,0],[1604991181000,0],[1604991481000,0.50616],[1604991781000,2.71656],[1604992081000,1.87344],[1604992381000,4.05792],[1604992681000,4.75992],[1604992981000,1.23264],[1604993281000,2.88648],[1604993581000,2.16144],[1604993881000,0.31032],[1604994181000,1.20384],[1604994481000,1.19736],[1604994781000,0],[1604995081000,0],[1604995381000,0],[1604995681000,0],[1604995981000,0],[1604996281000,0],[1604996581000,2.60064],[1604996881000,4.73616],[1604997181000,6.9912],[1604997481000,3.52512],[1604997781000,5.724],[1604998081000,1.02816],[1604998381000,0],[1604998681000,4.02408],[1604998981000,5.99688],[1604999281000,6.17832],[1604999581000,4.79808],[1604999881000,5.9148],[1605000181000,8.51328],[1605000481000,6.69744],[1605000781000,4.2768],[1605001081000,6.3144],[1605001381000,4.07016],[1605001681000,1.71072],[1605001981000,1.7316],[1605002281000,1.86624],[1605002581000,2.39976],[1605002881000,4.09896],[1605003181000,5.9292],[1605003481000,7.3116],[1605003781000,4.0644],[1605004081000,3.20832],[1605004381000,5.81328],[1605004681000,2.93976],[1605004981000,2.51856],[1605005281000,5.9256],[1605005581000,4.79592],[1605005881000,4.96224],[1605006181000,3.84696],[1605006481000,1.93968],[1605006781000,3.84192],[1605007081000,3.29832],[1605007381000,4.96728],[1605007681000,1.59768],[1605007981000,4.69872],[1605008281000,4.59936],[1605008581000,4.87296],[1605008881000,3.58992],[1605009181000,3.3876],[1605009481000,4.12992],[1605009781000,3.39048],[1605010081000,3.70008],[1605010381000,2.13192],[1605010681000,3.56112],[1605010981000,6.02568],[1605011281000,1.48752],[1605011581000,3.93696],[1605011881000,2.81016],[1605012181000,3.4272],[1605012481000,1.45584],[1605012781000,4.67064],[1605013081000,3.44664],[1605013381000,1.54152],[1605013681000,4.91544],[1605013981000,3.04056],[1605014281000,4.41792],[1605014581000,10.7316],[1605014881000,9.33192],[1605015181000,6.62184],[1605015481000,6.72408],[1605015781000,10.82232],[1605016081000,4.94712],[1605016381000,4.1904],[1605016681000,5.07888],[1605016981000,3.72816],[1605017281000,1.02888],[1605017581000,4.10328],[1605017881000,2.74464],[1605018181000,6.97824],[1605018481000,6.9336],[1605018781000,5.92128],[1605019081000,11.74608],[1605019381000,9.79416],[1605019681000,12.76272],[1605019981000,14.98824],[1605020281000,11.13048],[1605020581000,12.05496],[1605020881000,19.90224],[1605021181000,15.44544],[1605021481000,18.73872],[1605021781000,20.74824],[1605022081000,19.50192],[1605022381000,20.6064],[1605022681000,10.72224],[1605022981000,8.5572],[1605023281000,15.50088],[1605023581000,10.92672],[1605023881000,2.63592],[1605024181000,1.97856],[1605024481000,2.32056],[1605024781000,2.50272],[1605025081000,5.27616],[1605025381000,4.4136],[1605025681000,4.1256],[1605025981000,3.54312],[1605026281000,4.04136],[1605026581000,1.7928],[1605026881000,2.93976],[1605027181000,1.99656],[1605027481000,2.52288],[1605027781000,2.33424],[1605028081000,2.2248],[1605028381000,2.80296],[1605028681000,3.47184],[1605028981000,0.98568],[1605029281000,0],[1605029581000,0],[1605029881000,0.58104],[1605030181000,0.01656],[1605030481000,2.16792],[1605030781000,0.74232],[1605031081000,1.75968],[1605031381000,0.40176],[1605031681000,0.35496],[1605031981000,0],[1605032281000,0.84384],[1605032581000,2.35872],[1605032881000,1.8396],[1605033181000,0.79776],[1605033481000,1.74168],[1605033781000,2.84328],[1605034081000,2.57112],[1605034381000,3.23208],[1605034681000,0.93024],[1605034981000,3.09672],[1605035281000,1.33848],[1605035581000,1.39968],[1605035881000,0.65232],[1605036181000,0.08856],[1605036481000,1.60488],[1605036781000,7.53408],[1605037081000,6.11784],[1605037381000,4.55544],[1605037681000,4.82616],[1605037981000,3.30696],[1605038281000,5.41296],[1605038581000,4.99464],[1605038881000,2.49048],[1605039181000,2.4192],[1605039481000,3.31704],[1605039781000,5.23224],[1605040081000,3.8376],[1605040381000,3.29616],[1605040681000,4.11552],[1605040981000,3.82104],[1605041281000,5.60952],[1605041581000,2.628],[1605041881000,3.49992],[1605042181000,5.10624],[1605042481000,4.8276],[1605042781000,4.54392],[1605043081000,3.8844],[1605043381000,1.48896],[1605043681000,1.9368],[1605043981000,2.38464],[1605044281000,1.14768],[1605044581000,1.08648],[1605044881000,0.50616],[1605045181000,0],[1605045481000,0.13608],[1605045781000,0.1332],[1605046081000,1.8468],[1605046381000,1.82952],[1605046681000,2.50632],[1605046981000,2.2212],[1605047281000,4.0824],[1605047581000,2.30112],[1605047881000,5.80896],[1605048181000,4.2948],[1605048481000,0.99432],[1605048781000,3.11184],[1605049081000,2.6064],], 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: [[1604962801000,155.43333333],[1604962981000,135.00000000],[1604963281000,135.40000000],[1604963581000,135.40000000],[1604963881000,155.86000000],[1604964181000,130.10000000],[1604964481000,91.64000000],[1604964781000,138.26000000],[1604965081000,135.00000000],[1604965381000,151.76000000],[1604965681000,123.56000000],[1604965981000,126.82000000],[1604966281000,135.00000000],[1604966581000,168.96000000],[1604966881000,30.70000000],[1604967181000,59.30000000],[1604967481000,74.46000000],[1604967781000,34.38000000],[1604968081000,62.58000000],[1604968381000,121.50000000],[1604968681000,24.56000000],[1604968981000,129.28000000],[1604969281000,114.54000000],[1604969581000,120.26000000],[1604969881000,137.04000000],[1604970181000,90.82000000],[1604970481000,90.00000000],[1604970781000,127.22000000],[1604971081000,116.98000000],[1604971381000,78.56000000],[1604971681000,63.82000000],[1604971981000,138.68000000],[1604972281000,45.00000000],[1604972581000,68.72000000],[1604972881000,122.72000000],[1604973181000,163.24000000],[1604973481000,155.46000000],[1604973781000,156.28000000],[1604974081000,61.36000000],[1604974381000,90.00000000],[1604974681000,168.98000000],[1604974981000,138.68000000],[1604975281000,135.00000000],[1604975581000,135.00000000],[1604975881000,135.00000000],[1604976181000,71.18000000],[1604976481000,120.26000000],[1604976781000,90.00000000],[1604977081000,229.10000000],[1604977381000,315.00000000],[1604977681000,315.00000000],[1604977981000,160.36000000],[1604978281000,0.00000000],[1604978581000,0.00000000],[1604978881000,0.00000000],[1604979181000,0.00000000],[1604979481000,31.10000000],[1604979781000,0.00000000],[1604980081000,0.00000000],[1604980381000,0.00000000],[1604980681000,18.00000000],[1604980981000,46.62000000],[1604981281000,23.32000000],[1604981581000,23.74000000],[1604981881000,18.40000000],[1604982181000,2.46000000],[1604982481000,37.22000000],[1604982781000,27.84000000],[1604983081000,21.28000000],[1604983381000,69.54000000],[1604983681000,204.14000000],[1604983981000,315.00000000],[1604984281000,232.36000000],[1604984581000,21.28000000],[1604984881000,25.36000000],[1604985181000,38.46000000],[1604985481000,76.50000000],[1604985781000,45.00000000],[1604986081000,31.50000000],[1604986381000,73.64000000],[1604986681000,125.18000000],[1604986981000,235.64000000],[1604987281000,180.00000000],[1604987581000,242.18000000],[1604987881000,315.00000000],[1604988181000,194.72000000],[1604988481000,82.64000000],[1604988781000,20.04000000],[1604989081000,22.90000000],[1604989381000,2.46000000],[1604989681000,181.64000000],[1604989981000,225.00000000],[1604990281000,225.00000000],[1604990581000,225.00000000],[1604990881000,225.00000000],[1604991181000,225.00000000],[1604991481000,179.60000000],[1604991781000,78.54000000],[1604992081000,32.30000000],[1604992381000,39.26000000],[1604992681000,31.92000000],[1604992981000,45.00000000],[1604993281000,45.00000000],[1604993581000,45.00000000],[1604993881000,45.00000000],[1604994181000,45.00000000],[1604994481000,45.00000000],[1604994781000,45.00000000],[1604995081000,45.00000000],[1604995381000,45.00000000],[1604995681000,45.00000000],[1604995981000,45.00000000],[1604996281000,45.00000000],[1604996581000,50.32000000],[1604996881000,45.00000000],[1604997181000,44.18000000],[1604997481000,45.00000000],[1604997781000,42.54000000],[1604998081000,45.00000000],[1604998381000,45.00000000],[1604998681000,43.36000000],[1604998981000,44.60000000],[1604999281000,43.78000000],[1604999581000,38.86000000],[1604999881000,36.00000000],[1605000181000,49.92000000],[1605000481000,36.42000000],[1605000781000,74.06000000],[1605001081000,44.20000000],[1605001381000,57.26000000],[1605001681000,71.60000000],[1605001981000,90.00000000],[1605002281000,90.00000000],[1605002581000,43.36000000],[1605002881000,32.70000000],[1605003181000,39.68000000],[1605003481000,35.60000000],[1605003781000,23.74000000],[1605004081000,18.00000000],[1605004381000,52.38000000],[1605004681000,19.64000000],[1605004981000,51.98000000],[1605005281000,26.18000000],[1605005581000,36.00000000],[1605005881000,31.92000000],[1605006181000,22.08000000],[1605006481000,11.44000000],[1605006781000,26.60000000],[1605007081000,90.40000000],[1605007381000,90.00000000],[1605007681000,90.00000000],[1605007981000,51.14000000],[1605008281000,37.24000000],[1605008581000,61.36000000],[1605008881000,70.78000000],[1605009181000,61.76000000],[1605009481000,34.76000000],[1605009781000,33.96000000],[1605010081000,106.36000000],[1605010381000,105.96000000],[1605010681000,90.00000000],[1605010981000,114.96000000],[1605011281000,130.50000000],[1605011581000,113.30000000],[1605011881000,84.28000000],[1605012181000,87.54000000],[1605012481000,103.48000000],[1605012781000,96.14000000],[1605013081000,106.36000000],[1605013381000,110.86000000],[1605013681000,135.02000000],[1605013981000,135.40000000],[1605014281000,137.46000000],[1605014581000,137.06000000],[1605014881000,141.94000000],[1605015181000,126.00000000],[1605015481000,99.82000000],[1605015781000,141.14000000],[1605016081000,117.00000000],[1605016381000,124.78000000],[1605016681000,78.96000000],[1605016981000,84.28000000],[1605017281000,96.54000000],[1605017581000,90.82000000],[1605017881000,108.42000000],[1605018181000,98.20000000],[1605018481000,117.00000000],[1605018781000,112.10000000],[1605019081000,140.74000000],[1605019381000,123.54000000],[1605019681000,129.66000000],[1605019981000,147.28000000],[1605020281000,147.68000000],[1605020581000,151.36000000],[1605020881000,157.92000000],[1605021181000,159.14000000],[1605021481000,166.50000000],[1605021781000,157.48000000],[1605022081000,158.72000000],[1605022381000,174.68000000],[1605022681000,175.92000000],[1605022981000,172.62000000],[1605023281000,171.42000000],[1605023581000,153.00000000],[1605023881000,135.00000000],[1605024181000,135.82000000],[1605024481000,135.00000000],[1605024781000,134.60000000],[1605025081000,83.86000000],[1605025381000,83.86000000],[1605025681000,94.90000000],[1605025981000,92.46000000],[1605026281000,101.46000000],[1605026581000,97.36000000],[1605026881000,113.72000000],[1605027181000,81.82000000],[1605027481000,90.00000000],[1605027781000,90.00000000],[1605028081000,90.00000000],[1605028381000,97.78000000],[1605028681000,94.10000000],[1605028981000,51.54000000],[1605029281000,45.00000000],[1605029581000,45.00000000],[1605029881000,85.90000000],[1605030181000,119.04000000],[1605030481000,118.64000000],[1605030781000,116.60000000],[1605031081000,114.96000000],[1605031381000,135.00000000],[1605031681000,175.90000000],[1605031981000,103.10000000],[1605032281000,70.36000000],[1605032581000,47.88000000],[1605032881000,45.00000000],[1605033181000,45.00000000],[1605033481000,21.28000000],[1605033781000,50.32000000],[1605034081000,70.78000000],[1605034381000,78.54000000],[1605034681000,130.10000000],[1605034981000,129.68000000],[1605035281000,108.00000000],[1605035581000,167.72000000],[1605035881000,120.26000000],[1605036181000,81.00000000],[1605036481000,138.26000000],[1605036781000,152.58000000],[1605037081000,129.68000000],[1605037381000,132.54000000],[1605037681000,113.32000000],[1605037981000,131.32000000],[1605038281000,115.76000000],[1605038581000,89.18000000],[1605038881000,78.14000000],[1605039181000,86.74000000],[1605039481000,94.50000000],[1605039781000,99.42000000],[1605040081000,72.00000000],[1605040381000,122.74000000],[1605040681000,100.24000000],[1605040981000,110.46000000],[1605041281000,90.00000000],[1605041581000,74.44000000],[1605041881000,94.92000000],[1605042181000,72.00000000],[1605042481000,66.68000000],[1605042781000,86.74000000],[1605043081000,87.94000000],[1605043381000,104.72000000],[1605043681000,82.22000000],[1605043981000,60.14000000],[1605044281000,78.14000000],[1605044581000,238.92000000],[1605044881000,0.00000000],[1605045181000,14.72000000],[1605045481000,31.10000000],[1605045781000,0.00000000],[1605046081000,41.72000000],[1605046381000,60.94000000],[1605046681000,22.10000000],[1605046981000,67.50000000],[1605047281000,24.94000000],[1605047581000,32.72000000],[1605047881000,28.62000000],[1605048181000,38.84000000],[1605048481000,49.08000000],[1605048781000,40.52000000],[1605049081000,37.85000000],], 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); }); $('.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; }