var meteoCharts = {}; var meteoCompassLabels = {0: 'S', 90: 'V', 180: 'J', 270: 'Z', 360: 'S'}; var meteoRangeMin = 1795474800000; var meteoRangeMax = 1795482726000; function meteoFormatTime(ms) { return moment(ms).format('HH:mm'); } function meteoFormatDateTime(ms) { return moment(ms).format('DD.MM., HH:mm'); } function meteoComputeExtremes(points) { var minPoint = null, maxPoint = null; for (var i = 0; i < points.length; i++) { var p = points[i]; if (p.y === null || p.y === undefined) continue; if (!minPoint || p.y < minPoint.y) minPoint = p; if (!maxPoint || p.y > maxPoint.y) maxPoint = p; } return (minPoint || maxPoint) ? {min: minPoint, max: maxPoint} : null; } function meteoExtremeType(extremes, p) { if (!extremes || !p) return null; if (extremes.max && p.x === extremes.max.x && p.y === extremes.max.y) return 'max'; if (extremes.min && p.x === extremes.min.x && p.y === extremes.min.y) return 'min'; return null; } function meteoBuildDataset(spec) { var extremes = spec.highlightExtremes ? meteoComputeExtremes(spec.points) : null; var baseRadius = spec.pointRadius !== undefined ? spec.pointRadius : 0; var baseHoverRadius = baseRadius || 3; return { label: spec.label, data: spec.points, borderColor: spec.color, backgroundColor: spec.color, borderWidth: 2, tension: 0.15, fill: false, spanGaps: true, showLine: spec.showLine !== false, meteoUnit: spec.unit || '', meteoTooltipMode: spec.tooltipMode || 'default', meteoExtremes: extremes, pointRadius: function(context) { return meteoExtremeType(extremes, context.raw) ? Math.max(baseRadius, 5) : baseRadius; }, pointHoverRadius: function(context) { return meteoExtremeType(extremes, context.raw) ? Math.max(baseHoverRadius, 7) : baseHoverRadius; }, pointBackgroundColor: spec.color, pointBorderColor: '#ffffff', pointBorderWidth: function(context) { return meteoExtremeType(extremes, context.raw) ? 2 : 0; } }; } function buildMeteoChart(canvasId, resetButtonId, specs, extraOptions) { var canvas = document.getElementById(canvasId); if (!canvas || typeof Chart === 'undefined' || !specs.length) { return; } extraOptions = extraOptions || {}; var yScale = {title: {display: !!extraOptions.yLabel, text: extraOptions.yLabel || ''}}; if (extraOptions.yMin !== undefined) yScale.min = extraOptions.yMin; if (extraOptions.yMax !== undefined) yScale.max = extraOptions.yMax; if (extraOptions.yMode === 'compass') { yScale.min = 0; yScale.max = 360; yScale.ticks = { stepSize: 90, callback: function(value) { return meteoCompassLabels[value] !== undefined ? meteoCompassLabels[value] : value; } }; } meteoCharts[canvasId] = new Chart(canvas.getContext('2d'), { type: 'line', data: {datasets: specs.map(meteoBuildDataset)}, options: { responsive: true, maintainAspectRatio: false, animation: false, interaction: {mode: 'nearest', axis: 'x', intersect: false}, scales: { x: { type: 'linear', min: meteoRangeMin, max: meteoRangeMax, ticks: {maxTicksLimit: 8, callback: meteoFormatTime} }, y: yScale }, plugins: { legend: {display: true, position: 'top'}, tooltip: { callbacks: { title: function(items) { return items.length ? meteoFormatDateTime(items[0].parsed.x) : ''; }, label: function(context) { var ds = context.dataset; if (ds.meteoTooltipMode === 'windDirection') { return meteo_wind_direction_name(context.parsed.y); } var extremeType = meteoExtremeType(ds.meteoExtremes, context.raw); var suffix = extremeType === 'max' ? ' (dnešné maximum)' : (extremeType === 'min' ? ' (dnešné minimum)' : ''); return ds.label + ': ' + context.parsed.y + ds.meteoUnit + suffix; } } }, zoom: { pan: {enabled: true, mode: 'x'}, zoom: {wheel: {enabled: true}, pinch: {enabled: true}, mode: 'x'}, limits: {x: {min: meteoRangeMin, max: meteoRangeMax}} } } } }); var resetButton = document.getElementById(resetButtonId); if (resetButton) { resetButton.addEventListener('click', function() { meteoCharts[canvasId].resetZoom(); }); } } $(document).ready(function() { buildMeteoChart('chart-temperature-canvas', 'chart-temperature-reset', [{"label":"Teplota (°C)","color":"#d6212a","points":[{"x":1795474821000,"y":-2},{"x":1795474882000,"y":-2.100000000000000088817841970012523233890533447265625},{"x":1795474943000,"y":-2.100000000000000088817841970012523233890533447265625},{"x":1795475004000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475065000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475126000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475187000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475248000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475309000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475370000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475431000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475492000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475553000,"y":-2.20000000000000017763568394002504646778106689453125},{"x":1795475614000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795475675000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795475736000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795475797000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795475858000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795475919000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795475980000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476041000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476102000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476163000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476224000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476285000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476346000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795476407000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795476468000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795476529000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476590000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476651000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476712000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476773000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476834000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476895000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795476956000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477017000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477078000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477139000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477200000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477261000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477322000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477383000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477444000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477505000,"y":-2.29999999999999982236431605997495353221893310546875},{"x":1795477566000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795477627000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795477688000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795477749000,"y":-2.5},{"x":1795477810000,"y":-2.5},{"x":1795477871000,"y":-2.5},{"x":1795477932000,"y":-2.5},{"x":1795477993000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478054000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478115000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478176000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478237000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478298000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478359000,"y":-2.5},{"x":1795478420000,"y":-2.5},{"x":1795478481000,"y":-2.5},{"x":1795478542000,"y":-2.5},{"x":1795478603000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478664000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478725000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478786000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478847000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478908000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478969000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479030000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479091000,"y":-2.5},{"x":1795479152000,"y":-2.5},{"x":1795479213000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479274000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479335000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479396000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479457000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479518000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479579000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795479640000,"y":-2.5},{"x":1795479701000,"y":-2.5},{"x":1795479762000,"y":-2.5},{"x":1795479823000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795479884000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795479945000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480006000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480067000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480128000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480189000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480250000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480311000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480373000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480433000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480494000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480555000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480616000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480677000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480738000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480799000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480860000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480921000,"y":-2.399999999999999911182158029987476766109466552734375},{"x":1795480982000,"y":-2.5},{"x":1795481043000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481104000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481165000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481226000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481287000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481348000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481409000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481470000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481531000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481592000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481653000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481714000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795481775000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481836000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481897000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481958000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795482019000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795482080000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482141000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482202000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482264000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482324000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482385000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482446000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482507000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482568000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482629000,"y":-3},{"x":1795482690000,"y":-3}],"highlightExtremes":true,"unit":" °C"},{"label":"Rosný bod (°C)","color":"#5b9f4a","points":[{"x":1795474821000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795474882000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795474943000,"y":-7.0999999999999996447286321199499070644378662109375},{"x":1795475004000,"y":-7},{"x":1795475065000,"y":-7},{"x":1795475126000,"y":-7},{"x":1795475187000,"y":-7},{"x":1795475248000,"y":-7},{"x":1795475309000,"y":-7},{"x":1795475370000,"y":-7},{"x":1795475431000,"y":-7},{"x":1795475492000,"y":-7},{"x":1795475553000,"y":-7},{"x":1795475614000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795475675000,"y":-7},{"x":1795475736000,"y":-7},{"x":1795475797000,"y":-7},{"x":1795475858000,"y":-7},{"x":1795475919000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795475980000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795476041000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476102000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476163000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476224000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795476285000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476346000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795476407000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795476468000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795476529000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476590000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476651000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476712000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476773000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476834000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476895000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795476956000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477017000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477078000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477139000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477200000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477261000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477322000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477383000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477444000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477505000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477566000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795477627000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795477688000,"y":-6.5},{"x":1795477749000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477810000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477871000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795477932000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795477993000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795478054000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795478115000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795478176000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795478237000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795478298000,"y":-7},{"x":1795478359000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795478420000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795478481000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795478542000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795478603000,"y":-7},{"x":1795478664000,"y":-7},{"x":1795478725000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795478786000,"y":-7},{"x":1795478847000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795478908000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795478969000,"y":-7},{"x":1795479030000,"y":-7},{"x":1795479091000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795479152000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795479213000,"y":-7},{"x":1795479274000,"y":-7},{"x":1795479335000,"y":-7},{"x":1795479396000,"y":-7},{"x":1795479457000,"y":-7},{"x":1795479518000,"y":-7},{"x":1795479579000,"y":-7},{"x":1795479640000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795479701000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795479762000,"y":-6.9000000000000003552713678800500929355621337890625},{"x":1795479823000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795479884000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795479945000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795480006000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795480067000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795480128000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480189000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480250000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480311000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480373000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480433000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480494000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480555000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480616000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480677000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480738000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480799000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480860000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480921000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795480982000,"y":-6.5999999999999996447286321199499070644378662109375},{"x":1795481043000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481104000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481165000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481226000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481287000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481348000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795481409000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481470000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481531000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481592000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795481653000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481714000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481775000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481836000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481897000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795481958000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795482019000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795482080000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795482141000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795482202000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795482264000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795482324000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795482385000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795482446000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795482507000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795482568000,"y":-6.79999999999999982236431605997495353221893310546875},{"x":1795482629000,"y":-6.70000000000000017763568394002504646778106689453125},{"x":1795482690000,"y":-6.9000000000000003552713678800500929355621337890625}],"highlightExtremes":false,"unit":" °C"}], {"yLabel":"\u00b0C"}); }); $(document).ready(function() { buildMeteoChart('chart-humidity-canvas', 'chart-humidity-reset', [{"label":"Vlhkosť (%)","color":"#ff9000","points":[{"x":1795474821000,"y":70},{"x":1795474882000,"y":70},{"x":1795474943000,"y":69},{"x":1795475004000,"y":70},{"x":1795475065000,"y":70},{"x":1795475126000,"y":70},{"x":1795475187000,"y":70},{"x":1795475248000,"y":70},{"x":1795475309000,"y":70},{"x":1795475370000,"y":70},{"x":1795475431000,"y":70},{"x":1795475492000,"y":70},{"x":1795475553000,"y":70},{"x":1795475614000,"y":71},{"x":1795475675000,"y":71},{"x":1795475736000,"y":71},{"x":1795475797000,"y":71},{"x":1795475858000,"y":71},{"x":1795475919000,"y":71},{"x":1795475980000,"y":71},{"x":1795476041000,"y":72},{"x":1795476102000,"y":72},{"x":1795476163000,"y":72},{"x":1795476224000,"y":71},{"x":1795476285000,"y":72},{"x":1795476346000,"y":72},{"x":1795476407000,"y":72},{"x":1795476468000,"y":72},{"x":1795476529000,"y":72},{"x":1795476590000,"y":72},{"x":1795476651000,"y":72},{"x":1795476712000,"y":72},{"x":1795476773000,"y":72},{"x":1795476834000,"y":72},{"x":1795476895000,"y":72},{"x":1795476956000,"y":72},{"x":1795477017000,"y":72},{"x":1795477078000,"y":72},{"x":1795477139000,"y":72},{"x":1795477200000,"y":72},{"x":1795477261000,"y":72},{"x":1795477322000,"y":72},{"x":1795477383000,"y":72},{"x":1795477444000,"y":72},{"x":1795477505000,"y":72},{"x":1795477566000,"y":72},{"x":1795477627000,"y":73},{"x":1795477688000,"y":74},{"x":1795477749000,"y":73},{"x":1795477810000,"y":73},{"x":1795477871000,"y":72},{"x":1795477932000,"y":73},{"x":1795477993000,"y":73},{"x":1795478054000,"y":73},{"x":1795478115000,"y":73},{"x":1795478176000,"y":73},{"x":1795478237000,"y":73},{"x":1795478298000,"y":72},{"x":1795478359000,"y":73},{"x":1795478420000,"y":72},{"x":1795478481000,"y":72},{"x":1795478542000,"y":73},{"x":1795478603000,"y":72},{"x":1795478664000,"y":72},{"x":1795478725000,"y":73},{"x":1795478786000,"y":72},{"x":1795478847000,"y":73},{"x":1795478908000,"y":73},{"x":1795478969000,"y":72},{"x":1795479030000,"y":72},{"x":1795479091000,"y":72},{"x":1795479152000,"y":72},{"x":1795479213000,"y":72},{"x":1795479274000,"y":72},{"x":1795479335000,"y":72},{"x":1795479396000,"y":72},{"x":1795479457000,"y":72},{"x":1795479518000,"y":72},{"x":1795479579000,"y":72},{"x":1795479640000,"y":72},{"x":1795479701000,"y":72},{"x":1795479762000,"y":72},{"x":1795479823000,"y":72},{"x":1795479884000,"y":72},{"x":1795479945000,"y":72},{"x":1795480006000,"y":72},{"x":1795480067000,"y":72},{"x":1795480128000,"y":73},{"x":1795480189000,"y":73},{"x":1795480250000,"y":73},{"x":1795480311000,"y":73},{"x":1795480373000,"y":73},{"x":1795480433000,"y":73},{"x":1795480494000,"y":73},{"x":1795480555000,"y":73},{"x":1795480616000,"y":73},{"x":1795480677000,"y":73},{"x":1795480738000,"y":73},{"x":1795480799000,"y":73},{"x":1795480860000,"y":73},{"x":1795480921000,"y":73},{"x":1795480982000,"y":74},{"x":1795481043000,"y":74},{"x":1795481104000,"y":74},{"x":1795481165000,"y":74},{"x":1795481226000,"y":74},{"x":1795481287000,"y":74},{"x":1795481348000,"y":73},{"x":1795481409000,"y":74},{"x":1795481470000,"y":74},{"x":1795481531000,"y":74},{"x":1795481592000,"y":73},{"x":1795481653000,"y":74},{"x":1795481714000,"y":74},{"x":1795481775000,"y":74},{"x":1795481836000,"y":74},{"x":1795481897000,"y":74},{"x":1795481958000,"y":74},{"x":1795482019000,"y":74},{"x":1795482080000,"y":74},{"x":1795482141000,"y":75},{"x":1795482202000,"y":75},{"x":1795482264000,"y":75},{"x":1795482324000,"y":75},{"x":1795482385000,"y":75},{"x":1795482446000,"y":75},{"x":1795482507000,"y":75},{"x":1795482568000,"y":75},{"x":1795482629000,"y":76},{"x":1795482690000,"y":75}],"highlightExtremes":true,"unit":" %"}], {"yLabel":"%"}); }); $(document).ready(function() { buildMeteoChart('chart-pressure-canvas', 'chart-pressure-reset', [{"label":"Atmosférický tlak (hPa)","color":"#000000","points":[{"x":1795474821000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795474882000,"y":1019},{"x":1795474943000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795475004000,"y":1019},{"x":1795475065000,"y":1019},{"x":1795475126000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795475187000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475248000,"y":1019},{"x":1795475309000,"y":1019},{"x":1795475370000,"y":1019.200000000000045474735088646411895751953125},{"x":1795475431000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475492000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475553000,"y":1019},{"x":1795475614000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475675000,"y":1019},{"x":1795475736000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475797000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475858000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795475919000,"y":1019},{"x":1795475980000,"y":1019.200000000000045474735088646411895751953125},{"x":1795476041000,"y":1019.299999999999954525264911353588104248046875},{"x":1795476102000,"y":1019.200000000000045474735088646411895751953125},{"x":1795476163000,"y":1019.200000000000045474735088646411895751953125},{"x":1795476224000,"y":1019.299999999999954525264911353588104248046875},{"x":1795476285000,"y":1019},{"x":1795476346000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476407000,"y":1019.299999999999954525264911353588104248046875},{"x":1795476468000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476529000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476590000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476651000,"y":1019.299999999999954525264911353588104248046875},{"x":1795476712000,"y":1019.200000000000045474735088646411895751953125},{"x":1795476773000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476834000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476895000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795476956000,"y":1019.200000000000045474735088646411895751953125},{"x":1795477017000,"y":1019},{"x":1795477078000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795477139000,"y":1019},{"x":1795477200000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795477261000,"y":1019},{"x":1795477322000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795477383000,"y":1019.200000000000045474735088646411895751953125},{"x":1795477444000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795477505000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795477566000,"y":1019},{"x":1795477627000,"y":1019},{"x":1795477688000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795477749000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795477810000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795477871000,"y":1019},{"x":1795477932000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795477993000,"y":1019},{"x":1795478054000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478115000,"y":1019},{"x":1795478176000,"y":1018.6000000000000227373675443232059478759765625},{"x":1795478237000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478298000,"y":1018.799999999999954525264911353588104248046875},{"x":1795478359000,"y":1018.799999999999954525264911353588104248046875},{"x":1795478420000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478481000,"y":1019},{"x":1795478542000,"y":1018.799999999999954525264911353588104248046875},{"x":1795478603000,"y":1018.799999999999954525264911353588104248046875},{"x":1795478664000,"y":1018.700000000000045474735088646411895751953125},{"x":1795478725000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478786000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478847000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478908000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795478969000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795479030000,"y":1019},{"x":1795479091000,"y":1019},{"x":1795479152000,"y":1019},{"x":1795479213000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795479274000,"y":1019},{"x":1795479335000,"y":1019},{"x":1795479396000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795479457000,"y":1018.8999999999999772626324556767940521240234375},{"x":1795479518000,"y":1019.200000000000045474735088646411895751953125},{"x":1795479579000,"y":1019.200000000000045474735088646411895751953125},{"x":1795479640000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795479701000,"y":1019.200000000000045474735088646411895751953125},{"x":1795479762000,"y":1019.200000000000045474735088646411895751953125},{"x":1795479823000,"y":1019.299999999999954525264911353588104248046875},{"x":1795479884000,"y":1019.200000000000045474735088646411895751953125},{"x":1795479945000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480006000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480067000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480128000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480189000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480250000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795480311000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480373000,"y":1019.3999999999999772626324556767940521240234375},{"x":1795480433000,"y":1019.3999999999999772626324556767940521240234375},{"x":1795480494000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480555000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480616000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480677000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480738000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480799000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480860000,"y":1019.299999999999954525264911353588104248046875},{"x":1795480921000,"y":1019.200000000000045474735088646411895751953125},{"x":1795480982000,"y":1019.299999999999954525264911353588104248046875},{"x":1795481043000,"y":1019.299999999999954525264911353588104248046875},{"x":1795481104000,"y":1019.299999999999954525264911353588104248046875},{"x":1795481165000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481226000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481287000,"y":1019.5},{"x":1795481348000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481409000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481470000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481531000,"y":1019.299999999999954525264911353588104248046875},{"x":1795481592000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481653000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481714000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481775000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481836000,"y":1019.200000000000045474735088646411895751953125},{"x":1795481897000,"y":1019},{"x":1795481958000,"y":1019.200000000000045474735088646411895751953125},{"x":1795482019000,"y":1019.200000000000045474735088646411895751953125},{"x":1795482080000,"y":1019.200000000000045474735088646411895751953125},{"x":1795482141000,"y":1019.299999999999954525264911353588104248046875},{"x":1795482202000,"y":1019.1000000000000227373675443232059478759765625},{"x":1795482264000,"y":1019.200000000000045474735088646411895751953125},{"x":1795482324000,"y":1019.299999999999954525264911353588104248046875},{"x":1795482385000,"y":1019.299999999999954525264911353588104248046875},{"x":1795482446000,"y":1019.299999999999954525264911353588104248046875},{"x":1795482507000,"y":1019.3999999999999772626324556767940521240234375},{"x":1795482568000,"y":1019.3999999999999772626324556767940521240234375},{"x":1795482629000,"y":1019.299999999999954525264911353588104248046875},{"x":1795482690000,"y":1019.299999999999954525264911353588104248046875}],"highlightExtremes":true,"unit":" hPa"}], {"yLabel":"hPa"}); }); $(document).ready(function() { buildMeteoChart('chart-wind-canvas', 'chart-wind-reset', [{"label":"Rýchlosť vetra (km\/h)","color":"#002f80","points":[{"x":1795474821000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795474882000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795474943000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795475004000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795475065000,"y":9},{"x":1795475126000,"y":6.79999999999999982236431605997495353221893310546875},{"x":1795475187000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795475248000,"y":9},{"x":1795475309000,"y":9},{"x":1795475370000,"y":9},{"x":1795475431000,"y":9},{"x":1795475492000,"y":7.9000000000000003552713678800500929355621337890625},{"x":1795475553000,"y":5},{"x":1795475614000,"y":5},{"x":1795475675000,"y":4.29999999999999982236431605997495353221893310546875},{"x":1795475736000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795475797000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795475858000,"y":13},{"x":1795475919000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795475980000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795476041000,"y":6.79999999999999982236431605997495353221893310546875},{"x":1795476102000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795476163000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795476224000,"y":5},{"x":1795476285000,"y":12.5999999999999996447286321199499070644378662109375},{"x":1795476346000,"y":6.79999999999999982236431605997495353221893310546875},{"x":1795476407000,"y":9.4000000000000003552713678800500929355621337890625},{"x":1795476468000,"y":6.5},{"x":1795476529000,"y":6.5},{"x":1795476590000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795476651000,"y":4},{"x":1795476712000,"y":2.20000000000000017763568394002504646778106689453125},{"x":1795476773000,"y":2.5},{"x":1795476834000,"y":7.9000000000000003552713678800500929355621337890625},{"x":1795476895000,"y":6.5},{"x":1795476956000,"y":2.20000000000000017763568394002504646778106689453125},{"x":1795477017000,"y":11.5},{"x":1795477078000,"y":4.29999999999999982236431605997495353221893310546875},{"x":1795477139000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795477200000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795477261000,"y":6.5},{"x":1795477322000,"y":1.100000000000000088817841970012523233890533447265625},{"x":1795477383000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795477444000,"y":2.899999999999999911182158029987476766109466552734375},{"x":1795477505000,"y":6.0999999999999996447286321199499070644378662109375},{"x":1795477566000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795477627000,"y":7.9000000000000003552713678800500929355621337890625},{"x":1795477688000,"y":7.9000000000000003552713678800500929355621337890625},{"x":1795477749000,"y":1.399999999999999911182158029987476766109466552734375},{"x":1795477810000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795477871000,"y":6.5},{"x":1795477932000,"y":5},{"x":1795477993000,"y":2.20000000000000017763568394002504646778106689453125},{"x":1795478054000,"y":4},{"x":1795478115000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795478176000,"y":4},{"x":1795478237000,"y":11.5},{"x":1795478298000,"y":6.5},{"x":1795478359000,"y":11.5},{"x":1795478420000,"y":5},{"x":1795478481000,"y":9.4000000000000003552713678800500929355621337890625},{"x":1795478542000,"y":9},{"x":1795478603000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795478664000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795478725000,"y":15.5},{"x":1795478786000,"y":6.0999999999999996447286321199499070644378662109375},{"x":1795478847000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795478908000,"y":17.60000000000000142108547152020037174224853515625},{"x":1795478969000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795479030000,"y":9},{"x":1795479091000,"y":9.4000000000000003552713678800500929355621337890625},{"x":1795479152000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795479213000,"y":6.5},{"x":1795479274000,"y":6.79999999999999982236431605997495353221893310546875},{"x":1795479335000,"y":12.5999999999999996447286321199499070644378662109375},{"x":1795479396000,"y":9},{"x":1795479457000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795479518000,"y":12.5999999999999996447286321199499070644378662109375},{"x":1795479579000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795479640000,"y":13},{"x":1795479701000,"y":14},{"x":1795479762000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795479823000,"y":20.5},{"x":1795479884000,"y":9},{"x":1795479945000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795480006000,"y":2.899999999999999911182158029987476766109466552734375},{"x":1795480067000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795480128000,"y":6.0999999999999996447286321199499070644378662109375},{"x":1795480189000,"y":9},{"x":1795480250000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795480311000,"y":3.600000000000000088817841970012523233890533447265625},{"x":1795480373000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795480433000,"y":9.4000000000000003552713678800500929355621337890625},{"x":1795480494000,"y":3.600000000000000088817841970012523233890533447265625},{"x":1795480555000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795480616000,"y":6.5},{"x":1795480677000,"y":2.5},{"x":1795480738000,"y":13},{"x":1795480799000,"y":18},{"x":1795480860000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795480921000,"y":4},{"x":1795480982000,"y":6.0999999999999996447286321199499070644378662109375},{"x":1795481043000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795481104000,"y":8.5999999999999996447286321199499070644378662109375},{"x":1795481165000,"y":2.5},{"x":1795481226000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795481287000,"y":20.5},{"x":1795481348000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795481409000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795481470000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795481531000,"y":15.5},{"x":1795481592000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795481653000,"y":6.0999999999999996447286321199499070644378662109375},{"x":1795481714000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795481775000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795481836000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795481897000,"y":7.9000000000000003552713678800500929355621337890625},{"x":1795481958000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795482019000,"y":9},{"x":1795482080000,"y":5},{"x":1795482141000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795482202000,"y":12.5999999999999996447286321199499070644378662109375},{"x":1795482264000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795482324000,"y":2.20000000000000017763568394002504646778106689453125},{"x":1795482385000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795482446000,"y":6.5},{"x":1795482507000,"y":5.4000000000000003552713678800500929355621337890625},{"x":1795482568000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795482629000,"y":3.600000000000000088817841970012523233890533447265625},{"x":1795482690000,"y":6.5}],"highlightExtremes":true,"unit":" km\/h"},{"label":"Náraz vetra (km\/h)","color":"#EF9856","points":[{"x":1795474821000,"y":15.5},{"x":1795474882000,"y":15.5},{"x":1795474943000,"y":20.5},{"x":1795475004000,"y":20.5},{"x":1795475065000,"y":15.5},{"x":1795475126000,"y":15.5},{"x":1795475187000,"y":18},{"x":1795475248000,"y":18},{"x":1795475309000,"y":15.5},{"x":1795475370000,"y":15.5},{"x":1795475431000,"y":15.5},{"x":1795475492000,"y":13},{"x":1795475553000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795475614000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795475675000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795475736000,"y":13},{"x":1795475797000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795475858000,"y":20.5},{"x":1795475919000,"y":23},{"x":1795475980000,"y":20.5},{"x":1795476041000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795476102000,"y":18},{"x":1795476163000,"y":13},{"x":1795476224000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795476285000,"y":18},{"x":1795476346000,"y":18},{"x":1795476407000,"y":18},{"x":1795476468000,"y":13},{"x":1795476529000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795476590000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795476651000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795476712000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795476773000,"y":5},{"x":1795476834000,"y":13},{"x":1795476895000,"y":13},{"x":1795476956000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795477017000,"y":13},{"x":1795477078000,"y":13},{"x":1795477139000,"y":13},{"x":1795477200000,"y":13},{"x":1795477261000,"y":13},{"x":1795477322000,"y":18},{"x":1795477383000,"y":18},{"x":1795477444000,"y":13},{"x":1795477505000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795477566000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795477627000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795477688000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795477749000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795477810000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795477871000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795477932000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795477993000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795478054000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795478115000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795478176000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795478237000,"y":23},{"x":1795478298000,"y":23},{"x":1795478359000,"y":18},{"x":1795478420000,"y":18},{"x":1795478481000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795478542000,"y":15.5},{"x":1795478603000,"y":18},{"x":1795478664000,"y":18},{"x":1795478725000,"y":30.60000000000000142108547152020037174224853515625},{"x":1795478786000,"y":30.60000000000000142108547152020037174224853515625},{"x":1795478847000,"y":13},{"x":1795478908000,"y":23},{"x":1795478969000,"y":23},{"x":1795479030000,"y":18},{"x":1795479091000,"y":18},{"x":1795479152000,"y":15.5},{"x":1795479213000,"y":15.5},{"x":1795479274000,"y":13},{"x":1795479335000,"y":20.5},{"x":1795479396000,"y":18},{"x":1795479457000,"y":15.5},{"x":1795479518000,"y":20.5},{"x":1795479579000,"y":30.60000000000000142108547152020037174224853515625},{"x":1795479640000,"y":23},{"x":1795479701000,"y":23},{"x":1795479762000,"y":20.5},{"x":1795479823000,"y":30.60000000000000142108547152020037174224853515625},{"x":1795479884000,"y":30.60000000000000142108547152020037174224853515625},{"x":1795479945000,"y":15.5},{"x":1795480006000,"y":15.5},{"x":1795480067000,"y":15.5},{"x":1795480128000,"y":15.5},{"x":1795480189000,"y":18},{"x":1795480250000,"y":18},{"x":1795480311000,"y":18},{"x":1795480373000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795480433000,"y":15.5},{"x":1795480494000,"y":15.5},{"x":1795480555000,"y":15.5},{"x":1795480616000,"y":20.5},{"x":1795480677000,"y":20.5},{"x":1795480738000,"y":18},{"x":1795480799000,"y":23},{"x":1795480860000,"y":23},{"x":1795480921000,"y":13},{"x":1795480982000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795481043000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795481104000,"y":18},{"x":1795481165000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795481226000,"y":18},{"x":1795481287000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795481348000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795481409000,"y":23},{"x":1795481470000,"y":23},{"x":1795481531000,"y":23},{"x":1795481592000,"y":23},{"x":1795481653000,"y":15.5},{"x":1795481714000,"y":18},{"x":1795481775000,"y":13},{"x":1795481836000,"y":23},{"x":1795481897000,"y":23},{"x":1795481958000,"y":13},{"x":1795482019000,"y":15.5},{"x":1795482080000,"y":15.5},{"x":1795482141000,"y":25.60000000000000142108547152020037174224853515625},{"x":1795482202000,"y":25.60000000000000142108547152020037174224853515625},{"x":1795482264000,"y":18},{"x":1795482324000,"y":18},{"x":1795482385000,"y":13},{"x":1795482446000,"y":18},{"x":1795482507000,"y":18},{"x":1795482568000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795482629000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795482690000,"y":10.0999999999999996447286321199499070644378662109375}],"highlightExtremes":true,"unit":" km\/h","showLine":false,"pointRadius":3}], {"yLabel":"km\/h"}); }); $(document).ready(function() { buildMeteoChart('chart-wind-direction-canvas', 'chart-wind-direction-reset', [{"label":"Smer vetra","color":"#002f80","points":[{"x":1795474821000,"y":274},{"x":1795474882000,"y":267},{"x":1795474943000,"y":261},{"x":1795475004000,"y":277},{"x":1795475065000,"y":264},{"x":1795475126000,"y":245},{"x":1795475187000,"y":245},{"x":1795475248000,"y":278},{"x":1795475309000,"y":275},{"x":1795475370000,"y":302},{"x":1795475431000,"y":273},{"x":1795475492000,"y":283},{"x":1795475553000,"y":290},{"x":1795475614000,"y":253},{"x":1795475675000,"y":276},{"x":1795475736000,"y":273},{"x":1795475797000,"y":270},{"x":1795475858000,"y":289},{"x":1795475919000,"y":241},{"x":1795475980000,"y":219},{"x":1795476041000,"y":214},{"x":1795476102000,"y":290},{"x":1795476163000,"y":268},{"x":1795476224000,"y":274},{"x":1795476285000,"y":257},{"x":1795476346000,"y":262},{"x":1795476407000,"y":196},{"x":1795476468000,"y":222},{"x":1795476529000,"y":277},{"x":1795476590000,"y":271},{"x":1795476651000,"y":284},{"x":1795476712000,"y":234},{"x":1795476773000,"y":235},{"x":1795476834000,"y":229},{"x":1795476895000,"y":266},{"x":1795476956000,"y":281},{"x":1795477017000,"y":222},{"x":1795477078000,"y":240},{"x":1795477139000,"y":264},{"x":1795477200000,"y":242},{"x":1795477261000,"y":246},{"x":1795477322000,"y":268},{"x":1795477383000,"y":243},{"x":1795477444000,"y":252},{"x":1795477505000,"y":267},{"x":1795477566000,"y":240},{"x":1795477627000,"y":226},{"x":1795477688000,"y":247},{"x":1795477749000,"y":231},{"x":1795477810000,"y":220},{"x":1795477871000,"y":228},{"x":1795477932000,"y":257},{"x":1795477993000,"y":248},{"x":1795478054000,"y":240},{"x":1795478115000,"y":325},{"x":1795478176000,"y":350},{"x":1795478237000,"y":240},{"x":1795478298000,"y":231},{"x":1795478359000,"y":261},{"x":1795478420000,"y":217},{"x":1795478481000,"y":273},{"x":1795478542000,"y":235},{"x":1795478603000,"y":267},{"x":1795478664000,"y":228},{"x":1795478725000,"y":234},{"x":1795478786000,"y":248},{"x":1795478847000,"y":272},{"x":1795478908000,"y":284},{"x":1795478969000,"y":275},{"x":1795479030000,"y":306},{"x":1795479091000,"y":258},{"x":1795479152000,"y":278},{"x":1795479213000,"y":301},{"x":1795479274000,"y":257},{"x":1795479335000,"y":292},{"x":1795479396000,"y":235},{"x":1795479457000,"y":244},{"x":1795479518000,"y":267},{"x":1795479579000,"y":276},{"x":1795479640000,"y":257},{"x":1795479701000,"y":250},{"x":1795479762000,"y":268},{"x":1795479823000,"y":280},{"x":1795479884000,"y":269},{"x":1795479945000,"y":260},{"x":1795480006000,"y":292},{"x":1795480067000,"y":267},{"x":1795480128000,"y":247},{"x":1795480189000,"y":232},{"x":1795480250000,"y":251},{"x":1795480311000,"y":262},{"x":1795480373000,"y":274},{"x":1795480433000,"y":253},{"x":1795480494000,"y":288},{"x":1795480555000,"y":201},{"x":1795480616000,"y":198},{"x":1795480677000,"y":261},{"x":1795480738000,"y":276},{"x":1795480799000,"y":245},{"x":1795480860000,"y":272},{"x":1795480921000,"y":259},{"x":1795480982000,"y":264},{"x":1795481043000,"y":279},{"x":1795481104000,"y":282},{"x":1795481165000,"y":283},{"x":1795481226000,"y":243},{"x":1795481287000,"y":275},{"x":1795481348000,"y":263},{"x":1795481409000,"y":269},{"x":1795481470000,"y":293},{"x":1795481531000,"y":277},{"x":1795481592000,"y":289},{"x":1795481653000,"y":222},{"x":1795481714000,"y":279},{"x":1795481775000,"y":231},{"x":1795481836000,"y":251},{"x":1795481897000,"y":218},{"x":1795481958000,"y":212},{"x":1795482019000,"y":289},{"x":1795482080000,"y":302},{"x":1795482141000,"y":266},{"x":1795482202000,"y":213},{"x":1795482264000,"y":282},{"x":1795482324000,"y":283},{"x":1795482385000,"y":229},{"x":1795482446000,"y":265},{"x":1795482507000,"y":259},{"x":1795482568000,"y":245},{"x":1795482629000,"y":273},{"x":1795482690000,"y":255}],"highlightExtremes":false,"showLine":false,"pointRadius":3,"tooltipMode":"windDirection"}], {"yMode":"compass"}); }); $(document).ready(function() { buildMeteoChart('chart-solar-radiation-canvas', 'chart-solar-radiation-reset', [{"label":"Slnečné žiarenie (W\/m2)","color":"#ffb92f","points":[{"x":1795474821000,"y":0},{"x":1795474882000,"y":0},{"x":1795474943000,"y":0},{"x":1795475004000,"y":0},{"x":1795475065000,"y":0},{"x":1795475126000,"y":0},{"x":1795475187000,"y":0},{"x":1795475248000,"y":0},{"x":1795475309000,"y":0},{"x":1795475370000,"y":0},{"x":1795475431000,"y":0},{"x":1795475492000,"y":0},{"x":1795475553000,"y":0},{"x":1795475614000,"y":0},{"x":1795475675000,"y":0},{"x":1795475736000,"y":0},{"x":1795475797000,"y":0},{"x":1795475858000,"y":0},{"x":1795475919000,"y":0},{"x":1795475980000,"y":0},{"x":1795476041000,"y":0},{"x":1795476102000,"y":0},{"x":1795476163000,"y":0},{"x":1795476224000,"y":0},{"x":1795476285000,"y":0},{"x":1795476346000,"y":0},{"x":1795476407000,"y":0},{"x":1795476468000,"y":0},{"x":1795476529000,"y":0},{"x":1795476590000,"y":0},{"x":1795476651000,"y":0},{"x":1795476712000,"y":0},{"x":1795476773000,"y":0},{"x":1795476834000,"y":0},{"x":1795476895000,"y":0},{"x":1795476956000,"y":0},{"x":1795477017000,"y":0},{"x":1795477078000,"y":0},{"x":1795477139000,"y":0},{"x":1795477200000,"y":0},{"x":1795477261000,"y":0},{"x":1795477322000,"y":0},{"x":1795477383000,"y":0},{"x":1795477444000,"y":0},{"x":1795477505000,"y":0},{"x":1795477566000,"y":0},{"x":1795477627000,"y":0},{"x":1795477688000,"y":0},{"x":1795477749000,"y":0},{"x":1795477810000,"y":0},{"x":1795477871000,"y":0},{"x":1795477932000,"y":0},{"x":1795477993000,"y":0},{"x":1795478054000,"y":0},{"x":1795478115000,"y":0},{"x":1795478176000,"y":0},{"x":1795478237000,"y":0},{"x":1795478298000,"y":0},{"x":1795478359000,"y":0},{"x":1795478420000,"y":0},{"x":1795478481000,"y":0},{"x":1795478542000,"y":0},{"x":1795478603000,"y":0},{"x":1795478664000,"y":0},{"x":1795478725000,"y":0},{"x":1795478786000,"y":0},{"x":1795478847000,"y":0},{"x":1795478908000,"y":0},{"x":1795478969000,"y":0},{"x":1795479030000,"y":0},{"x":1795479091000,"y":0},{"x":1795479152000,"y":0},{"x":1795479213000,"y":0},{"x":1795479274000,"y":0},{"x":1795479335000,"y":0},{"x":1795479396000,"y":0},{"x":1795479457000,"y":0},{"x":1795479518000,"y":0},{"x":1795479579000,"y":0},{"x":1795479640000,"y":0},{"x":1795479701000,"y":0},{"x":1795479762000,"y":0},{"x":1795479823000,"y":0},{"x":1795479884000,"y":0},{"x":1795479945000,"y":0},{"x":1795480006000,"y":0},{"x":1795480067000,"y":0},{"x":1795480128000,"y":0},{"x":1795480189000,"y":0},{"x":1795480250000,"y":0},{"x":1795480311000,"y":0},{"x":1795480373000,"y":0},{"x":1795480433000,"y":0},{"x":1795480494000,"y":0},{"x":1795480555000,"y":0},{"x":1795480616000,"y":0},{"x":1795480677000,"y":0},{"x":1795480738000,"y":0},{"x":1795480799000,"y":0},{"x":1795480860000,"y":0},{"x":1795480921000,"y":0},{"x":1795480982000,"y":0},{"x":1795481043000,"y":0},{"x":1795481104000,"y":0},{"x":1795481165000,"y":0},{"x":1795481226000,"y":0},{"x":1795481287000,"y":0},{"x":1795481348000,"y":0},{"x":1795481409000,"y":0},{"x":1795481470000,"y":0},{"x":1795481531000,"y":0},{"x":1795481592000,"y":0},{"x":1795481653000,"y":0},{"x":1795481714000,"y":0},{"x":1795481775000,"y":0},{"x":1795481836000,"y":0},{"x":1795481897000,"y":0},{"x":1795481958000,"y":0},{"x":1795482019000,"y":0},{"x":1795482080000,"y":0},{"x":1795482141000,"y":0},{"x":1795482202000,"y":0},{"x":1795482264000,"y":0},{"x":1795482324000,"y":0},{"x":1795482385000,"y":0},{"x":1795482446000,"y":0},{"x":1795482507000,"y":0},{"x":1795482568000,"y":0},{"x":1795482629000,"y":0},{"x":1795482690000,"y":0}],"highlightExtremes":true,"unit":" W\/m2"}], {"yLabel":"W\/m2","yMin":0}); }); $(document).ready(function() { buildMeteoChart('chart-uv-canvas', 'chart-uv-reset', [{"label":"UV žiarenie","color":"#802674","points":[{"x":1795474821000,"y":0},{"x":1795474882000,"y":0},{"x":1795474943000,"y":0},{"x":1795475004000,"y":0},{"x":1795475065000,"y":0},{"x":1795475126000,"y":0},{"x":1795475187000,"y":0},{"x":1795475248000,"y":0},{"x":1795475309000,"y":0},{"x":1795475370000,"y":0},{"x":1795475431000,"y":0},{"x":1795475492000,"y":0},{"x":1795475553000,"y":0},{"x":1795475614000,"y":0},{"x":1795475675000,"y":0},{"x":1795475736000,"y":0},{"x":1795475797000,"y":0},{"x":1795475858000,"y":0},{"x":1795475919000,"y":0},{"x":1795475980000,"y":0},{"x":1795476041000,"y":0},{"x":1795476102000,"y":0},{"x":1795476163000,"y":0},{"x":1795476224000,"y":0},{"x":1795476285000,"y":0},{"x":1795476346000,"y":0},{"x":1795476407000,"y":0},{"x":1795476468000,"y":0},{"x":1795476529000,"y":0},{"x":1795476590000,"y":0},{"x":1795476651000,"y":0},{"x":1795476712000,"y":0},{"x":1795476773000,"y":0},{"x":1795476834000,"y":0},{"x":1795476895000,"y":0},{"x":1795476956000,"y":0},{"x":1795477017000,"y":0},{"x":1795477078000,"y":0},{"x":1795477139000,"y":0},{"x":1795477200000,"y":0},{"x":1795477261000,"y":0},{"x":1795477322000,"y":0},{"x":1795477383000,"y":0},{"x":1795477444000,"y":0},{"x":1795477505000,"y":0},{"x":1795477566000,"y":0},{"x":1795477627000,"y":0},{"x":1795477688000,"y":0},{"x":1795477749000,"y":0},{"x":1795477810000,"y":0},{"x":1795477871000,"y":0},{"x":1795477932000,"y":0},{"x":1795477993000,"y":0},{"x":1795478054000,"y":0},{"x":1795478115000,"y":0},{"x":1795478176000,"y":0},{"x":1795478237000,"y":0},{"x":1795478298000,"y":0},{"x":1795478359000,"y":0},{"x":1795478420000,"y":0},{"x":1795478481000,"y":0},{"x":1795478542000,"y":0},{"x":1795478603000,"y":0},{"x":1795478664000,"y":0},{"x":1795478725000,"y":0},{"x":1795478786000,"y":0},{"x":1795478847000,"y":0},{"x":1795478908000,"y":0},{"x":1795478969000,"y":0},{"x":1795479030000,"y":0},{"x":1795479091000,"y":0},{"x":1795479152000,"y":0},{"x":1795479213000,"y":0},{"x":1795479274000,"y":0},{"x":1795479335000,"y":0},{"x":1795479396000,"y":0},{"x":1795479457000,"y":0},{"x":1795479518000,"y":0},{"x":1795479579000,"y":0},{"x":1795479640000,"y":0},{"x":1795479701000,"y":0},{"x":1795479762000,"y":0},{"x":1795479823000,"y":0},{"x":1795479884000,"y":0},{"x":1795479945000,"y":0},{"x":1795480006000,"y":0},{"x":1795480067000,"y":0},{"x":1795480128000,"y":0},{"x":1795480189000,"y":0},{"x":1795480250000,"y":0},{"x":1795480311000,"y":0},{"x":1795480373000,"y":0},{"x":1795480433000,"y":0},{"x":1795480494000,"y":0},{"x":1795480555000,"y":0},{"x":1795480616000,"y":0},{"x":1795480677000,"y":0},{"x":1795480738000,"y":0},{"x":1795480799000,"y":0},{"x":1795480860000,"y":0},{"x":1795480921000,"y":0},{"x":1795480982000,"y":0},{"x":1795481043000,"y":0},{"x":1795481104000,"y":0},{"x":1795481165000,"y":0},{"x":1795481226000,"y":0},{"x":1795481287000,"y":0},{"x":1795481348000,"y":0},{"x":1795481409000,"y":0},{"x":1795481470000,"y":0},{"x":1795481531000,"y":0},{"x":1795481592000,"y":0},{"x":1795481653000,"y":0},{"x":1795481714000,"y":0},{"x":1795481775000,"y":0},{"x":1795481836000,"y":0},{"x":1795481897000,"y":0},{"x":1795481958000,"y":0},{"x":1795482019000,"y":0},{"x":1795482080000,"y":0},{"x":1795482141000,"y":0},{"x":1795482202000,"y":0},{"x":1795482264000,"y":0},{"x":1795482324000,"y":0},{"x":1795482385000,"y":0},{"x":1795482446000,"y":0},{"x":1795482507000,"y":0},{"x":1795482568000,"y":0},{"x":1795482629000,"y":0},{"x":1795482690000,"y":0}],"highlightExtremes":true}], {"yMin":0}); }); $(document).ready(function() { buildMeteoChart('chart-rain-canvas', 'chart-rain-reset', [{"label":"Zrážky (mm)","color":"#008fbf","points":[{"x":1795474821000,"y":0},{"x":1795474882000,"y":0},{"x":1795474943000,"y":0},{"x":1795475004000,"y":0},{"x":1795475065000,"y":0},{"x":1795475126000,"y":0},{"x":1795475187000,"y":0},{"x":1795475248000,"y":0},{"x":1795475309000,"y":0},{"x":1795475370000,"y":0},{"x":1795475431000,"y":0},{"x":1795475492000,"y":0},{"x":1795475553000,"y":0},{"x":1795475614000,"y":0},{"x":1795475675000,"y":0},{"x":1795475736000,"y":0},{"x":1795475797000,"y":0},{"x":1795475858000,"y":0},{"x":1795475919000,"y":0},{"x":1795475980000,"y":0},{"x":1795476041000,"y":0},{"x":1795476102000,"y":0},{"x":1795476163000,"y":0},{"x":1795476224000,"y":0},{"x":1795476285000,"y":0},{"x":1795476346000,"y":0},{"x":1795476407000,"y":0},{"x":1795476468000,"y":0},{"x":1795476529000,"y":0},{"x":1795476590000,"y":0},{"x":1795476651000,"y":0},{"x":1795476712000,"y":0},{"x":1795476773000,"y":0},{"x":1795476834000,"y":0},{"x":1795476895000,"y":0},{"x":1795476956000,"y":0},{"x":1795477017000,"y":0},{"x":1795477078000,"y":0},{"x":1795477139000,"y":0},{"x":1795477200000,"y":0},{"x":1795477261000,"y":0},{"x":1795477322000,"y":0},{"x":1795477383000,"y":0},{"x":1795477444000,"y":0},{"x":1795477505000,"y":0},{"x":1795477566000,"y":0},{"x":1795477627000,"y":0},{"x":1795477688000,"y":0},{"x":1795477749000,"y":0},{"x":1795477810000,"y":0},{"x":1795477871000,"y":0},{"x":1795477932000,"y":0},{"x":1795477993000,"y":0},{"x":1795478054000,"y":0},{"x":1795478115000,"y":0},{"x":1795478176000,"y":0},{"x":1795478237000,"y":0},{"x":1795478298000,"y":0},{"x":1795478359000,"y":0},{"x":1795478420000,"y":0},{"x":1795478481000,"y":0},{"x":1795478542000,"y":0},{"x":1795478603000,"y":0},{"x":1795478664000,"y":0},{"x":1795478725000,"y":0},{"x":1795478786000,"y":0},{"x":1795478847000,"y":0},{"x":1795478908000,"y":0},{"x":1795478969000,"y":0},{"x":1795479030000,"y":0},{"x":1795479091000,"y":0},{"x":1795479152000,"y":0},{"x":1795479213000,"y":0},{"x":1795479274000,"y":0},{"x":1795479335000,"y":0},{"x":1795479396000,"y":0},{"x":1795479457000,"y":0},{"x":1795479518000,"y":0},{"x":1795479579000,"y":0},{"x":1795479640000,"y":0},{"x":1795479701000,"y":0},{"x":1795479762000,"y":0},{"x":1795479823000,"y":0},{"x":1795479884000,"y":0},{"x":1795479945000,"y":0},{"x":1795480006000,"y":0},{"x":1795480067000,"y":0},{"x":1795480128000,"y":0},{"x":1795480189000,"y":0},{"x":1795480250000,"y":0},{"x":1795480311000,"y":0},{"x":1795480373000,"y":0},{"x":1795480433000,"y":0},{"x":1795480494000,"y":0},{"x":1795480555000,"y":0},{"x":1795480616000,"y":0},{"x":1795480677000,"y":0},{"x":1795480738000,"y":0},{"x":1795480799000,"y":0},{"x":1795480860000,"y":0},{"x":1795480921000,"y":0},{"x":1795480982000,"y":0},{"x":1795481043000,"y":0},{"x":1795481104000,"y":0},{"x":1795481165000,"y":0},{"x":1795481226000,"y":0},{"x":1795481287000,"y":0},{"x":1795481348000,"y":0},{"x":1795481409000,"y":0},{"x":1795481470000,"y":0},{"x":1795481531000,"y":0},{"x":1795481592000,"y":0},{"x":1795481653000,"y":0},{"x":1795481714000,"y":0},{"x":1795481775000,"y":0},{"x":1795481836000,"y":0},{"x":1795481897000,"y":0},{"x":1795481958000,"y":0},{"x":1795482019000,"y":0},{"x":1795482080000,"y":0},{"x":1795482141000,"y":0},{"x":1795482202000,"y":0},{"x":1795482264000,"y":0},{"x":1795482324000,"y":0},{"x":1795482385000,"y":0},{"x":1795482446000,"y":0},{"x":1795482507000,"y":0},{"x":1795482568000,"y":0},{"x":1795482629000,"y":0},{"x":1795482690000,"y":0}],"highlightExtremes":false,"unit":" mm"}], {"yLabel":"mm","yMin":0}); }); $('.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; }