var meteoCharts = {}; var meteoCompassLabels = {0: 'S', 90: 'V', 180: 'J', 270: 'Z', 360: 'S'}; var meteoRangeMin = 1795474800000; var meteoRangeMax = 1795482720000; 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":1795474849000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795474913000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795474977000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475028000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475093000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475156000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475208000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475272000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475336000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475400000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475451000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475515000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475579000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475631000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475695000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475759000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475810000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475874000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475938000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795475989000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476054000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476118000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476169000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476233000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476297000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476348000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476413000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476477000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476528000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476592000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476656000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476720000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476772000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476836000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476900000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795476951000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477015000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477079000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477130000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477195000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477246000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477310000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477374000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477438000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477489000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477553000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477617000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477669000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477733000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477797000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477848000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477912000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795477976000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478040000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478091000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478156000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478207000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478271000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478335000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478399000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478450000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478514000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478565000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478630000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478694000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478758000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478809000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478873000,"y":-2.600000000000000088817841970012523233890533447265625},{"x":1795478937000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479001000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479052000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479116000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479168000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479232000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479296000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479360000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479411000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479475000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479539000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479590000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479654000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479718000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479769000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479833000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479897000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795479949000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480013000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480077000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480128000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480192000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480256000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480308000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480372000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480436000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480487000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480551000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480615000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480679000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480730000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480794000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480846000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480910000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795480974000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481038000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481089000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795481151000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481215000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481279000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481331000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481395000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481446000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481510000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481574000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481638000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481690000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481754000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481818000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481869000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481933000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481997000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482048000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482112000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482176000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482228000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482292000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482356000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482407000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482471000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482535000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482599000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482650000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795482714000,"y":-2.79999999999999982236431605997495353221893310546875}],"highlightExtremes":true,"unit":" °C"},{"label":"Rosný bod (°C)","color":"#5b9f4a","points":[{"x":1795474849000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795474913000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795474977000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475028000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475093000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475156000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475208000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475272000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475336000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475400000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475451000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475515000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475579000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475631000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475695000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475759000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475810000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475874000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475938000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795475989000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795476054000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795476118000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476169000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476233000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476297000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476348000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476413000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476477000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476528000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476592000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476656000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476720000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476772000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476836000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476900000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795476951000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477015000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477079000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477130000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477195000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477246000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795477310000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795477374000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795477438000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795477489000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795477553000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477617000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477669000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477733000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477797000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477848000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477912000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795477976000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478040000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478091000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478156000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478207000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478271000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478335000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478399000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478450000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478514000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478565000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478630000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478694000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478758000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478809000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795478873000,"y":-2.70000000000000017763568394002504646778106689453125},{"x":1795478937000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479001000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479052000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479116000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479168000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479232000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479296000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479360000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479411000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479475000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479539000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479590000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795479654000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795479718000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795479769000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795479833000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479897000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795479949000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480013000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480077000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480128000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480192000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480256000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480308000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480372000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480436000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480487000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480551000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480615000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480679000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480730000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480794000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480846000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480910000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795480974000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481038000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481089000,"y":-2.79999999999999982236431605997495353221893310546875},{"x":1795481151000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481215000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481279000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481331000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481395000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481446000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481510000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481574000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481638000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481690000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481754000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481818000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481869000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481933000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795481997000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482048000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482112000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482176000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482228000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482292000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482356000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482407000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482471000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482535000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482599000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482650000,"y":-2.899999999999999911182158029987476766109466552734375},{"x":1795482714000,"y":-2.899999999999999911182158029987476766109466552734375}],"highlightExtremes":false,"unit":" °C"}], {"yLabel":"\u00b0C"}); }); $(document).ready(function() { buildMeteoChart('chart-humidity-canvas', 'chart-humidity-reset', [{"label":"Vlhkosť (%)","color":"#ff9000","points":[{"x":1795474849000,"y":99},{"x":1795474913000,"y":99},{"x":1795474977000,"y":99},{"x":1795475028000,"y":99},{"x":1795475093000,"y":99},{"x":1795475156000,"y":99},{"x":1795475208000,"y":99},{"x":1795475272000,"y":99},{"x":1795475336000,"y":99},{"x":1795475400000,"y":99},{"x":1795475451000,"y":99},{"x":1795475515000,"y":99},{"x":1795475579000,"y":99},{"x":1795475631000,"y":99},{"x":1795475695000,"y":99},{"x":1795475759000,"y":99},{"x":1795475810000,"y":99},{"x":1795475874000,"y":99},{"x":1795475938000,"y":99},{"x":1795475989000,"y":99},{"x":1795476054000,"y":99},{"x":1795476118000,"y":99},{"x":1795476169000,"y":99},{"x":1795476233000,"y":99},{"x":1795476297000,"y":99},{"x":1795476348000,"y":99},{"x":1795476413000,"y":99},{"x":1795476477000,"y":99},{"x":1795476528000,"y":99},{"x":1795476592000,"y":99},{"x":1795476656000,"y":99},{"x":1795476720000,"y":99},{"x":1795476772000,"y":99},{"x":1795476836000,"y":99},{"x":1795476900000,"y":99},{"x":1795476951000,"y":99},{"x":1795477015000,"y":99},{"x":1795477079000,"y":99},{"x":1795477130000,"y":99},{"x":1795477195000,"y":99},{"x":1795477246000,"y":99},{"x":1795477310000,"y":99},{"x":1795477374000,"y":99},{"x":1795477438000,"y":99},{"x":1795477489000,"y":99},{"x":1795477553000,"y":99},{"x":1795477617000,"y":99},{"x":1795477669000,"y":99},{"x":1795477733000,"y":99},{"x":1795477797000,"y":99},{"x":1795477848000,"y":99},{"x":1795477912000,"y":99},{"x":1795477976000,"y":99},{"x":1795478040000,"y":99},{"x":1795478091000,"y":99},{"x":1795478156000,"y":99},{"x":1795478207000,"y":99},{"x":1795478271000,"y":99},{"x":1795478335000,"y":99},{"x":1795478399000,"y":99},{"x":1795478450000,"y":99},{"x":1795478514000,"y":99},{"x":1795478565000,"y":99},{"x":1795478630000,"y":99},{"x":1795478694000,"y":99},{"x":1795478758000,"y":99},{"x":1795478809000,"y":99},{"x":1795478873000,"y":99},{"x":1795478937000,"y":99},{"x":1795479001000,"y":99},{"x":1795479052000,"y":99},{"x":1795479116000,"y":99},{"x":1795479168000,"y":99},{"x":1795479232000,"y":99},{"x":1795479296000,"y":99},{"x":1795479360000,"y":99},{"x":1795479411000,"y":99},{"x":1795479475000,"y":99},{"x":1795479539000,"y":99},{"x":1795479590000,"y":99},{"x":1795479654000,"y":99},{"x":1795479718000,"y":99},{"x":1795479769000,"y":99},{"x":1795479833000,"y":99},{"x":1795479897000,"y":99},{"x":1795479949000,"y":99},{"x":1795480013000,"y":99},{"x":1795480077000,"y":99},{"x":1795480128000,"y":99},{"x":1795480192000,"y":99},{"x":1795480256000,"y":99},{"x":1795480308000,"y":99},{"x":1795480372000,"y":99},{"x":1795480436000,"y":99},{"x":1795480487000,"y":99},{"x":1795480551000,"y":99},{"x":1795480615000,"y":99},{"x":1795480679000,"y":99},{"x":1795480730000,"y":99},{"x":1795480794000,"y":99},{"x":1795480846000,"y":99},{"x":1795480910000,"y":99},{"x":1795480974000,"y":99},{"x":1795481038000,"y":99},{"x":1795481089000,"y":99},{"x":1795481151000,"y":99},{"x":1795481215000,"y":99},{"x":1795481279000,"y":99},{"x":1795481331000,"y":99},{"x":1795481395000,"y":99},{"x":1795481446000,"y":99},{"x":1795481510000,"y":99},{"x":1795481574000,"y":99},{"x":1795481638000,"y":99},{"x":1795481690000,"y":99},{"x":1795481754000,"y":99},{"x":1795481818000,"y":99},{"x":1795481869000,"y":99},{"x":1795481933000,"y":99},{"x":1795481997000,"y":99},{"x":1795482048000,"y":99},{"x":1795482112000,"y":99},{"x":1795482176000,"y":99},{"x":1795482228000,"y":99},{"x":1795482292000,"y":99},{"x":1795482356000,"y":99},{"x":1795482407000,"y":99},{"x":1795482471000,"y":99},{"x":1795482535000,"y":99},{"x":1795482599000,"y":99},{"x":1795482650000,"y":99},{"x":1795482714000,"y":99}],"highlightExtremes":true,"unit":" %"}], {"yLabel":"%"}); }); $(document).ready(function() { buildMeteoChart('chart-pressure-canvas', 'chart-pressure-reset', [{"label":"Atmosférický tlak (hPa)","color":"#000000","points":[{"x":1795474849000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795474913000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795474977000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475028000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475093000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475156000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475208000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475272000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475336000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475400000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475451000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475515000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475579000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475631000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475695000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475759000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475810000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475874000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475938000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795475989000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476054000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476118000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476169000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476233000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476297000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476348000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476413000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476477000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476528000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476592000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476656000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476720000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476772000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476836000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476900000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795476951000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477015000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477079000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477130000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477195000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477246000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477310000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477374000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477438000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477489000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477553000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477617000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477669000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477733000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477797000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477848000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477912000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795477976000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478040000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478091000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478156000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478207000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478271000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478335000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478399000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478450000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478514000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478565000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478630000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478694000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478758000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478809000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478873000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795478937000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479001000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479052000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479116000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479168000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479232000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479296000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479360000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479411000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479475000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479539000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479590000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479654000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479718000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479769000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479833000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479897000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795479949000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480013000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480077000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480128000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480192000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480256000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480308000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480372000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480436000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480487000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480551000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480615000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480679000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480730000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480794000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480846000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480910000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795480974000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481038000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481089000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481151000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481215000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481279000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481331000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481395000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481446000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481510000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481574000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481638000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481690000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481754000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481818000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481869000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481933000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795481997000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482048000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482112000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482176000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482228000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482292000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482356000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482407000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482471000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482535000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482599000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482650000,"y":1014.8999999999999772626324556767940521240234375},{"x":1795482714000,"y":1014.8999999999999772626324556767940521240234375}],"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":1795474849000,"y":0},{"x":1795474913000,"y":0},{"x":1795474977000,"y":0},{"x":1795475028000,"y":0},{"x":1795475093000,"y":0},{"x":1795475156000,"y":0},{"x":1795475208000,"y":0},{"x":1795475272000,"y":0},{"x":1795475336000,"y":0},{"x":1795475400000,"y":0},{"x":1795475451000,"y":0},{"x":1795475515000,"y":0},{"x":1795475579000,"y":0},{"x":1795475631000,"y":0},{"x":1795475695000,"y":0},{"x":1795475759000,"y":0},{"x":1795475810000,"y":0},{"x":1795475874000,"y":0},{"x":1795475938000,"y":0},{"x":1795475989000,"y":0},{"x":1795476054000,"y":0},{"x":1795476118000,"y":0},{"x":1795476169000,"y":0},{"x":1795476233000,"y":0},{"x":1795476297000,"y":0},{"x":1795476348000,"y":0},{"x":1795476413000,"y":0},{"x":1795476477000,"y":0},{"x":1795476528000,"y":0},{"x":1795476592000,"y":0},{"x":1795476656000,"y":0},{"x":1795476720000,"y":0},{"x":1795476772000,"y":0},{"x":1795476836000,"y":0},{"x":1795476900000,"y":0},{"x":1795476951000,"y":0},{"x":1795477015000,"y":0},{"x":1795477079000,"y":0},{"x":1795477130000,"y":0},{"x":1795477195000,"y":0},{"x":1795477246000,"y":0},{"x":1795477310000,"y":0},{"x":1795477374000,"y":0},{"x":1795477438000,"y":0},{"x":1795477489000,"y":0},{"x":1795477553000,"y":0},{"x":1795477617000,"y":0},{"x":1795477669000,"y":0},{"x":1795477733000,"y":0},{"x":1795477797000,"y":0},{"x":1795477848000,"y":0},{"x":1795477912000,"y":0},{"x":1795477976000,"y":0},{"x":1795478040000,"y":0},{"x":1795478091000,"y":0},{"x":1795478156000,"y":0},{"x":1795478207000,"y":0},{"x":1795478271000,"y":0},{"x":1795478335000,"y":0},{"x":1795478399000,"y":0},{"x":1795478450000,"y":0},{"x":1795478514000,"y":0},{"x":1795478565000,"y":0},{"x":1795478630000,"y":0},{"x":1795478694000,"y":0},{"x":1795478758000,"y":0},{"x":1795478809000,"y":0},{"x":1795478873000,"y":0},{"x":1795478937000,"y":0},{"x":1795479001000,"y":0},{"x":1795479052000,"y":0},{"x":1795479116000,"y":0},{"x":1795479168000,"y":0},{"x":1795479232000,"y":0},{"x":1795479296000,"y":0},{"x":1795479360000,"y":0},{"x":1795479411000,"y":0},{"x":1795479475000,"y":0},{"x":1795479539000,"y":0},{"x":1795479590000,"y":0},{"x":1795479654000,"y":0},{"x":1795479718000,"y":0},{"x":1795479769000,"y":0},{"x":1795479833000,"y":0},{"x":1795479897000,"y":0},{"x":1795479949000,"y":0},{"x":1795480013000,"y":0},{"x":1795480077000,"y":0},{"x":1795480128000,"y":0},{"x":1795480192000,"y":0},{"x":1795480256000,"y":0},{"x":1795480308000,"y":0},{"x":1795480372000,"y":0},{"x":1795480436000,"y":0},{"x":1795480487000,"y":0},{"x":1795480551000,"y":4.29999999999999982236431605997495353221893310546875},{"x":1795480615000,"y":0},{"x":1795480679000,"y":0},{"x":1795480730000,"y":0},{"x":1795480794000,"y":0},{"x":1795480846000,"y":0},{"x":1795480910000,"y":0},{"x":1795480974000,"y":5},{"x":1795481038000,"y":0},{"x":1795481089000,"y":0},{"x":1795481151000,"y":0},{"x":1795481215000,"y":0},{"x":1795481279000,"y":0},{"x":1795481331000,"y":0},{"x":1795481395000,"y":0},{"x":1795481446000,"y":0},{"x":1795481510000,"y":0},{"x":1795481574000,"y":0},{"x":1795481638000,"y":0},{"x":1795481690000,"y":0},{"x":1795481754000,"y":0},{"x":1795481818000,"y":0},{"x":1795481869000,"y":0},{"x":1795481933000,"y":0},{"x":1795481997000,"y":0},{"x":1795482048000,"y":0},{"x":1795482112000,"y":0},{"x":1795482176000,"y":0},{"x":1795482228000,"y":0},{"x":1795482292000,"y":0},{"x":1795482356000,"y":0},{"x":1795482407000,"y":0},{"x":1795482471000,"y":0},{"x":1795482535000,"y":0},{"x":1795482599000,"y":0},{"x":1795482650000,"y":0},{"x":1795482714000,"y":0}],"highlightExtremes":true,"unit":" km\/h"},{"label":"Náraz vetra (km\/h)","color":"#EF9856","points":[{"x":1795474849000,"y":0},{"x":1795474913000,"y":0},{"x":1795474977000,"y":0},{"x":1795475028000,"y":0},{"x":1795475093000,"y":0},{"x":1795475156000,"y":0},{"x":1795475208000,"y":0},{"x":1795475272000,"y":0},{"x":1795475336000,"y":0},{"x":1795475400000,"y":0},{"x":1795475451000,"y":0},{"x":1795475515000,"y":0},{"x":1795475579000,"y":0},{"x":1795475631000,"y":0},{"x":1795475695000,"y":0},{"x":1795475759000,"y":0},{"x":1795475810000,"y":0},{"x":1795475874000,"y":0},{"x":1795475938000,"y":0},{"x":1795475989000,"y":0},{"x":1795476054000,"y":0},{"x":1795476118000,"y":0},{"x":1795476169000,"y":0},{"x":1795476233000,"y":0},{"x":1795476297000,"y":0},{"x":1795476348000,"y":0},{"x":1795476413000,"y":0},{"x":1795476477000,"y":0},{"x":1795476528000,"y":0},{"x":1795476592000,"y":0},{"x":1795476656000,"y":0},{"x":1795476720000,"y":0},{"x":1795476772000,"y":0},{"x":1795476836000,"y":0},{"x":1795476900000,"y":0},{"x":1795476951000,"y":0},{"x":1795477015000,"y":0},{"x":1795477079000,"y":0},{"x":1795477130000,"y":0},{"x":1795477195000,"y":0},{"x":1795477246000,"y":0},{"x":1795477310000,"y":0},{"x":1795477374000,"y":0},{"x":1795477438000,"y":0},{"x":1795477489000,"y":0},{"x":1795477553000,"y":0},{"x":1795477617000,"y":0},{"x":1795477669000,"y":0},{"x":1795477733000,"y":0},{"x":1795477797000,"y":0},{"x":1795477848000,"y":0},{"x":1795477912000,"y":0},{"x":1795477976000,"y":0},{"x":1795478040000,"y":0},{"x":1795478091000,"y":0},{"x":1795478156000,"y":0},{"x":1795478207000,"y":0},{"x":1795478271000,"y":0},{"x":1795478335000,"y":0},{"x":1795478399000,"y":0},{"x":1795478450000,"y":0},{"x":1795478514000,"y":0},{"x":1795478565000,"y":0},{"x":1795478630000,"y":0},{"x":1795478694000,"y":0},{"x":1795478758000,"y":0},{"x":1795478809000,"y":0},{"x":1795478873000,"y":0},{"x":1795478937000,"y":0},{"x":1795479001000,"y":0},{"x":1795479052000,"y":0},{"x":1795479116000,"y":0},{"x":1795479168000,"y":0},{"x":1795479232000,"y":0},{"x":1795479296000,"y":0},{"x":1795479360000,"y":0},{"x":1795479411000,"y":0},{"x":1795479475000,"y":0},{"x":1795479539000,"y":0},{"x":1795479590000,"y":0},{"x":1795479654000,"y":0},{"x":1795479718000,"y":0},{"x":1795479769000,"y":0},{"x":1795479833000,"y":0},{"x":1795479897000,"y":0},{"x":1795479949000,"y":0},{"x":1795480013000,"y":0},{"x":1795480077000,"y":0},{"x":1795480128000,"y":0},{"x":1795480192000,"y":0},{"x":1795480256000,"y":0},{"x":1795480308000,"y":0},{"x":1795480372000,"y":0},{"x":1795480436000,"y":0},{"x":1795480487000,"y":0},{"x":1795480551000,"y":13.300000000000000710542735760100185871124267578125},{"x":1795480615000,"y":0},{"x":1795480679000,"y":0},{"x":1795480730000,"y":0},{"x":1795480794000,"y":0},{"x":1795480846000,"y":0},{"x":1795480910000,"y":8.300000000000000710542735760100185871124267578125},{"x":1795480974000,"y":14.800000000000000710542735760100185871124267578125},{"x":1795481038000,"y":0},{"x":1795481089000,"y":0},{"x":1795481151000,"y":0},{"x":1795481215000,"y":0},{"x":1795481279000,"y":0},{"x":1795481331000,"y":0},{"x":1795481395000,"y":0},{"x":1795481446000,"y":0},{"x":1795481510000,"y":0},{"x":1795481574000,"y":0},{"x":1795481638000,"y":0},{"x":1795481690000,"y":0},{"x":1795481754000,"y":0},{"x":1795481818000,"y":0},{"x":1795481869000,"y":0},{"x":1795481933000,"y":0},{"x":1795481997000,"y":0},{"x":1795482048000,"y":0},{"x":1795482112000,"y":0},{"x":1795482176000,"y":0},{"x":1795482228000,"y":0},{"x":1795482292000,"y":0},{"x":1795482356000,"y":0},{"x":1795482407000,"y":0},{"x":1795482471000,"y":0},{"x":1795482535000,"y":0},{"x":1795482599000,"y":0},{"x":1795482650000,"y":0},{"x":1795482714000,"y":0}],"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":1795474849000,"y":26},{"x":1795474913000,"y":47},{"x":1795474977000,"y":33},{"x":1795475028000,"y":1},{"x":1795475093000,"y":341},{"x":1795475156000,"y":83},{"x":1795475208000,"y":77},{"x":1795475272000,"y":85},{"x":1795475336000,"y":66},{"x":1795475400000,"y":82},{"x":1795475451000,"y":39},{"x":1795475515000,"y":36},{"x":1795475579000,"y":67},{"x":1795475631000,"y":348},{"x":1795475695000,"y":45},{"x":1795475759000,"y":55},{"x":1795475810000,"y":26},{"x":1795475874000,"y":84},{"x":1795475938000,"y":37},{"x":1795475989000,"y":19},{"x":1795476054000,"y":9},{"x":1795476118000,"y":86},{"x":1795476169000,"y":64},{"x":1795476233000,"y":84},{"x":1795476297000,"y":70},{"x":1795476348000,"y":52},{"x":1795476413000,"y":61},{"x":1795476477000,"y":60},{"x":1795476528000,"y":53},{"x":1795476592000,"y":57},{"x":1795476656000,"y":58},{"x":1795476720000,"y":90},{"x":1795476772000,"y":90},{"x":1795476836000,"y":90},{"x":1795476900000,"y":70},{"x":1795476951000,"y":89},{"x":1795477015000,"y":81},{"x":1795477079000,"y":76},{"x":1795477130000,"y":316},{"x":1795477195000,"y":38},{"x":1795477246000,"y":42},{"x":1795477310000,"y":140},{"x":1795477374000,"y":81},{"x":1795477438000,"y":66},{"x":1795477489000,"y":67},{"x":1795477553000,"y":67},{"x":1795477617000,"y":12},{"x":1795477669000,"y":44},{"x":1795477733000,"y":354},{"x":1795477797000,"y":58},{"x":1795477848000,"y":349},{"x":1795477912000,"y":349},{"x":1795477976000,"y":36},{"x":1795478040000,"y":36},{"x":1795478091000,"y":36},{"x":1795478156000,"y":116},{"x":1795478207000,"y":57},{"x":1795478271000,"y":82},{"x":1795478335000,"y":12},{"x":1795478399000,"y":42},{"x":1795478450000,"y":72},{"x":1795478514000,"y":72},{"x":1795478565000,"y":78},{"x":1795478630000,"y":75},{"x":1795478694000,"y":80},{"x":1795478758000,"y":36},{"x":1795478809000,"y":346},{"x":1795478873000,"y":46},{"x":1795478937000,"y":60},{"x":1795479001000,"y":37},{"x":1795479052000,"y":36},{"x":1795479116000,"y":73},{"x":1795479168000,"y":74},{"x":1795479232000,"y":59},{"x":1795479296000,"y":35},{"x":1795479360000,"y":69},{"x":1795479411000,"y":1},{"x":1795479475000,"y":12},{"x":1795479539000,"y":17},{"x":1795479590000,"y":26},{"x":1795479654000,"y":13},{"x":1795479718000,"y":77},{"x":1795479769000,"y":45},{"x":1795479833000,"y":27},{"x":1795479897000,"y":292},{"x":1795479949000,"y":83},{"x":1795480013000,"y":88},{"x":1795480077000,"y":76},{"x":1795480128000,"y":9},{"x":1795480192000,"y":73},{"x":1795480256000,"y":316},{"x":1795480308000,"y":42},{"x":1795480372000,"y":71},{"x":1795480436000,"y":77},{"x":1795480487000,"y":50},{"x":1795480551000,"y":37},{"x":1795480615000,"y":45},{"x":1795480679000,"y":68},{"x":1795480730000,"y":29},{"x":1795480794000,"y":11},{"x":1795480846000,"y":70},{"x":1795480910000,"y":21},{"x":1795480974000,"y":12},{"x":1795481038000,"y":77},{"x":1795481089000,"y":77},{"x":1795481151000,"y":77},{"x":1795481215000,"y":69},{"x":1795481279000,"y":9},{"x":1795481331000,"y":85},{"x":1795481395000,"y":2},{"x":1795481446000,"y":27},{"x":1795481510000,"y":75},{"x":1795481574000,"y":77},{"x":1795481638000,"y":83},{"x":1795481690000,"y":72},{"x":1795481754000,"y":5},{"x":1795481818000,"y":33},{"x":1795481869000,"y":83},{"x":1795481933000,"y":81},{"x":1795481997000,"y":70},{"x":1795482048000,"y":38},{"x":1795482112000,"y":62},{"x":1795482176000,"y":62},{"x":1795482228000,"y":109},{"x":1795482292000,"y":109},{"x":1795482356000,"y":64},{"x":1795482407000,"y":64},{"x":1795482471000,"y":41},{"x":1795482535000,"y":64},{"x":1795482599000,"y":347},{"x":1795482650000,"y":347},{"x":1795482714000,"y":21}],"highlightExtremes":false,"showLine":false,"pointRadius":3,"tooltipMode":"windDirection"}], {"yMode":"compass"}); }); $(document).ready(function() { buildMeteoChart('chart-uv-canvas', 'chart-uv-reset', [{"label":"UV žiarenie","color":"#802674","points":[{"x":1795474849000,"y":0},{"x":1795474913000,"y":0},{"x":1795474977000,"y":0},{"x":1795475028000,"y":0},{"x":1795475093000,"y":0},{"x":1795475156000,"y":0},{"x":1795475208000,"y":0},{"x":1795475272000,"y":0},{"x":1795475336000,"y":0},{"x":1795475400000,"y":0},{"x":1795475451000,"y":0},{"x":1795475515000,"y":0},{"x":1795475579000,"y":0},{"x":1795475631000,"y":0},{"x":1795475695000,"y":0},{"x":1795475759000,"y":0},{"x":1795475810000,"y":0},{"x":1795475874000,"y":0},{"x":1795475938000,"y":0},{"x":1795475989000,"y":0},{"x":1795476054000,"y":0},{"x":1795476118000,"y":0},{"x":1795476169000,"y":0},{"x":1795476233000,"y":0},{"x":1795476297000,"y":0},{"x":1795476348000,"y":0},{"x":1795476413000,"y":0},{"x":1795476477000,"y":0},{"x":1795476528000,"y":0},{"x":1795476592000,"y":0},{"x":1795476656000,"y":0},{"x":1795476720000,"y":0},{"x":1795476772000,"y":0},{"x":1795476836000,"y":0},{"x":1795476900000,"y":0},{"x":1795476951000,"y":0},{"x":1795477015000,"y":0},{"x":1795477079000,"y":0},{"x":1795477130000,"y":0},{"x":1795477195000,"y":0},{"x":1795477246000,"y":0},{"x":1795477310000,"y":0},{"x":1795477374000,"y":0},{"x":1795477438000,"y":0},{"x":1795477489000,"y":0},{"x":1795477553000,"y":0},{"x":1795477617000,"y":0},{"x":1795477669000,"y":0},{"x":1795477733000,"y":0},{"x":1795477797000,"y":0},{"x":1795477848000,"y":0},{"x":1795477912000,"y":0},{"x":1795477976000,"y":0},{"x":1795478040000,"y":0},{"x":1795478091000,"y":0},{"x":1795478156000,"y":0},{"x":1795478207000,"y":0},{"x":1795478271000,"y":0},{"x":1795478335000,"y":0},{"x":1795478399000,"y":0},{"x":1795478450000,"y":0},{"x":1795478514000,"y":0},{"x":1795478565000,"y":0},{"x":1795478630000,"y":0},{"x":1795478694000,"y":0},{"x":1795478758000,"y":0},{"x":1795478809000,"y":0},{"x":1795478873000,"y":0},{"x":1795478937000,"y":0},{"x":1795479001000,"y":0},{"x":1795479052000,"y":0},{"x":1795479116000,"y":0},{"x":1795479168000,"y":0},{"x":1795479232000,"y":0},{"x":1795479296000,"y":0},{"x":1795479360000,"y":0},{"x":1795479411000,"y":0},{"x":1795479475000,"y":0},{"x":1795479539000,"y":0},{"x":1795479590000,"y":0},{"x":1795479654000,"y":0},{"x":1795479718000,"y":0},{"x":1795479769000,"y":0},{"x":1795479833000,"y":0},{"x":1795479897000,"y":0},{"x":1795479949000,"y":0},{"x":1795480013000,"y":0},{"x":1795480077000,"y":0},{"x":1795480128000,"y":0},{"x":1795480192000,"y":0},{"x":1795480256000,"y":0},{"x":1795480308000,"y":0},{"x":1795480372000,"y":0},{"x":1795480436000,"y":0},{"x":1795480487000,"y":0},{"x":1795480551000,"y":0},{"x":1795480615000,"y":0},{"x":1795480679000,"y":0},{"x":1795480730000,"y":0},{"x":1795480794000,"y":0},{"x":1795480846000,"y":0},{"x":1795480910000,"y":0},{"x":1795480974000,"y":0},{"x":1795481038000,"y":0},{"x":1795481089000,"y":0},{"x":1795481151000,"y":0},{"x":1795481215000,"y":0},{"x":1795481279000,"y":0},{"x":1795481331000,"y":0},{"x":1795481395000,"y":0},{"x":1795481446000,"y":0},{"x":1795481510000,"y":0},{"x":1795481574000,"y":0},{"x":1795481638000,"y":0},{"x":1795481690000,"y":0},{"x":1795481754000,"y":0},{"x":1795481818000,"y":0},{"x":1795481869000,"y":0},{"x":1795481933000,"y":0},{"x":1795481997000,"y":0},{"x":1795482048000,"y":0},{"x":1795482112000,"y":0},{"x":1795482176000,"y":0},{"x":1795482228000,"y":0},{"x":1795482292000,"y":0},{"x":1795482356000,"y":0},{"x":1795482407000,"y":0},{"x":1795482471000,"y":0},{"x":1795482535000,"y":0},{"x":1795482599000,"y":0},{"x":1795482650000,"y":0},{"x":1795482714000,"y":0}],"highlightExtremes":true}], {"yMin":0}); }); $(document).ready(function() { buildMeteoChart('chart-rain-canvas', 'chart-rain-reset', [{"label":"Zrážky (mm)","color":"#008fbf","points":[{"x":1795474849000,"y":0},{"x":1795474913000,"y":0},{"x":1795474977000,"y":0},{"x":1795475028000,"y":0},{"x":1795475093000,"y":0},{"x":1795475156000,"y":0},{"x":1795475208000,"y":0},{"x":1795475272000,"y":0},{"x":1795475336000,"y":0},{"x":1795475400000,"y":0},{"x":1795475451000,"y":0},{"x":1795475515000,"y":0},{"x":1795475579000,"y":0},{"x":1795475631000,"y":0},{"x":1795475695000,"y":0},{"x":1795475759000,"y":0},{"x":1795475810000,"y":0},{"x":1795475874000,"y":0},{"x":1795475938000,"y":0},{"x":1795475989000,"y":0},{"x":1795476054000,"y":0},{"x":1795476118000,"y":0},{"x":1795476169000,"y":0},{"x":1795476233000,"y":0},{"x":1795476297000,"y":0},{"x":1795476348000,"y":0},{"x":1795476413000,"y":0},{"x":1795476477000,"y":0},{"x":1795476528000,"y":0},{"x":1795476592000,"y":0},{"x":1795476656000,"y":0},{"x":1795476720000,"y":0},{"x":1795476772000,"y":0},{"x":1795476836000,"y":0},{"x":1795476900000,"y":0},{"x":1795476951000,"y":0},{"x":1795477015000,"y":0},{"x":1795477079000,"y":0},{"x":1795477130000,"y":0},{"x":1795477195000,"y":0},{"x":1795477246000,"y":0},{"x":1795477310000,"y":0},{"x":1795477374000,"y":0},{"x":1795477438000,"y":0},{"x":1795477489000,"y":0},{"x":1795477553000,"y":0},{"x":1795477617000,"y":0},{"x":1795477669000,"y":0},{"x":1795477733000,"y":0},{"x":1795477797000,"y":0},{"x":1795477848000,"y":0},{"x":1795477912000,"y":0},{"x":1795477976000,"y":0},{"x":1795478040000,"y":0},{"x":1795478091000,"y":0},{"x":1795478156000,"y":0},{"x":1795478207000,"y":0},{"x":1795478271000,"y":0},{"x":1795478335000,"y":0},{"x":1795478399000,"y":0},{"x":1795478450000,"y":0},{"x":1795478514000,"y":0},{"x":1795478565000,"y":0},{"x":1795478630000,"y":0},{"x":1795478694000,"y":0},{"x":1795478758000,"y":0},{"x":1795478809000,"y":0},{"x":1795478873000,"y":0},{"x":1795478937000,"y":0},{"x":1795479001000,"y":0},{"x":1795479052000,"y":0},{"x":1795479116000,"y":0},{"x":1795479168000,"y":0},{"x":1795479232000,"y":0},{"x":1795479296000,"y":0},{"x":1795479360000,"y":0},{"x":1795479411000,"y":0},{"x":1795479475000,"y":0},{"x":1795479539000,"y":0},{"x":1795479590000,"y":0},{"x":1795479654000,"y":0},{"x":1795479718000,"y":0},{"x":1795479769000,"y":0},{"x":1795479833000,"y":0},{"x":1795479897000,"y":0},{"x":1795479949000,"y":0},{"x":1795480013000,"y":0},{"x":1795480077000,"y":0},{"x":1795480128000,"y":0},{"x":1795480192000,"y":0},{"x":1795480256000,"y":0},{"x":1795480308000,"y":0},{"x":1795480372000,"y":0},{"x":1795480436000,"y":0},{"x":1795480487000,"y":0},{"x":1795480551000,"y":0},{"x":1795480615000,"y":0},{"x":1795480679000,"y":0},{"x":1795480730000,"y":0},{"x":1795480794000,"y":0},{"x":1795480846000,"y":0},{"x":1795480910000,"y":0},{"x":1795480974000,"y":0},{"x":1795481038000,"y":0},{"x":1795481089000,"y":0},{"x":1795481151000,"y":0},{"x":1795481215000,"y":0},{"x":1795481279000,"y":0},{"x":1795481331000,"y":0},{"x":1795481395000,"y":0},{"x":1795481446000,"y":0},{"x":1795481510000,"y":0},{"x":1795481574000,"y":0},{"x":1795481638000,"y":0},{"x":1795481690000,"y":0},{"x":1795481754000,"y":0},{"x":1795481818000,"y":0},{"x":1795481869000,"y":0},{"x":1795481933000,"y":0},{"x":1795481997000,"y":0},{"x":1795482048000,"y":0},{"x":1795482112000,"y":0},{"x":1795482176000,"y":0},{"x":1795482228000,"y":0},{"x":1795482292000,"y":0},{"x":1795482356000,"y":0},{"x":1795482407000,"y":0},{"x":1795482471000,"y":0},{"x":1795482535000,"y":0},{"x":1795482599000,"y":0},{"x":1795482650000,"y":0},{"x":1795482714000,"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; }