var meteoCharts = {}; var meteoCompassLabels = {0: 'S', 90: 'V', 180: 'J', 270: 'Z', 360: 'S'}; var meteoRangeMin = 1795474800000; var meteoRangeMax = 1795482728000; 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":1795474834000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795474894000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795474954000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475015000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475074000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475134000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475194000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475254000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475314000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475374000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475435000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475494000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475554000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475614000,"y":0.200000000000000011102230246251565404236316680908203125},{"x":1795475676000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795475747000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795475812000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795475876000,"y":0},{"x":1795475940000,"y":0},{"x":1795476004000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476067000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476132000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476194000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476259000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476323000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476387000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795476451000,"y":0},{"x":1795476514000,"y":0},{"x":1795476574000,"y":0},{"x":1795476634000,"y":0},{"x":1795476694000,"y":0},{"x":1795476754000,"y":0},{"x":1795476814000,"y":0},{"x":1795476873000,"y":0},{"x":1795476934000,"y":0},{"x":1795476994000,"y":0},{"x":1795477054000,"y":0},{"x":1795477113000,"y":0},{"x":1795477176000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477234000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477294000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477354000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477414000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477474000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477533000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477593000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477653000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477713000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477774000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477834000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477894000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795477954000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478014000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478074000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478133000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478194000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478254000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478315000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478374000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478434000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478494000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478554000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478614000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478674000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478734000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478793000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478854000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478914000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795478974000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479033000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479106000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479167000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479235000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479299000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479363000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479427000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479491000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479555000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479619000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795479683000,"y":0},{"x":1795479747000,"y":0},{"x":1795479811000,"y":0},{"x":1795479874000,"y":0},{"x":1795479933000,"y":0},{"x":1795479995000,"y":0},{"x":1795480056000,"y":0},{"x":1795480113000,"y":0},{"x":1795480173000,"y":0},{"x":1795480233000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480293000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480353000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480413000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480473000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480533000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480593000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480653000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480713000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480773000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480833000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480893000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795480954000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795481013000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795481072000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795481133000,"y":0.1000000000000000055511151231257827021181583404541015625},{"x":1795481193000,"y":0},{"x":1795481268000,"y":0},{"x":1795481328000,"y":0},{"x":1795481387000,"y":0},{"x":1795481460000,"y":0},{"x":1795481522000,"y":0},{"x":1795481587000,"y":0},{"x":1795481651000,"y":0},{"x":1795481715000,"y":0},{"x":1795481779000,"y":0},{"x":1795481843000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795481907000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795481971000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482033000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482094000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482152000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482213000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482273000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482333000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482393000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482453000,"y":-0.1000000000000000055511151231257827021181583404541015625},{"x":1795482513000,"y":-0.200000000000000011102230246251565404236316680908203125},{"x":1795482573000,"y":-0.200000000000000011102230246251565404236316680908203125},{"x":1795482633000,"y":-0.200000000000000011102230246251565404236316680908203125},{"x":1795482693000,"y":-0.200000000000000011102230246251565404236316680908203125}],"highlightExtremes":true,"unit":" °C"},{"label":"Rosný bod (°C)","color":"#5b9f4a","points":[{"x":1795474834000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795474894000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795474954000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475015000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475074000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475134000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475194000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475254000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475314000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475374000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475435000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475494000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475554000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475614000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795475676000,"y":-5},{"x":1795475747000,"y":-5},{"x":1795475812000,"y":-5},{"x":1795475876000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795475940000,"y":-5.0999999999999996447286321199499070644378662109375},{"x":1795476004000,"y":-5},{"x":1795476067000,"y":-5},{"x":1795476132000,"y":-5},{"x":1795476194000,"y":-5},{"x":1795476259000,"y":-5},{"x":1795476323000,"y":-5},{"x":1795476387000,"y":-5},{"x":1795476451000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476514000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476574000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476634000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476694000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476754000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476814000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476873000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476934000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795476994000,"y":-4.9000000000000003552713678800500929355621337890625},{"x":1795477054000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795477113000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795477176000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477234000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477294000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477354000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477414000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477474000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795477533000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795477593000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795477653000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795477713000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477774000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477834000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795477894000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795477954000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478014000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478074000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478133000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478194000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478254000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478315000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478374000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478434000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478494000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478554000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478614000,"y":-4.79999999999999982236431605997495353221893310546875},{"x":1795478674000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478734000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478793000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478854000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478914000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795478974000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479033000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479106000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479167000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479235000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479299000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479363000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479427000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479491000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479555000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479619000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795479683000,"y":-4.5},{"x":1795479747000,"y":-4.5},{"x":1795479811000,"y":-4.5},{"x":1795479874000,"y":-4.5},{"x":1795479933000,"y":-4.5},{"x":1795479995000,"y":-4.5},{"x":1795480056000,"y":-4.5},{"x":1795480113000,"y":-4.5},{"x":1795480173000,"y":-4.5},{"x":1795480233000,"y":-4.4000000000000003552713678800500929355621337890625},{"x":1795480293000,"y":-4.4000000000000003552713678800500929355621337890625},{"x":1795480353000,"y":-4.4000000000000003552713678800500929355621337890625},{"x":1795480413000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480473000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480533000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480593000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480653000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480713000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480773000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480833000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480893000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795480954000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795481013000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795481072000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795481133000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795481193000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795481268000,"y":-4.5},{"x":1795481328000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795481387000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795481460000,"y":-4.5},{"x":1795481522000,"y":-4.5},{"x":1795481587000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795481651000,"y":-4.5},{"x":1795481715000,"y":-4.5},{"x":1795481779000,"y":-4.5},{"x":1795481843000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795481907000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795481971000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482033000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482094000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482152000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482213000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482273000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482333000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482393000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482453000,"y":-4.5999999999999996447286321199499070644378662109375},{"x":1795482513000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795482573000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795482633000,"y":-4.70000000000000017763568394002504646778106689453125},{"x":1795482693000,"y":-4.70000000000000017763568394002504646778106689453125}],"highlightExtremes":false,"unit":" °C"}], {"yLabel":"\u00b0C"}); }); $(document).ready(function() { buildMeteoChart('chart-humidity-canvas', 'chart-humidity-reset', [{"label":"Vlhkosť (%)","color":"#ff9000","points":[{"x":1795474834000,"y":68},{"x":1795474894000,"y":68},{"x":1795474954000,"y":68},{"x":1795475015000,"y":68},{"x":1795475074000,"y":68},{"x":1795475134000,"y":68},{"x":1795475194000,"y":68},{"x":1795475254000,"y":68},{"x":1795475314000,"y":68},{"x":1795475374000,"y":68},{"x":1795475435000,"y":68},{"x":1795475494000,"y":68},{"x":1795475554000,"y":68},{"x":1795475614000,"y":69},{"x":1795475676000,"y":69},{"x":1795475747000,"y":69},{"x":1795475812000,"y":69},{"x":1795475876000,"y":69},{"x":1795475940000,"y":69},{"x":1795476004000,"y":69},{"x":1795476067000,"y":69},{"x":1795476132000,"y":69},{"x":1795476194000,"y":69},{"x":1795476259000,"y":69},{"x":1795476323000,"y":69},{"x":1795476387000,"y":69},{"x":1795476451000,"y":70},{"x":1795476514000,"y":70},{"x":1795476574000,"y":70},{"x":1795476634000,"y":70},{"x":1795476694000,"y":70},{"x":1795476754000,"y":70},{"x":1795476814000,"y":70},{"x":1795476873000,"y":70},{"x":1795476934000,"y":70},{"x":1795476994000,"y":70},{"x":1795477054000,"y":71},{"x":1795477113000,"y":71},{"x":1795477176000,"y":71},{"x":1795477234000,"y":71},{"x":1795477294000,"y":71},{"x":1795477354000,"y":71},{"x":1795477414000,"y":71},{"x":1795477474000,"y":72},{"x":1795477533000,"y":72},{"x":1795477593000,"y":72},{"x":1795477653000,"y":72},{"x":1795477713000,"y":71},{"x":1795477774000,"y":71},{"x":1795477834000,"y":72},{"x":1795477894000,"y":71},{"x":1795477954000,"y":72},{"x":1795478014000,"y":72},{"x":1795478074000,"y":72},{"x":1795478133000,"y":72},{"x":1795478194000,"y":72},{"x":1795478254000,"y":72},{"x":1795478315000,"y":72},{"x":1795478374000,"y":72},{"x":1795478434000,"y":72},{"x":1795478494000,"y":72},{"x":1795478554000,"y":72},{"x":1795478614000,"y":71},{"x":1795478674000,"y":72},{"x":1795478734000,"y":72},{"x":1795478793000,"y":72},{"x":1795478854000,"y":72},{"x":1795478914000,"y":72},{"x":1795478974000,"y":72},{"x":1795479033000,"y":72},{"x":1795479106000,"y":72},{"x":1795479167000,"y":72},{"x":1795479235000,"y":72},{"x":1795479299000,"y":72},{"x":1795479363000,"y":72},{"x":1795479427000,"y":72},{"x":1795479491000,"y":72},{"x":1795479555000,"y":72},{"x":1795479619000,"y":72},{"x":1795479683000,"y":72},{"x":1795479747000,"y":72},{"x":1795479811000,"y":72},{"x":1795479874000,"y":72},{"x":1795479933000,"y":72},{"x":1795479995000,"y":72},{"x":1795480056000,"y":72},{"x":1795480113000,"y":72},{"x":1795480173000,"y":72},{"x":1795480233000,"y":72},{"x":1795480293000,"y":72},{"x":1795480353000,"y":72},{"x":1795480413000,"y":71},{"x":1795480473000,"y":71},{"x":1795480533000,"y":71},{"x":1795480593000,"y":71},{"x":1795480653000,"y":71},{"x":1795480713000,"y":71},{"x":1795480773000,"y":71},{"x":1795480833000,"y":71},{"x":1795480893000,"y":71},{"x":1795480954000,"y":71},{"x":1795481013000,"y":71},{"x":1795481072000,"y":71},{"x":1795481133000,"y":71},{"x":1795481193000,"y":71},{"x":1795481268000,"y":72},{"x":1795481328000,"y":71},{"x":1795481387000,"y":71},{"x":1795481460000,"y":72},{"x":1795481522000,"y":72},{"x":1795481587000,"y":71},{"x":1795481651000,"y":72},{"x":1795481715000,"y":72},{"x":1795481779000,"y":72},{"x":1795481843000,"y":72},{"x":1795481907000,"y":72},{"x":1795481971000,"y":72},{"x":1795482033000,"y":72},{"x":1795482094000,"y":72},{"x":1795482152000,"y":72},{"x":1795482213000,"y":72},{"x":1795482273000,"y":72},{"x":1795482333000,"y":72},{"x":1795482393000,"y":72},{"x":1795482453000,"y":72},{"x":1795482513000,"y":72},{"x":1795482573000,"y":72},{"x":1795482633000,"y":72},{"x":1795482693000,"y":72}],"highlightExtremes":true,"unit":" %"}], {"yLabel":"%"}); }); $(document).ready(function() { buildMeteoChart('chart-pressure-canvas', 'chart-pressure-reset', [{"label":"Atmosférický tlak (hPa)","color":"#000000","points":[{"x":1795474834000,"y":1000.299999999999954525264911353588104248046875},{"x":1795474894000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795474954000,"y":1000},{"x":1795475015000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795475074000,"y":999.8999999999999772626324556767940521240234375},{"x":1795475134000,"y":1000},{"x":1795475194000,"y":1000},{"x":1795475254000,"y":1000},{"x":1795475314000,"y":1000.200000000000045474735088646411895751953125},{"x":1795475374000,"y":1000.200000000000045474735088646411895751953125},{"x":1795475435000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795475494000,"y":999.8999999999999772626324556767940521240234375},{"x":1795475554000,"y":999.8999999999999772626324556767940521240234375},{"x":1795475614000,"y":999.8999999999999772626324556767940521240234375},{"x":1795475676000,"y":1000},{"x":1795475747000,"y":999.8999999999999772626324556767940521240234375},{"x":1795475812000,"y":1000},{"x":1795475876000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795475940000,"y":1000},{"x":1795476004000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476067000,"y":1000},{"x":1795476132000,"y":999.8999999999999772626324556767940521240234375},{"x":1795476194000,"y":1000},{"x":1795476259000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476323000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476387000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476451000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476514000,"y":1000},{"x":1795476574000,"y":1000},{"x":1795476634000,"y":1000},{"x":1795476694000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476754000,"y":1000.200000000000045474735088646411895751953125},{"x":1795476814000,"y":1000.200000000000045474735088646411895751953125},{"x":1795476873000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795476934000,"y":1000},{"x":1795476994000,"y":999.8999999999999772626324556767940521240234375},{"x":1795477054000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477113000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477176000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477234000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477294000,"y":1000.299999999999954525264911353588104248046875},{"x":1795477354000,"y":1000.200000000000045474735088646411895751953125},{"x":1795477414000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477474000,"y":1000.200000000000045474735088646411895751953125},{"x":1795477533000,"y":1000},{"x":1795477593000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477653000,"y":1000.200000000000045474735088646411895751953125},{"x":1795477713000,"y":1000.200000000000045474735088646411895751953125},{"x":1795477774000,"y":1000},{"x":1795477834000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795477894000,"y":1000},{"x":1795477954000,"y":1000.200000000000045474735088646411895751953125},{"x":1795478014000,"y":1000.200000000000045474735088646411895751953125},{"x":1795478074000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795478133000,"y":1000.1000000000000227373675443232059478759765625},{"x":1795478194000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795478254000,"y":1000.200000000000045474735088646411895751953125},{"x":1795478315000,"y":1000.299999999999954525264911353588104248046875},{"x":1795478374000,"y":1000.299999999999954525264911353588104248046875},{"x":1795478434000,"y":1000.200000000000045474735088646411895751953125},{"x":1795478494000,"y":1000.299999999999954525264911353588104248046875},{"x":1795478554000,"y":1000.299999999999954525264911353588104248046875},{"x":1795478614000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795478674000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795478734000,"y":1000.299999999999954525264911353588104248046875},{"x":1795478793000,"y":1000.299999999999954525264911353588104248046875},{"x":1795478854000,"y":1000.200000000000045474735088646411895751953125},{"x":1795478914000,"y":1000.200000000000045474735088646411895751953125},{"x":1795478974000,"y":1000.299999999999954525264911353588104248046875},{"x":1795479033000,"y":1000},{"x":1795479106000,"y":1000.200000000000045474735088646411895751953125},{"x":1795479167000,"y":1000.299999999999954525264911353588104248046875},{"x":1795479235000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795479299000,"y":1000.299999999999954525264911353588104248046875},{"x":1795479363000,"y":1000.299999999999954525264911353588104248046875},{"x":1795479427000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795479491000,"y":1000.299999999999954525264911353588104248046875},{"x":1795479555000,"y":1000.299999999999954525264911353588104248046875},{"x":1795479619000,"y":1000.5},{"x":1795479683000,"y":1000.700000000000045474735088646411895751953125},{"x":1795479747000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795479811000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795479874000,"y":1000.5},{"x":1795479933000,"y":1000.5},{"x":1795479995000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795480056000,"y":1000.700000000000045474735088646411895751953125},{"x":1795480113000,"y":1000.5},{"x":1795480173000,"y":1000.5},{"x":1795480233000,"y":1000.700000000000045474735088646411895751953125},{"x":1795480293000,"y":1000.700000000000045474735088646411895751953125},{"x":1795480353000,"y":1000.5},{"x":1795480413000,"y":1000.700000000000045474735088646411895751953125},{"x":1795480473000,"y":1000.700000000000045474735088646411895751953125},{"x":1795480533000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795480593000,"y":1000.5},{"x":1795480653000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795480713000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795480773000,"y":1000.700000000000045474735088646411895751953125},{"x":1795480833000,"y":1000.799999999999954525264911353588104248046875},{"x":1795480893000,"y":1000.5},{"x":1795480954000,"y":1000.799999999999954525264911353588104248046875},{"x":1795481013000,"y":1000.3999999999999772626324556767940521240234375},{"x":1795481072000,"y":1000.799999999999954525264911353588104248046875},{"x":1795481133000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795481193000,"y":1000.700000000000045474735088646411895751953125},{"x":1795481268000,"y":1000.700000000000045474735088646411895751953125},{"x":1795481328000,"y":1000.700000000000045474735088646411895751953125},{"x":1795481387000,"y":1000.700000000000045474735088646411895751953125},{"x":1795481460000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795481522000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795481587000,"y":1000.700000000000045474735088646411895751953125},{"x":1795481651000,"y":1000.700000000000045474735088646411895751953125},{"x":1795481715000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795481779000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795481843000,"y":1000.6000000000000227373675443232059478759765625},{"x":1795481907000,"y":1000.8999999999999772626324556767940521240234375},{"x":1795481971000,"y":1000.8999999999999772626324556767940521240234375},{"x":1795482033000,"y":1000.700000000000045474735088646411895751953125},{"x":1795482094000,"y":1000.799999999999954525264911353588104248046875},{"x":1795482152000,"y":1000.700000000000045474735088646411895751953125},{"x":1795482213000,"y":1000.700000000000045474735088646411895751953125},{"x":1795482273000,"y":1001},{"x":1795482333000,"y":1001},{"x":1795482393000,"y":1000.799999999999954525264911353588104248046875},{"x":1795482453000,"y":1000.799999999999954525264911353588104248046875},{"x":1795482513000,"y":1000.700000000000045474735088646411895751953125},{"x":1795482573000,"y":1000.799999999999954525264911353588104248046875},{"x":1795482633000,"y":1000.799999999999954525264911353588104248046875},{"x":1795482693000,"y":1000.799999999999954525264911353588104248046875}],"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":1795474834000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795474894000,"y":14},{"x":1795474954000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795475015000,"y":13},{"x":1795475074000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795475134000,"y":19.39999999999999857891452847979962825775146484375},{"x":1795475194000,"y":14},{"x":1795475254000,"y":15.0999999999999996447286321199499070644378662109375},{"x":1795475314000,"y":15.5},{"x":1795475374000,"y":11.5},{"x":1795475435000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795475494000,"y":9},{"x":1795475554000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795475614000,"y":14},{"x":1795475676000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795475747000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795475812000,"y":13},{"x":1795475876000,"y":24.5},{"x":1795475940000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795476004000,"y":20.199999999999999289457264239899814128875732421875},{"x":1795476067000,"y":19.39999999999999857891452847979962825775146484375},{"x":1795476132000,"y":19.10000000000000142108547152020037174224853515625},{"x":1795476194000,"y":20.199999999999999289457264239899814128875732421875},{"x":1795476259000,"y":15.5},{"x":1795476323000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795476387000,"y":17.60000000000000142108547152020037174224853515625},{"x":1795476451000,"y":20.199999999999999289457264239899814128875732421875},{"x":1795476514000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795476574000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795476634000,"y":18},{"x":1795476694000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795476754000,"y":15.5},{"x":1795476814000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795476873000,"y":15.800000000000000710542735760100185871124267578125},{"x":1795476934000,"y":15.0999999999999996447286321199499070644378662109375},{"x":1795476994000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795477054000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795477113000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795477176000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795477234000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795477294000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795477354000,"y":11.5},{"x":1795477414000,"y":13},{"x":1795477474000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795477533000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795477593000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795477653000,"y":17.60000000000000142108547152020037174224853515625},{"x":1795477713000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795477774000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795477834000,"y":14},{"x":1795477894000,"y":15.800000000000000710542735760100185871124267578125},{"x":1795477954000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795478014000,"y":15.5},{"x":1795478074000,"y":15.5},{"x":1795478133000,"y":14},{"x":1795478194000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795478254000,"y":15.0999999999999996447286321199499070644378662109375},{"x":1795478315000,"y":15.0999999999999996447286321199499070644378662109375},{"x":1795478374000,"y":22},{"x":1795478434000,"y":11.5},{"x":1795478494000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795478554000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795478614000,"y":15.800000000000000710542735760100185871124267578125},{"x":1795478674000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795478734000,"y":18},{"x":1795478793000,"y":15.5},{"x":1795478854000,"y":15.800000000000000710542735760100185871124267578125},{"x":1795478914000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795478974000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795479033000,"y":14},{"x":1795479106000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795479167000,"y":20.5},{"x":1795479235000,"y":12.5999999999999996447286321199499070644378662109375},{"x":1795479299000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795479363000,"y":19.10000000000000142108547152020037174224853515625},{"x":1795479427000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795479491000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795479555000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795479619000,"y":22.699999999999999289457264239899814128875732421875},{"x":1795479683000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795479747000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795479811000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795479874000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795479933000,"y":7.5999999999999996447286321199499070644378662109375},{"x":1795479995000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795480056000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795480113000,"y":15.5},{"x":1795480173000,"y":13.699999999999999289457264239899814128875732421875},{"x":1795480233000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795480293000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795480353000,"y":7.9000000000000003552713678800500929355621337890625},{"x":1795480413000,"y":13},{"x":1795480473000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795480533000,"y":13},{"x":1795480593000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795480653000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795480713000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795480773000,"y":20.5},{"x":1795480833000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795480893000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795480954000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795481013000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795481072000,"y":15.5},{"x":1795481133000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795481193000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795481268000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795481328000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795481387000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795481460000,"y":16.60000000000000142108547152020037174224853515625},{"x":1795481522000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795481587000,"y":10.4000000000000003552713678800500929355621337890625},{"x":1795481651000,"y":16.89999999999999857891452847979962825775146484375},{"x":1795481715000,"y":13},{"x":1795481779000,"y":12.5999999999999996447286321199499070644378662109375},{"x":1795481843000,"y":13},{"x":1795481907000,"y":14},{"x":1795481971000,"y":11.9000000000000003552713678800500929355621337890625},{"x":1795482033000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795482094000,"y":15.0999999999999996447286321199499070644378662109375},{"x":1795482152000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795482213000,"y":14.4000000000000003552713678800500929355621337890625},{"x":1795482273000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795482333000,"y":19.10000000000000142108547152020037174224853515625},{"x":1795482393000,"y":15.800000000000000710542735760100185871124267578125},{"x":1795482453000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795482513000,"y":11.5},{"x":1795482573000,"y":9},{"x":1795482633000,"y":11.199999999999999289457264239899814128875732421875},{"x":1795482693000,"y":11.9000000000000003552713678800500929355621337890625}],"highlightExtremes":true,"unit":" km\/h"},{"label":"Náraz vetra (km\/h)","color":"#EF9856","points":[{"x":1795474834000,"y":20.5},{"x":1795474894000,"y":18},{"x":1795474954000,"y":20.5},{"x":1795475015000,"y":20.5},{"x":1795475074000,"y":18},{"x":1795475134000,"y":23},{"x":1795475194000,"y":18},{"x":1795475254000,"y":20.5},{"x":1795475314000,"y":18},{"x":1795475374000,"y":15.5},{"x":1795475435000,"y":15.5},{"x":1795475494000,"y":13},{"x":1795475554000,"y":13},{"x":1795475614000,"y":18},{"x":1795475676000,"y":15.5},{"x":1795475747000,"y":20.5},{"x":1795475812000,"y":15.5},{"x":1795475876000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795475940000,"y":18},{"x":1795476004000,"y":23},{"x":1795476067000,"y":23},{"x":1795476132000,"y":23},{"x":1795476194000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795476259000,"y":18},{"x":1795476323000,"y":23},{"x":1795476387000,"y":20.5},{"x":1795476451000,"y":25.60000000000000142108547152020037174224853515625},{"x":1795476514000,"y":20.5},{"x":1795476574000,"y":20.5},{"x":1795476634000,"y":23},{"x":1795476694000,"y":20.5},{"x":1795476754000,"y":23},{"x":1795476814000,"y":20.5},{"x":1795476873000,"y":20.5},{"x":1795476934000,"y":15.5},{"x":1795476994000,"y":15.5},{"x":1795477054000,"y":13},{"x":1795477113000,"y":18},{"x":1795477176000,"y":20.5},{"x":1795477234000,"y":13},{"x":1795477294000,"y":18},{"x":1795477354000,"y":13},{"x":1795477414000,"y":15.5},{"x":1795477474000,"y":13},{"x":1795477533000,"y":18},{"x":1795477593000,"y":18},{"x":1795477653000,"y":25.60000000000000142108547152020037174224853515625},{"x":1795477713000,"y":18},{"x":1795477774000,"y":20.5},{"x":1795477834000,"y":20.5},{"x":1795477894000,"y":20.5},{"x":1795477954000,"y":13},{"x":1795478014000,"y":20.5},{"x":1795478074000,"y":20.5},{"x":1795478133000,"y":18},{"x":1795478194000,"y":15.5},{"x":1795478254000,"y":15.5},{"x":1795478315000,"y":23},{"x":1795478374000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795478434000,"y":13},{"x":1795478494000,"y":15.5},{"x":1795478554000,"y":18},{"x":1795478614000,"y":23},{"x":1795478674000,"y":23},{"x":1795478734000,"y":23},{"x":1795478793000,"y":23},{"x":1795478854000,"y":20.5},{"x":1795478914000,"y":18},{"x":1795478974000,"y":18},{"x":1795479033000,"y":18},{"x":1795479106000,"y":15.5},{"x":1795479167000,"y":23},{"x":1795479235000,"y":18},{"x":1795479299000,"y":18},{"x":1795479363000,"y":23},{"x":1795479427000,"y":23},{"x":1795479491000,"y":20.5},{"x":1795479555000,"y":23},{"x":1795479619000,"y":28.10000000000000142108547152020037174224853515625},{"x":1795479683000,"y":18},{"x":1795479747000,"y":13},{"x":1795479811000,"y":13},{"x":1795479874000,"y":13},{"x":1795479933000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795479995000,"y":20.5},{"x":1795480056000,"y":13},{"x":1795480113000,"y":18},{"x":1795480173000,"y":15.5},{"x":1795480233000,"y":20.5},{"x":1795480293000,"y":13},{"x":1795480353000,"y":10.0999999999999996447286321199499070644378662109375},{"x":1795480413000,"y":15.5},{"x":1795480473000,"y":13},{"x":1795480533000,"y":15.5},{"x":1795480593000,"y":20.5},{"x":1795480653000,"y":15.5},{"x":1795480713000,"y":15.5},{"x":1795480773000,"y":25.60000000000000142108547152020037174224853515625},{"x":1795480833000,"y":13},{"x":1795480893000,"y":15.5},{"x":1795480954000,"y":20.5},{"x":1795481013000,"y":15.5},{"x":1795481072000,"y":18},{"x":1795481133000,"y":13},{"x":1795481193000,"y":13},{"x":1795481268000,"y":20.5},{"x":1795481328000,"y":20.5},{"x":1795481387000,"y":18},{"x":1795481460000,"y":18},{"x":1795481522000,"y":13},{"x":1795481587000,"y":13},{"x":1795481651000,"y":20.5},{"x":1795481715000,"y":18},{"x":1795481779000,"y":15.5},{"x":1795481843000,"y":18},{"x":1795481907000,"y":18},{"x":1795481971000,"y":15.5},{"x":1795482033000,"y":18},{"x":1795482094000,"y":20.5},{"x":1795482152000,"y":15.5},{"x":1795482213000,"y":20.5},{"x":1795482273000,"y":13},{"x":1795482333000,"y":23},{"x":1795482393000,"y":20.5},{"x":1795482453000,"y":13},{"x":1795482513000,"y":15.5},{"x":1795482573000,"y":13},{"x":1795482633000,"y":13},{"x":1795482693000,"y":13}],"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":1795474834000,"y":233},{"x":1795474894000,"y":272},{"x":1795474954000,"y":248},{"x":1795475015000,"y":261},{"x":1795475074000,"y":258},{"x":1795475134000,"y":248},{"x":1795475194000,"y":254},{"x":1795475254000,"y":238},{"x":1795475314000,"y":257},{"x":1795475374000,"y":256},{"x":1795475435000,"y":242},{"x":1795475494000,"y":276},{"x":1795475554000,"y":259},{"x":1795475614000,"y":231},{"x":1795475676000,"y":252},{"x":1795475747000,"y":257},{"x":1795475812000,"y":257},{"x":1795475876000,"y":290},{"x":1795475940000,"y":248},{"x":1795476004000,"y":247},{"x":1795476067000,"y":286},{"x":1795476132000,"y":261},{"x":1795476194000,"y":252},{"x":1795476259000,"y":240},{"x":1795476323000,"y":262},{"x":1795476387000,"y":248},{"x":1795476451000,"y":250},{"x":1795476514000,"y":246},{"x":1795476574000,"y":241},{"x":1795476634000,"y":271},{"x":1795476694000,"y":268},{"x":1795476754000,"y":259},{"x":1795476814000,"y":231},{"x":1795476873000,"y":320},{"x":1795476934000,"y":268},{"x":1795476994000,"y":281},{"x":1795477054000,"y":283},{"x":1795477113000,"y":250},{"x":1795477176000,"y":238},{"x":1795477234000,"y":285},{"x":1795477294000,"y":250},{"x":1795477354000,"y":245},{"x":1795477414000,"y":254},{"x":1795477474000,"y":226},{"x":1795477533000,"y":254},{"x":1795477593000,"y":260},{"x":1795477653000,"y":300},{"x":1795477713000,"y":250},{"x":1795477774000,"y":250},{"x":1795477834000,"y":252},{"x":1795477894000,"y":253},{"x":1795477954000,"y":239},{"x":1795478014000,"y":259},{"x":1795478074000,"y":260},{"x":1795478133000,"y":320},{"x":1795478194000,"y":262},{"x":1795478254000,"y":253},{"x":1795478315000,"y":279},{"x":1795478374000,"y":261},{"x":1795478434000,"y":258},{"x":1795478494000,"y":218},{"x":1795478554000,"y":228},{"x":1795478614000,"y":242},{"x":1795478674000,"y":238},{"x":1795478734000,"y":269},{"x":1795478793000,"y":273},{"x":1795478854000,"y":257},{"x":1795478914000,"y":271},{"x":1795478974000,"y":257},{"x":1795479033000,"y":269},{"x":1795479106000,"y":281},{"x":1795479167000,"y":268},{"x":1795479235000,"y":261},{"x":1795479299000,"y":242},{"x":1795479363000,"y":262},{"x":1795479427000,"y":251},{"x":1795479491000,"y":261},{"x":1795479555000,"y":253},{"x":1795479619000,"y":211},{"x":1795479683000,"y":279},{"x":1795479747000,"y":249},{"x":1795479811000,"y":272},{"x":1795479874000,"y":304},{"x":1795479933000,"y":217},{"x":1795479995000,"y":264},{"x":1795480056000,"y":272},{"x":1795480113000,"y":220},{"x":1795480173000,"y":282},{"x":1795480233000,"y":267},{"x":1795480293000,"y":216},{"x":1795480353000,"y":219},{"x":1795480413000,"y":198},{"x":1795480473000,"y":242},{"x":1795480533000,"y":268},{"x":1795480593000,"y":260},{"x":1795480653000,"y":249},{"x":1795480713000,"y":217},{"x":1795480773000,"y":264},{"x":1795480833000,"y":255},{"x":1795480893000,"y":270},{"x":1795480954000,"y":255},{"x":1795481013000,"y":252},{"x":1795481072000,"y":248},{"x":1795481133000,"y":237},{"x":1795481193000,"y":252},{"x":1795481268000,"y":229},{"x":1795481328000,"y":277},{"x":1795481387000,"y":254},{"x":1795481460000,"y":260},{"x":1795481522000,"y":254},{"x":1795481587000,"y":248},{"x":1795481651000,"y":262},{"x":1795481715000,"y":256},{"x":1795481779000,"y":279},{"x":1795481843000,"y":202},{"x":1795481907000,"y":252},{"x":1795481971000,"y":234},{"x":1795482033000,"y":273},{"x":1795482094000,"y":247},{"x":1795482152000,"y":241},{"x":1795482213000,"y":236},{"x":1795482273000,"y":255},{"x":1795482333000,"y":267},{"x":1795482393000,"y":264},{"x":1795482453000,"y":243},{"x":1795482513000,"y":292},{"x":1795482573000,"y":248},{"x":1795482633000,"y":252},{"x":1795482693000,"y":244}],"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":1795474834000,"y":0},{"x":1795474894000,"y":0},{"x":1795474954000,"y":0},{"x":1795475015000,"y":0},{"x":1795475074000,"y":0},{"x":1795475134000,"y":0},{"x":1795475194000,"y":0},{"x":1795475254000,"y":0},{"x":1795475314000,"y":0},{"x":1795475374000,"y":0},{"x":1795475435000,"y":0},{"x":1795475494000,"y":0},{"x":1795475554000,"y":0},{"x":1795475614000,"y":0},{"x":1795475676000,"y":0},{"x":1795475747000,"y":0},{"x":1795475812000,"y":0},{"x":1795475876000,"y":0},{"x":1795475940000,"y":0},{"x":1795476004000,"y":0},{"x":1795476067000,"y":0},{"x":1795476132000,"y":0},{"x":1795476194000,"y":0},{"x":1795476259000,"y":0},{"x":1795476323000,"y":0},{"x":1795476387000,"y":0},{"x":1795476451000,"y":0},{"x":1795476514000,"y":0},{"x":1795476574000,"y":0},{"x":1795476634000,"y":0},{"x":1795476694000,"y":0},{"x":1795476754000,"y":0},{"x":1795476814000,"y":0},{"x":1795476873000,"y":0},{"x":1795476934000,"y":0},{"x":1795476994000,"y":0},{"x":1795477054000,"y":0},{"x":1795477113000,"y":0},{"x":1795477176000,"y":0},{"x":1795477234000,"y":0},{"x":1795477294000,"y":0},{"x":1795477354000,"y":0},{"x":1795477414000,"y":0},{"x":1795477474000,"y":0},{"x":1795477533000,"y":0},{"x":1795477593000,"y":0},{"x":1795477653000,"y":0},{"x":1795477713000,"y":0},{"x":1795477774000,"y":0},{"x":1795477834000,"y":0},{"x":1795477894000,"y":0},{"x":1795477954000,"y":0},{"x":1795478014000,"y":0},{"x":1795478074000,"y":0},{"x":1795478133000,"y":0},{"x":1795478194000,"y":0},{"x":1795478254000,"y":0},{"x":1795478315000,"y":0},{"x":1795478374000,"y":0},{"x":1795478434000,"y":0},{"x":1795478494000,"y":0},{"x":1795478554000,"y":0},{"x":1795478614000,"y":0},{"x":1795478674000,"y":0},{"x":1795478734000,"y":0},{"x":1795478793000,"y":0},{"x":1795478854000,"y":0},{"x":1795478914000,"y":0},{"x":1795478974000,"y":0},{"x":1795479033000,"y":0},{"x":1795479106000,"y":0},{"x":1795479167000,"y":0},{"x":1795479235000,"y":0},{"x":1795479299000,"y":0},{"x":1795479363000,"y":0},{"x":1795479427000,"y":0},{"x":1795479491000,"y":0},{"x":1795479555000,"y":0},{"x":1795479619000,"y":0},{"x":1795479683000,"y":0},{"x":1795479747000,"y":0},{"x":1795479811000,"y":0},{"x":1795479874000,"y":0},{"x":1795479933000,"y":0},{"x":1795479995000,"y":0},{"x":1795480056000,"y":0},{"x":1795480113000,"y":0},{"x":1795480173000,"y":0},{"x":1795480233000,"y":0},{"x":1795480293000,"y":0},{"x":1795480353000,"y":0},{"x":1795480413000,"y":0},{"x":1795480473000,"y":0},{"x":1795480533000,"y":0},{"x":1795480593000,"y":0},{"x":1795480653000,"y":0},{"x":1795480713000,"y":0},{"x":1795480773000,"y":0},{"x":1795480833000,"y":0},{"x":1795480893000,"y":0},{"x":1795480954000,"y":0},{"x":1795481013000,"y":0},{"x":1795481072000,"y":0},{"x":1795481133000,"y":0},{"x":1795481193000,"y":0},{"x":1795481268000,"y":0},{"x":1795481328000,"y":0},{"x":1795481387000,"y":0},{"x":1795481460000,"y":0},{"x":1795481522000,"y":0},{"x":1795481587000,"y":0},{"x":1795481651000,"y":0},{"x":1795481715000,"y":0},{"x":1795481779000,"y":0},{"x":1795481843000,"y":0},{"x":1795481907000,"y":0},{"x":1795481971000,"y":0},{"x":1795482033000,"y":0},{"x":1795482094000,"y":0},{"x":1795482152000,"y":0},{"x":1795482213000,"y":0},{"x":1795482273000,"y":0},{"x":1795482333000,"y":0},{"x":1795482393000,"y":0},{"x":1795482453000,"y":0},{"x":1795482513000,"y":0},{"x":1795482573000,"y":0},{"x":1795482633000,"y":0},{"x":1795482693000,"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":1795474834000,"y":0},{"x":1795474894000,"y":0},{"x":1795474954000,"y":0},{"x":1795475015000,"y":0},{"x":1795475074000,"y":0},{"x":1795475134000,"y":0},{"x":1795475194000,"y":0},{"x":1795475254000,"y":0},{"x":1795475314000,"y":0},{"x":1795475374000,"y":0},{"x":1795475435000,"y":0},{"x":1795475494000,"y":0},{"x":1795475554000,"y":0},{"x":1795475614000,"y":0},{"x":1795475676000,"y":0},{"x":1795475747000,"y":0},{"x":1795475812000,"y":0},{"x":1795475876000,"y":0},{"x":1795475940000,"y":0},{"x":1795476004000,"y":0},{"x":1795476067000,"y":0},{"x":1795476132000,"y":0},{"x":1795476194000,"y":0},{"x":1795476259000,"y":0},{"x":1795476323000,"y":0},{"x":1795476387000,"y":0},{"x":1795476451000,"y":0},{"x":1795476514000,"y":0},{"x":1795476574000,"y":0},{"x":1795476634000,"y":0},{"x":1795476694000,"y":0},{"x":1795476754000,"y":0},{"x":1795476814000,"y":0},{"x":1795476873000,"y":0},{"x":1795476934000,"y":0},{"x":1795476994000,"y":0},{"x":1795477054000,"y":0},{"x":1795477113000,"y":0},{"x":1795477176000,"y":0},{"x":1795477234000,"y":0},{"x":1795477294000,"y":0},{"x":1795477354000,"y":0},{"x":1795477414000,"y":0},{"x":1795477474000,"y":0},{"x":1795477533000,"y":0},{"x":1795477593000,"y":0},{"x":1795477653000,"y":0},{"x":1795477713000,"y":0},{"x":1795477774000,"y":0},{"x":1795477834000,"y":0},{"x":1795477894000,"y":0},{"x":1795477954000,"y":0},{"x":1795478014000,"y":0},{"x":1795478074000,"y":0},{"x":1795478133000,"y":0},{"x":1795478194000,"y":0},{"x":1795478254000,"y":0},{"x":1795478315000,"y":0},{"x":1795478374000,"y":0},{"x":1795478434000,"y":0},{"x":1795478494000,"y":0},{"x":1795478554000,"y":0},{"x":1795478614000,"y":0},{"x":1795478674000,"y":0},{"x":1795478734000,"y":0},{"x":1795478793000,"y":0},{"x":1795478854000,"y":0},{"x":1795478914000,"y":0},{"x":1795478974000,"y":0},{"x":1795479033000,"y":0},{"x":1795479106000,"y":0},{"x":1795479167000,"y":0},{"x":1795479235000,"y":0},{"x":1795479299000,"y":0},{"x":1795479363000,"y":0},{"x":1795479427000,"y":0},{"x":1795479491000,"y":0},{"x":1795479555000,"y":0},{"x":1795479619000,"y":0},{"x":1795479683000,"y":0},{"x":1795479747000,"y":0},{"x":1795479811000,"y":0},{"x":1795479874000,"y":0},{"x":1795479933000,"y":0},{"x":1795479995000,"y":0},{"x":1795480056000,"y":0},{"x":1795480113000,"y":0},{"x":1795480173000,"y":0},{"x":1795480233000,"y":0},{"x":1795480293000,"y":0},{"x":1795480353000,"y":0},{"x":1795480413000,"y":0},{"x":1795480473000,"y":0},{"x":1795480533000,"y":0},{"x":1795480593000,"y":0},{"x":1795480653000,"y":0},{"x":1795480713000,"y":0},{"x":1795480773000,"y":0},{"x":1795480833000,"y":0},{"x":1795480893000,"y":0},{"x":1795480954000,"y":0},{"x":1795481013000,"y":0},{"x":1795481072000,"y":0},{"x":1795481133000,"y":0},{"x":1795481193000,"y":0},{"x":1795481268000,"y":0},{"x":1795481328000,"y":0},{"x":1795481387000,"y":0},{"x":1795481460000,"y":0},{"x":1795481522000,"y":0},{"x":1795481587000,"y":0},{"x":1795481651000,"y":0},{"x":1795481715000,"y":0},{"x":1795481779000,"y":0},{"x":1795481843000,"y":0},{"x":1795481907000,"y":0},{"x":1795481971000,"y":0},{"x":1795482033000,"y":0},{"x":1795482094000,"y":0},{"x":1795482152000,"y":0},{"x":1795482213000,"y":0},{"x":1795482273000,"y":0},{"x":1795482333000,"y":0},{"x":1795482393000,"y":0},{"x":1795482453000,"y":0},{"x":1795482513000,"y":0},{"x":1795482573000,"y":0},{"x":1795482633000,"y":0},{"x":1795482693000,"y":0}],"highlightExtremes":true}], {"yMin":0}); }); $(document).ready(function() { buildMeteoChart('chart-rain-canvas', 'chart-rain-reset', [{"label":"Zrážky (mm)","color":"#008fbf","points":[{"x":1795474834000,"y":0},{"x":1795474894000,"y":0},{"x":1795474954000,"y":0},{"x":1795475015000,"y":0},{"x":1795475074000,"y":0},{"x":1795475134000,"y":0},{"x":1795475194000,"y":0},{"x":1795475254000,"y":0},{"x":1795475314000,"y":0},{"x":1795475374000,"y":0},{"x":1795475435000,"y":0},{"x":1795475494000,"y":0},{"x":1795475554000,"y":0},{"x":1795475614000,"y":0},{"x":1795475676000,"y":0},{"x":1795475747000,"y":0},{"x":1795475812000,"y":0},{"x":1795475876000,"y":0},{"x":1795475940000,"y":0},{"x":1795476004000,"y":0},{"x":1795476067000,"y":0},{"x":1795476132000,"y":0},{"x":1795476194000,"y":0},{"x":1795476259000,"y":0},{"x":1795476323000,"y":0},{"x":1795476387000,"y":0},{"x":1795476451000,"y":0},{"x":1795476514000,"y":0},{"x":1795476574000,"y":0},{"x":1795476634000,"y":0},{"x":1795476694000,"y":0},{"x":1795476754000,"y":0},{"x":1795476814000,"y":0},{"x":1795476873000,"y":0},{"x":1795476934000,"y":0},{"x":1795476994000,"y":0},{"x":1795477054000,"y":0},{"x":1795477113000,"y":0},{"x":1795477176000,"y":0},{"x":1795477234000,"y":0},{"x":1795477294000,"y":0},{"x":1795477354000,"y":0},{"x":1795477414000,"y":0},{"x":1795477474000,"y":0},{"x":1795477533000,"y":0},{"x":1795477593000,"y":0},{"x":1795477653000,"y":0},{"x":1795477713000,"y":0},{"x":1795477774000,"y":0},{"x":1795477834000,"y":0},{"x":1795477894000,"y":0},{"x":1795477954000,"y":0},{"x":1795478014000,"y":0},{"x":1795478074000,"y":0},{"x":1795478133000,"y":0},{"x":1795478194000,"y":0},{"x":1795478254000,"y":0},{"x":1795478315000,"y":0},{"x":1795478374000,"y":0},{"x":1795478434000,"y":0},{"x":1795478494000,"y":0},{"x":1795478554000,"y":0},{"x":1795478614000,"y":0},{"x":1795478674000,"y":0},{"x":1795478734000,"y":0},{"x":1795478793000,"y":0},{"x":1795478854000,"y":0},{"x":1795478914000,"y":0},{"x":1795478974000,"y":0},{"x":1795479033000,"y":0},{"x":1795479106000,"y":0},{"x":1795479167000,"y":0},{"x":1795479235000,"y":0},{"x":1795479299000,"y":0},{"x":1795479363000,"y":0},{"x":1795479427000,"y":0},{"x":1795479491000,"y":0},{"x":1795479555000,"y":0},{"x":1795479619000,"y":0},{"x":1795479683000,"y":0},{"x":1795479747000,"y":0},{"x":1795479811000,"y":0},{"x":1795479874000,"y":0},{"x":1795479933000,"y":0},{"x":1795479995000,"y":0},{"x":1795480056000,"y":0},{"x":1795480113000,"y":0},{"x":1795480173000,"y":0},{"x":1795480233000,"y":0},{"x":1795480293000,"y":0},{"x":1795480353000,"y":0},{"x":1795480413000,"y":0},{"x":1795480473000,"y":0},{"x":1795480533000,"y":0},{"x":1795480593000,"y":0},{"x":1795480653000,"y":0},{"x":1795480713000,"y":0},{"x":1795480773000,"y":0},{"x":1795480833000,"y":0},{"x":1795480893000,"y":0},{"x":1795480954000,"y":0},{"x":1795481013000,"y":0},{"x":1795481072000,"y":0},{"x":1795481133000,"y":0},{"x":1795481193000,"y":0},{"x":1795481268000,"y":0},{"x":1795481328000,"y":0},{"x":1795481387000,"y":0},{"x":1795481460000,"y":0},{"x":1795481522000,"y":0},{"x":1795481587000,"y":0},{"x":1795481651000,"y":0},{"x":1795481715000,"y":0},{"x":1795481779000,"y":0},{"x":1795481843000,"y":0},{"x":1795481907000,"y":0},{"x":1795481971000,"y":0},{"x":1795482033000,"y":0},{"x":1795482094000,"y":0},{"x":1795482152000,"y":0},{"x":1795482213000,"y":0},{"x":1795482273000,"y":0},{"x":1795482333000,"y":0},{"x":1795482393000,"y":0},{"x":1795482453000,"y":0},{"x":1795482513000,"y":0},{"x":1795482573000,"y":0},{"x":1795482633000,"y":0},{"x":1795482693000,"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; }