var meteoCharts = {}; var meteoCompassLabels = {0: 'S', 90: 'V', 180: 'J', 270: 'Z', 360: 'S'}; var meteoRangeMin = 1794697200000; var meteoRangeMax = 1794743994000; 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":1794697200000,"y":-3.9},{"x":1794697260000,"y":-4},{"x":1794697320000,"y":-4},{"x":1794697380000,"y":-4},{"x":1794697440000,"y":-4.1},{"x":1794697500000,"y":-4.1},{"x":1794697560000,"y":-4.1},{"x":1794697620000,"y":-4.1},{"x":1794697680000,"y":-4},{"x":1794697740000,"y":-3.9},{"x":1794697800000,"y":-4},{"x":1794697860000,"y":-4},{"x":1794697920000,"y":-4.1},{"x":1794697980000,"y":-4},{"x":1794698040000,"y":-4},{"x":1794698100000,"y":-3.9},{"x":1794698160000,"y":-4},{"x":1794698220000,"y":-4},{"x":1794698280000,"y":-4.1},{"x":1794698340000,"y":-4.1},{"x":1794698400000,"y":-4.1},{"x":1794698460000,"y":-4.2},{"x":1794698520000,"y":-4.2},{"x":1794698580000,"y":-4.2},{"x":1794698640000,"y":-4.1},{"x":1794698700000,"y":-4.2},{"x":1794698760000,"y":-4.2},{"x":1794698820000,"y":-4.2},{"x":1794698880000,"y":-4.2},{"x":1794698940000,"y":-4.2},{"x":1794699000000,"y":-4.3},{"x":1794699060000,"y":-4.3},{"x":1794699120000,"y":-4.3},{"x":1794699180000,"y":-4.2},{"x":1794699240000,"y":-4.3},{"x":1794699300000,"y":-4.3},{"x":1794699360000,"y":-4.3},{"x":1794699420000,"y":-4.3},{"x":1794699480000,"y":-4.3},{"x":1794699540000,"y":-4.3},{"x":1794699600000,"y":-4.3},{"x":1794699660000,"y":-4.3},{"x":1794699720000,"y":-4.3},{"x":1794699780000,"y":-4.3},{"x":1794699840000,"y":-4.4},{"x":1794699900000,"y":-4.4},{"x":1794699960000,"y":-4.5},{"x":1794700020000,"y":-4.5},{"x":1794700080000,"y":-4.5},{"x":1794700140000,"y":-4.5},{"x":1794700200000,"y":-4.5},{"x":1794700260000,"y":-4.5},{"x":1794700320000,"y":-4.6},{"x":1794700380000,"y":-4.6},{"x":1794700440000,"y":-4.6},{"x":1794700500000,"y":-4.6},{"x":1794700560000,"y":-4.6},{"x":1794700620000,"y":-4.6},{"x":1794700680000,"y":-4.6},{"x":1794700740000,"y":-4.6},{"x":1794700800000,"y":-4.6},{"x":1794700860000,"y":-4.6},{"x":1794700920000,"y":-4.7},{"x":1794700980000,"y":-4.7},{"x":1794701040000,"y":-4.6},{"x":1794701100000,"y":-4.6},{"x":1794701160000,"y":-4.7},{"x":1794701220000,"y":-4.7},{"x":1794701280000,"y":-4.6},{"x":1794701340000,"y":-4.6},{"x":1794701400000,"y":-4.6},{"x":1794701460000,"y":-4.6},{"x":1794701520000,"y":-4.7},{"x":1794701580000,"y":-4.7},{"x":1794701640000,"y":-4.7},{"x":1794701700000,"y":-4.7},{"x":1794701760000,"y":-4.8},{"x":1794701820000,"y":-4.8},{"x":1794701880000,"y":-4.9},{"x":1794701940000,"y":-4.9},{"x":1794702000000,"y":-4.8},{"x":1794702060000,"y":-4.8},{"x":1794702120000,"y":-4.9},{"x":1794702180000,"y":-4.9},{"x":1794702240000,"y":-4.9},{"x":1794702300000,"y":-5},{"x":1794702360000,"y":-5},{"x":1794702420000,"y":-5},{"x":1794702480000,"y":-5},{"x":1794702540000,"y":-5},{"x":1794702600000,"y":-5},{"x":1794702660000,"y":-5},{"x":1794702720000,"y":-5},{"x":1794702780000,"y":-5},{"x":1794702840000,"y":-5},{"x":1794702900000,"y":-5},{"x":1794702960000,"y":-5.1},{"x":1794703020000,"y":-5.1},{"x":1794703080000,"y":-5.1},{"x":1794703140000,"y":-5.1},{"x":1794703200000,"y":-5.1},{"x":1794703260000,"y":-5.1},{"x":1794703320000,"y":-5},{"x":1794703380000,"y":-5},{"x":1794703440000,"y":-5.1},{"x":1794703500000,"y":-5.1},{"x":1794703560000,"y":-5.1},{"x":1794703620000,"y":-5.1},{"x":1794703680000,"y":-5},{"x":1794703740000,"y":-5.1},{"x":1794703800000,"y":-5.1},{"x":1794703860000,"y":-5.1},{"x":1794703920000,"y":-5.2},{"x":1794703980000,"y":-5.3},{"x":1794704040000,"y":-5.3},{"x":1794704100000,"y":-5.3},{"x":1794704160000,"y":-5.3},{"x":1794704220000,"y":-5.3},{"x":1794704280000,"y":-5.3},{"x":1794704340000,"y":-5.3},{"x":1794704400000,"y":-5.2},{"x":1794704460000,"y":-5.3},{"x":1794704520000,"y":-5.3},{"x":1794704580000,"y":-5.3},{"x":1794704640000,"y":-5.3},{"x":1794704700000,"y":-5.2},{"x":1794704760000,"y":-5.2},{"x":1794704820000,"y":-5.3},{"x":1794704880000,"y":-5.3},{"x":1794704940000,"y":-5.3},{"x":1794705000000,"y":-5.3},{"x":1794705060000,"y":-5.2},{"x":1794705120000,"y":-5.2},{"x":1794705180000,"y":-5.2},{"x":1794705240000,"y":-5.2},{"x":1794705300000,"y":-5.2},{"x":1794705360000,"y":-5.2},{"x":1794705420000,"y":-5.2},{"x":1794705480000,"y":-5.2},{"x":1794705540000,"y":-5.2},{"x":1794705600000,"y":-5.2},{"x":1794705660000,"y":-5.2},{"x":1794705720000,"y":-5.1},{"x":1794705780000,"y":-5.2},{"x":1794705840000,"y":-5.2},{"x":1794705900000,"y":-5.2},{"x":1794705960000,"y":-5.3},{"x":1794706020000,"y":-5.3},{"x":1794706080000,"y":-5.3},{"x":1794706140000,"y":-5.4},{"x":1794706200000,"y":-5.4},{"x":1794706260000,"y":-5.4},{"x":1794706320000,"y":-5.4},{"x":1794706380000,"y":-5.4},{"x":1794706440000,"y":-5.5},{"x":1794706500000,"y":-5.5},{"x":1794706560000,"y":-5.5},{"x":1794706620000,"y":-5.5},{"x":1794706680000,"y":-5.5},{"x":1794706740000,"y":-5.6},{"x":1794706800000,"y":-5.5},{"x":1794706860000,"y":-5.5},{"x":1794706920000,"y":-5.5},{"x":1794706980000,"y":-5.5},{"x":1794707040000,"y":-5.5},{"x":1794707100000,"y":-5.5},{"x":1794707160000,"y":-5.5},{"x":1794707220000,"y":-5.5},{"x":1794707280000,"y":-5.6},{"x":1794707340000,"y":-5.6},{"x":1794707400000,"y":-5.5},{"x":1794707460000,"y":-5.6},{"x":1794707520000,"y":-5.6},{"x":1794707580000,"y":-5.6},{"x":1794707640000,"y":-5.5},{"x":1794707700000,"y":-5.5},{"x":1794707760000,"y":-5.5},{"x":1794707820000,"y":-5.6},{"x":1794707880000,"y":-5.6},{"x":1794707940000,"y":-5.6},{"x":1794708000000,"y":-5.6},{"x":1794708060000,"y":-5.7},{"x":1794708120000,"y":-5.7},{"x":1794708180000,"y":-5.7},{"x":1794708240000,"y":-5.7},{"x":1794708300000,"y":-5.6},{"x":1794708360000,"y":-5.6},{"x":1794708420000,"y":-5.6},{"x":1794708480000,"y":-5.5},{"x":1794708540000,"y":-5.5},{"x":1794708600000,"y":-5.6},{"x":1794708660000,"y":-5.6},{"x":1794708720000,"y":-5.7},{"x":1794708780000,"y":-5.7},{"x":1794708840000,"y":-5.7},{"x":1794708900000,"y":-5.7},{"x":1794708960000,"y":-5.7},{"x":1794709020000,"y":-5.7},{"x":1794709080000,"y":-5.7},{"x":1794709140000,"y":-5.7},{"x":1794709200000,"y":-5.8},{"x":1794709260000,"y":-5.8},{"x":1794709320000,"y":-5.8},{"x":1794709380000,"y":-5.8},{"x":1794709440000,"y":-5.8},{"x":1794709500000,"y":-5.8},{"x":1794709560000,"y":-5.8},{"x":1794709620000,"y":-5.9},{"x":1794709680000,"y":-5.9},{"x":1794709740000,"y":-5.9},{"x":1794709800000,"y":-5.8},{"x":1794709860000,"y":-5.8},{"x":1794709920000,"y":-5.9},{"x":1794709980000,"y":-5.9},{"x":1794710040000,"y":-5.9},{"x":1794710100000,"y":-5.9},{"x":1794710160000,"y":-5.9},{"x":1794710220000,"y":-5.9},{"x":1794710280000,"y":-5.8},{"x":1794710340000,"y":-5.8},{"x":1794710400000,"y":-5.8},{"x":1794710460000,"y":-5.8},{"x":1794710520000,"y":-5.8},{"x":1794710580000,"y":-5.9},{"x":1794710640000,"y":-5.9},{"x":1794710700000,"y":-5.9},{"x":1794710760000,"y":-5.8},{"x":1794710820000,"y":-5.8},{"x":1794710880000,"y":-5.9},{"x":1794710940000,"y":-5.9},{"x":1794711000000,"y":-5.9},{"x":1794711060000,"y":-6},{"x":1794711120000,"y":-6},{"x":1794711180000,"y":-6},{"x":1794711240000,"y":-6},{"x":1794711300000,"y":-6},{"x":1794711360000,"y":-6.1},{"x":1794711420000,"y":-6.1},{"x":1794711480000,"y":-6.1},{"x":1794711540000,"y":-6.1},{"x":1794711600000,"y":-5.9},{"x":1794711660000,"y":-5.9},{"x":1794711720000,"y":-5.8},{"x":1794711780000,"y":-5.9},{"x":1794711840000,"y":-5.9},{"x":1794711900000,"y":-6},{"x":1794711960000,"y":-5.9},{"x":1794712020000,"y":-5.9},{"x":1794712080000,"y":-5.9},{"x":1794712140000,"y":-5.9},{"x":1794712200000,"y":-6},{"x":1794712260000,"y":-6},{"x":1794712320000,"y":-6},{"x":1794712380000,"y":-6},{"x":1794712440000,"y":-6},{"x":1794712500000,"y":-6},{"x":1794712560000,"y":-5.9},{"x":1794712620000,"y":-5.9},{"x":1794712680000,"y":-5.8},{"x":1794712740000,"y":-5.9},{"x":1794712800000,"y":-5.9},{"x":1794712860000,"y":-6},{"x":1794712920000,"y":-6},{"x":1794712980000,"y":-5.9},{"x":1794713040000,"y":-5.9},{"x":1794713100000,"y":-5.9},{"x":1794713160000,"y":-5.9},{"x":1794713220000,"y":-5.9},{"x":1794713280000,"y":-5.9},{"x":1794713340000,"y":-5.9},{"x":1794713400000,"y":-6},{"x":1794713460000,"y":-5.9},{"x":1794713520000,"y":-5.9},{"x":1794713580000,"y":-5.9},{"x":1794713640000,"y":-5.9},{"x":1794713700000,"y":-5.9},{"x":1794713760000,"y":-6},{"x":1794713820000,"y":-6},{"x":1794713880000,"y":-6},{"x":1794713940000,"y":-6.1},{"x":1794714000000,"y":-6.1},{"x":1794714060000,"y":-6.1},{"x":1794714120000,"y":-6},{"x":1794714180000,"y":-6},{"x":1794714240000,"y":-6},{"x":1794714300000,"y":-5.9},{"x":1794714360000,"y":-5.9},{"x":1794714420000,"y":-6},{"x":1794714480000,"y":-6},{"x":1794714540000,"y":-5.9},{"x":1794714600000,"y":-5.9},{"x":1794714660000,"y":-5.9},{"x":1794714720000,"y":-5.8},{"x":1794714780000,"y":-5.9},{"x":1794714840000,"y":-6.1},{"x":1794714900000,"y":-6.1},{"x":1794714960000,"y":-6.1},{"x":1794715020000,"y":-6.1},{"x":1794715080000,"y":-6.1},{"x":1794715140000,"y":-6},{"x":1794715200000,"y":-5.9},{"x":1794715260000,"y":-5.9},{"x":1794715320000,"y":-5.9},{"x":1794715380000,"y":-5.8},{"x":1794715440000,"y":-5.7},{"x":1794715500000,"y":-5.7},{"x":1794715560000,"y":-5.7},{"x":1794715620000,"y":-5.7},{"x":1794715680000,"y":-5.7},{"x":1794715740000,"y":-5.6},{"x":1794715800000,"y":-5.5},{"x":1794715860000,"y":-5.6},{"x":1794715920000,"y":-5.6},{"x":1794715980000,"y":-5.5},{"x":1794716040000,"y":-5.5},{"x":1794716100000,"y":-5.5},{"x":1794716160000,"y":-5.5},{"x":1794716220000,"y":-5.4},{"x":1794716280000,"y":-5.4},{"x":1794716340000,"y":-5.4},{"x":1794716400000,"y":-5.4},{"x":1794716460000,"y":-5.4},{"x":1794716520000,"y":-5.4},{"x":1794716580000,"y":-5.4},{"x":1794716640000,"y":-5.4},{"x":1794716700000,"y":-5.4},{"x":1794716760000,"y":-5.4},{"x":1794716820000,"y":-5.4},{"x":1794716880000,"y":-5.4},{"x":1794716940000,"y":-5.5},{"x":1794717000000,"y":-5.4},{"x":1794717060000,"y":-5.4},{"x":1794717120000,"y":-5.4},{"x":1794717180000,"y":-5.4},{"x":1794717240000,"y":-5.5},{"x":1794717300000,"y":-5.5},{"x":1794717360000,"y":-5.5},{"x":1794717420000,"y":-5.5},{"x":1794717480000,"y":-5.5},{"x":1794717540000,"y":-5.5},{"x":1794717600000,"y":-5.4},{"x":1794717660000,"y":-5.4},{"x":1794717720000,"y":-5.4},{"x":1794717780000,"y":-5.3},{"x":1794717840000,"y":-5.2},{"x":1794717900000,"y":-5.2},{"x":1794717960000,"y":-5.3},{"x":1794718020000,"y":-5.3},{"x":1794718080000,"y":-5.3},{"x":1794718140000,"y":-5.4},{"x":1794718200000,"y":-5.3},{"x":1794718260000,"y":-5.2},{"x":1794718320000,"y":-5.3},{"x":1794718380000,"y":-5.3},{"x":1794718440000,"y":-5.3},{"x":1794718500000,"y":-5.3},{"x":1794718560000,"y":-5.2},{"x":1794718620000,"y":-5.2},{"x":1794718680000,"y":-5.3},{"x":1794718740000,"y":-5.3},{"x":1794718800000,"y":-5.3},{"x":1794718860000,"y":-5.3},{"x":1794718920000,"y":-5.3},{"x":1794718980000,"y":-5.3},{"x":1794719040000,"y":-5.3},{"x":1794719100000,"y":-5.4},{"x":1794719160000,"y":-5.4},{"x":1794719220000,"y":-5.3},{"x":1794719280000,"y":-5.3},{"x":1794719340000,"y":-5.3},{"x":1794719400000,"y":-5.3},{"x":1794719460000,"y":-5.3},{"x":1794719520000,"y":-5.3},{"x":1794719580000,"y":-5.4},{"x":1794719640000,"y":-5.3},{"x":1794719700000,"y":-5.2},{"x":1794719760000,"y":-5.2},{"x":1794719820000,"y":-5.2},{"x":1794719880000,"y":-5.3},{"x":1794719940000,"y":-5.3},{"x":1794720000000,"y":-5.3},{"x":1794720060000,"y":-5.2},{"x":1794720120000,"y":-5.2},{"x":1794720180000,"y":-5.2},{"x":1794720240000,"y":-5.2},{"x":1794720300000,"y":-5.2},{"x":1794720360000,"y":-5.2},{"x":1794720420000,"y":-5.2},{"x":1794720480000,"y":-5.1},{"x":1794720540000,"y":-5.1},{"x":1794720600000,"y":-5.1},{"x":1794720660000,"y":-5},{"x":1794720720000,"y":-5},{"x":1794720780000,"y":-5},{"x":1794720840000,"y":-5},{"x":1794720900000,"y":-5},{"x":1794720960000,"y":-5},{"x":1794721020000,"y":-4.9},{"x":1794721080000,"y":-4.8},{"x":1794721140000,"y":-4.8},{"x":1794721200000,"y":-4.8},{"x":1794721260000,"y":-4.8},{"x":1794721320000,"y":-4.7},{"x":1794721380000,"y":-4.5},{"x":1794721440000,"y":-4.4},{"x":1794721500000,"y":-4.5},{"x":1794721560000,"y":-4.6},{"x":1794721620000,"y":-4.6},{"x":1794721680000,"y":-4.5},{"x":1794721740000,"y":-4.5},{"x":1794721800000,"y":-4.5},{"x":1794721860000,"y":-4.4},{"x":1794721920000,"y":-4.3},{"x":1794721980000,"y":-4.2},{"x":1794722040000,"y":-4.2},{"x":1794722100000,"y":-4.2},{"x":1794722160000,"y":-4.2},{"x":1794722220000,"y":-4.2},{"x":1794722280000,"y":-4},{"x":1794722340000,"y":-4},{"x":1794722400000,"y":-4},{"x":1794722460000,"y":-4},{"x":1794722520000,"y":-3.9},{"x":1794722580000,"y":-3.8},{"x":1794722640000,"y":-3.7},{"x":1794722700000,"y":-3.6},{"x":1794722760000,"y":-3.6},{"x":1794722820000,"y":-3.6},{"x":1794722880000,"y":-3.6},{"x":1794722940000,"y":-3.6},{"x":1794723000000,"y":-3.5},{"x":1794723060000,"y":-3.3},{"x":1794723120000,"y":-3.3},{"x":1794723180000,"y":-3.2},{"x":1794723240000,"y":-3.1},{"x":1794723300000,"y":-3.1},{"x":1794723360000,"y":-3},{"x":1794723420000,"y":-2.9},{"x":1794723480000,"y":-2.8},{"x":1794723540000,"y":-2.9},{"x":1794723600000,"y":-2.9},{"x":1794723660000,"y":-2.8},{"x":1794723720000,"y":-2.8},{"x":1794723780000,"y":-2.8},{"x":1794723840000,"y":-2.8},{"x":1794723900000,"y":-2.7},{"x":1794723960000,"y":-2.6},{"x":1794724020000,"y":-2.4},{"x":1794724080000,"y":-2.5},{"x":1794724140000,"y":-2.5},{"x":1794724200000,"y":-2.4},{"x":1794724260000,"y":-2.4},{"x":1794724320000,"y":-2.2},{"x":1794724380000,"y":-2.2},{"x":1794724440000,"y":-2.1},{"x":1794724500000,"y":-2},{"x":1794724560000,"y":-1.9},{"x":1794724620000,"y":-1.8},{"x":1794724680000,"y":-1.7},{"x":1794724740000,"y":-1.6},{"x":1794724800000,"y":-1.6},{"x":1794724860000,"y":-1.6},{"x":1794724920000,"y":-1.5},{"x":1794724980000,"y":-1.2},{"x":1794725040000,"y":-1.3},{"x":1794725100000,"y":-1.2},{"x":1794725160000,"y":-1.1},{"x":1794725220000,"y":-0.9},{"x":1794725280000,"y":-1},{"x":1794725340000,"y":-0.9},{"x":1794725400000,"y":-0.7},{"x":1794725460000,"y":-0.7},{"x":1794725520000,"y":-0.5},{"x":1794725580000,"y":-0.6},{"x":1794725640000,"y":-0.4},{"x":1794725700000,"y":0},{"x":1794725760000,"y":0.1},{"x":1794725820000,"y":0.1},{"x":1794725880000,"y":0.1},{"x":1794725940000,"y":0.3},{"x":1794726000000,"y":0.3},{"x":1794726060000,"y":0.5},{"x":1794726120000,"y":0.7},{"x":1794726180000,"y":1.1},{"x":1794726240000,"y":1.3},{"x":1794726300000,"y":1.3},{"x":1794726360000,"y":1.5},{"x":1794726420000,"y":1.6},{"x":1794726480000,"y":1.7},{"x":1794726540000,"y":1.9},{"x":1794726600000,"y":2.1},{"x":1794726660000,"y":2.2},{"x":1794726720000,"y":2.3},{"x":1794726780000,"y":2.4},{"x":1794726840000,"y":2.5},{"x":1794726900000,"y":2.6},{"x":1794726960000,"y":2.7},{"x":1794727020000,"y":2.9},{"x":1794727080000,"y":3},{"x":1794727140000,"y":3},{"x":1794727200000,"y":3.1},{"x":1794727260000,"y":3},{"x":1794727320000,"y":3.1},{"x":1794727380000,"y":3},{"x":1794727440000,"y":3.2},{"x":1794727500000,"y":3.2},{"x":1794727560000,"y":3.1},{"x":1794727620000,"y":3.1},{"x":1794727680000,"y":3.3},{"x":1794727740000,"y":3.3},{"x":1794727800000,"y":3.4},{"x":1794727860000,"y":3.3},{"x":1794727920000,"y":3.3},{"x":1794727980000,"y":3.3},{"x":1794728040000,"y":3.3},{"x":1794728100000,"y":3.5},{"x":1794728160000,"y":3.4},{"x":1794728220000,"y":3.5},{"x":1794728280000,"y":3.7},{"x":1794728340000,"y":3.7},{"x":1794728400000,"y":3.8},{"x":1794728460000,"y":3.8},{"x":1794728520000,"y":3.8},{"x":1794728580000,"y":3.8},{"x":1794728640000,"y":3.9},{"x":1794728700000,"y":3.9},{"x":1794728760000,"y":3.8},{"x":1794728820000,"y":3.9},{"x":1794728880000,"y":3.9},{"x":1794728940000,"y":3.9},{"x":1794729000000,"y":3.9},{"x":1794729060000,"y":4},{"x":1794729120000,"y":4},{"x":1794729180000,"y":4},{"x":1794729240000,"y":4},{"x":1794729300000,"y":4},{"x":1794729360000,"y":4.1},{"x":1794729420000,"y":4.1},{"x":1794729480000,"y":4.2},{"x":1794729540000,"y":4.3},{"x":1794729600000,"y":4.3},{"x":1794729660000,"y":4.2},{"x":1794729720000,"y":4.2},{"x":1794729780000,"y":4.2},{"x":1794729840000,"y":4.2},{"x":1794729900000,"y":4.3},{"x":1794729960000,"y":4.3},{"x":1794730020000,"y":4.4},{"x":1794730080000,"y":4.5},{"x":1794730140000,"y":4.5},{"x":1794730200000,"y":4.6},{"x":1794730260000,"y":4.6},{"x":1794730320000,"y":4.7},{"x":1794730380000,"y":4.7},{"x":1794730440000,"y":4.7},{"x":1794730500000,"y":4.7},{"x":1794730560000,"y":4.8},{"x":1794730620000,"y":4.7},{"x":1794730680000,"y":4.6},{"x":1794730740000,"y":4.6},{"x":1794730800000,"y":4.8},{"x":1794730860000,"y":4.8},{"x":1794730920000,"y":4.8},{"x":1794730980000,"y":4.9},{"x":1794731040000,"y":4.9},{"x":1794731100000,"y":5},{"x":1794731160000,"y":5},{"x":1794731220000,"y":5},{"x":1794731280000,"y":5},{"x":1794731340000,"y":5},{"x":1794731400000,"y":5},{"x":1794731460000,"y":5.1},{"x":1794731520000,"y":5},{"x":1794731580000,"y":5.1},{"x":1794731640000,"y":5.1},{"x":1794731700000,"y":5.1},{"x":1794731760000,"y":5},{"x":1794731820000,"y":5},{"x":1794731880000,"y":5.1},{"x":1794731940000,"y":5.1},{"x":1794732000000,"y":5.1},{"x":1794732060000,"y":5.2},{"x":1794732120000,"y":5.3},{"x":1794732180000,"y":5.2},{"x":1794732240000,"y":5.2},{"x":1794732300000,"y":5.2},{"x":1794732360000,"y":5.3},{"x":1794732420000,"y":5.3},{"x":1794732480000,"y":5.3},{"x":1794732540000,"y":5.3},{"x":1794732600000,"y":5.3},{"x":1794732660000,"y":5.3},{"x":1794732720000,"y":5.4},{"x":1794732780000,"y":5.4},{"x":1794732840000,"y":5.3},{"x":1794732900000,"y":5.4},{"x":1794732960000,"y":5.5},{"x":1794733020000,"y":5.5},{"x":1794733080000,"y":5.5},{"x":1794733140000,"y":5.5},{"x":1794733200000,"y":5.7},{"x":1794733260000,"y":5.7},{"x":1794733320000,"y":5.8},{"x":1794733380000,"y":5.9},{"x":1794733440000,"y":5.9},{"x":1794733500000,"y":5.8},{"x":1794733560000,"y":5.9},{"x":1794733620000,"y":6},{"x":1794733680000,"y":5.9},{"x":1794733740000,"y":5.9},{"x":1794733800000,"y":5.8},{"x":1794733860000,"y":5.9},{"x":1794733920000,"y":6},{"x":1794733980000,"y":6},{"x":1794734040000,"y":6},{"x":1794734100000,"y":6},{"x":1794734160000,"y":6},{"x":1794734220000,"y":6.1},{"x":1794734280000,"y":6},{"x":1794734340000,"y":6},{"x":1794734400000,"y":6},{"x":1794734460000,"y":6},{"x":1794734520000,"y":6},{"x":1794734580000,"y":6},{"x":1794734640000,"y":6},{"x":1794734700000,"y":5.9},{"x":1794734760000,"y":5.9},{"x":1794734820000,"y":5.8},{"x":1794734880000,"y":5.9},{"x":1794734940000,"y":5.8},{"x":1794735000000,"y":5.9},{"x":1794735060000,"y":5.9},{"x":1794735120000,"y":5.9},{"x":1794735180000,"y":5.8},{"x":1794735240000,"y":5.9},{"x":1794735300000,"y":5.9},{"x":1794735360000,"y":5.9},{"x":1794735420000,"y":6},{"x":1794735480000,"y":5.9},{"x":1794735540000,"y":5.9},{"x":1794735600000,"y":5.7},{"x":1794735660000,"y":5.8},{"x":1794735720000,"y":5.9},{"x":1794735780000,"y":5.9},{"x":1794735840000,"y":5.9},{"x":1794735900000,"y":6},{"x":1794735960000,"y":6.1},{"x":1794736020000,"y":6},{"x":1794736080000,"y":6.1},{"x":1794736140000,"y":6},{"x":1794736200000,"y":6},{"x":1794736260000,"y":5.8},{"x":1794736320000,"y":5.9},{"x":1794736380000,"y":5.9},{"x":1794736440000,"y":5.9},{"x":1794736500000,"y":5.9},{"x":1794736560000,"y":5.8},{"x":1794736620000,"y":5.8},{"x":1794736680000,"y":5.8},{"x":1794736740000,"y":5.4},{"x":1794736800000,"y":5.5},{"x":1794736860000,"y":5.4},{"x":1794736920000,"y":5.3},{"x":1794736980000,"y":5.2},{"x":1794737040000,"y":5.1},{"x":1794737100000,"y":5.2},{"x":1794737160000,"y":5.1},{"x":1794737220000,"y":5.1},{"x":1794737280000,"y":5.1},{"x":1794737340000,"y":5.1},{"x":1794737400000,"y":5},{"x":1794737460000,"y":4.8},{"x":1794737520000,"y":4.8},{"x":1794737580000,"y":4.7},{"x":1794737640000,"y":4.7},{"x":1794737700000,"y":4.7},{"x":1794737760000,"y":4.7},{"x":1794737820000,"y":4.6},{"x":1794737880000,"y":4.6},{"x":1794737940000,"y":4.5},{"x":1794738000000,"y":4.5},{"x":1794738060000,"y":4.5},{"x":1794738120000,"y":4.5},{"x":1794738180000,"y":4.4},{"x":1794738240000,"y":4.4},{"x":1794738300000,"y":4.4},{"x":1794738360000,"y":4.4},{"x":1794738420000,"y":4.4},{"x":1794738480000,"y":4.4},{"x":1794738540000,"y":4.4},{"x":1794738600000,"y":4.4},{"x":1794738660000,"y":4.5},{"x":1794738720000,"y":4.5},{"x":1794738780000,"y":4.6},{"x":1794738840000,"y":4.7},{"x":1794738900000,"y":4.9},{"x":1794738960000,"y":4.9},{"x":1794739020000,"y":5},{"x":1794739080000,"y":5.2},{"x":1794739140000,"y":5.3},{"x":1794739200000,"y":5.6},{"x":1794739260000,"y":5.8},{"x":1794739320000,"y":6},{"x":1794739380000,"y":6},{"x":1794739440000,"y":6},{"x":1794739500000,"y":5.9},{"x":1794739560000,"y":5.8},{"x":1794739620000,"y":6},{"x":1794739680000,"y":6.2},{"x":1794739740000,"y":5.9},{"x":1794739800000,"y":5.9},{"x":1794739860000,"y":6},{"x":1794739920000,"y":6.1},{"x":1794739980000,"y":6.3},{"x":1794740040000,"y":6.4},{"x":1794740100000,"y":6.4},{"x":1794740160000,"y":6.3},{"x":1794740220000,"y":6.4},{"x":1794740280000,"y":6.4}],"highlightExtremes":true,"unit":" °C"},{"label":"Rosný bod (°C)","color":"#5b9f4a","points":[],"highlightExtremes":false,"unit":" °C"}], {"yLabel":"\u00b0C"}); }); $(document).ready(function() { buildMeteoChart('chart-rain-canvas', 'chart-rain-reset', [{"label":"Zrážky (mm)","color":"#008fbf","points":[{"x":1794697200000,"y":0},{"x":1794697260000,"y":0},{"x":1794697320000,"y":0},{"x":1794697380000,"y":0},{"x":1794697440000,"y":0},{"x":1794697500000,"y":0},{"x":1794697560000,"y":0},{"x":1794697620000,"y":0},{"x":1794697680000,"y":0},{"x":1794697740000,"y":0},{"x":1794697800000,"y":0},{"x":1794697860000,"y":0},{"x":1794697920000,"y":0},{"x":1794697980000,"y":0},{"x":1794698040000,"y":0},{"x":1794698100000,"y":0},{"x":1794698160000,"y":0},{"x":1794698220000,"y":0},{"x":1794698280000,"y":0},{"x":1794698340000,"y":0},{"x":1794698400000,"y":0},{"x":1794698460000,"y":0},{"x":1794698520000,"y":0},{"x":1794698580000,"y":0},{"x":1794698640000,"y":0},{"x":1794698700000,"y":0},{"x":1794698760000,"y":0},{"x":1794698820000,"y":0},{"x":1794698880000,"y":0},{"x":1794698940000,"y":0},{"x":1794699000000,"y":0},{"x":1794699060000,"y":0},{"x":1794699120000,"y":0},{"x":1794699180000,"y":0},{"x":1794699240000,"y":0},{"x":1794699300000,"y":0},{"x":1794699360000,"y":0},{"x":1794699420000,"y":0},{"x":1794699480000,"y":0},{"x":1794699540000,"y":0},{"x":1794699600000,"y":0},{"x":1794699660000,"y":0},{"x":1794699720000,"y":0},{"x":1794699780000,"y":0},{"x":1794699840000,"y":0},{"x":1794699900000,"y":0},{"x":1794699960000,"y":0},{"x":1794700020000,"y":0},{"x":1794700080000,"y":0},{"x":1794700140000,"y":0},{"x":1794700200000,"y":0},{"x":1794700260000,"y":0},{"x":1794700320000,"y":0},{"x":1794700380000,"y":0},{"x":1794700440000,"y":0},{"x":1794700500000,"y":0},{"x":1794700560000,"y":0},{"x":1794700620000,"y":0},{"x":1794700680000,"y":0},{"x":1794700740000,"y":0},{"x":1794700800000,"y":0},{"x":1794700860000,"y":0},{"x":1794700920000,"y":0},{"x":1794700980000,"y":0},{"x":1794701040000,"y":0},{"x":1794701100000,"y":0},{"x":1794701160000,"y":0},{"x":1794701220000,"y":0},{"x":1794701280000,"y":0},{"x":1794701340000,"y":0},{"x":1794701400000,"y":0},{"x":1794701460000,"y":0},{"x":1794701520000,"y":0},{"x":1794701580000,"y":0},{"x":1794701640000,"y":0},{"x":1794701700000,"y":0},{"x":1794701760000,"y":0},{"x":1794701820000,"y":0},{"x":1794701880000,"y":0},{"x":1794701940000,"y":0},{"x":1794702000000,"y":0},{"x":1794702060000,"y":0},{"x":1794702120000,"y":0},{"x":1794702180000,"y":0},{"x":1794702240000,"y":0},{"x":1794702300000,"y":0},{"x":1794702360000,"y":0},{"x":1794702420000,"y":0},{"x":1794702480000,"y":0},{"x":1794702540000,"y":0},{"x":1794702600000,"y":0},{"x":1794702660000,"y":0},{"x":1794702720000,"y":0},{"x":1794702780000,"y":0},{"x":1794702840000,"y":0},{"x":1794702900000,"y":0},{"x":1794702960000,"y":0},{"x":1794703020000,"y":0},{"x":1794703080000,"y":0},{"x":1794703140000,"y":0},{"x":1794703200000,"y":0},{"x":1794703260000,"y":0},{"x":1794703320000,"y":0},{"x":1794703380000,"y":0},{"x":1794703440000,"y":0},{"x":1794703500000,"y":0},{"x":1794703560000,"y":0},{"x":1794703620000,"y":0},{"x":1794703680000,"y":0},{"x":1794703740000,"y":0},{"x":1794703800000,"y":0},{"x":1794703860000,"y":0},{"x":1794703920000,"y":0},{"x":1794703980000,"y":0},{"x":1794704040000,"y":0},{"x":1794704100000,"y":0},{"x":1794704160000,"y":0},{"x":1794704220000,"y":0},{"x":1794704280000,"y":0},{"x":1794704340000,"y":0},{"x":1794704400000,"y":0},{"x":1794704460000,"y":0},{"x":1794704520000,"y":0},{"x":1794704580000,"y":0},{"x":1794704640000,"y":0},{"x":1794704700000,"y":0},{"x":1794704760000,"y":0},{"x":1794704820000,"y":0},{"x":1794704880000,"y":0},{"x":1794704940000,"y":0},{"x":1794705000000,"y":0},{"x":1794705060000,"y":0},{"x":1794705120000,"y":0},{"x":1794705180000,"y":0},{"x":1794705240000,"y":0},{"x":1794705300000,"y":0},{"x":1794705360000,"y":0},{"x":1794705420000,"y":0},{"x":1794705480000,"y":0},{"x":1794705540000,"y":0},{"x":1794705600000,"y":0},{"x":1794705660000,"y":0},{"x":1794705720000,"y":0},{"x":1794705780000,"y":0},{"x":1794705840000,"y":0},{"x":1794705900000,"y":0},{"x":1794705960000,"y":0},{"x":1794706020000,"y":0},{"x":1794706080000,"y":0},{"x":1794706140000,"y":0},{"x":1794706200000,"y":0},{"x":1794706260000,"y":0},{"x":1794706320000,"y":0},{"x":1794706380000,"y":0},{"x":1794706440000,"y":0},{"x":1794706500000,"y":0},{"x":1794706560000,"y":0},{"x":1794706620000,"y":0},{"x":1794706680000,"y":0},{"x":1794706740000,"y":0},{"x":1794706800000,"y":0},{"x":1794706860000,"y":0},{"x":1794706920000,"y":0},{"x":1794706980000,"y":0},{"x":1794707040000,"y":0},{"x":1794707100000,"y":0},{"x":1794707160000,"y":0},{"x":1794707220000,"y":0},{"x":1794707280000,"y":0},{"x":1794707340000,"y":0},{"x":1794707400000,"y":0},{"x":1794707460000,"y":0},{"x":1794707520000,"y":0},{"x":1794707580000,"y":0},{"x":1794707640000,"y":0},{"x":1794707700000,"y":0},{"x":1794707760000,"y":0},{"x":1794707820000,"y":0},{"x":1794707880000,"y":0},{"x":1794707940000,"y":0},{"x":1794708000000,"y":0},{"x":1794708060000,"y":0},{"x":1794708120000,"y":0},{"x":1794708180000,"y":0},{"x":1794708240000,"y":0},{"x":1794708300000,"y":0},{"x":1794708360000,"y":0},{"x":1794708420000,"y":0},{"x":1794708480000,"y":0},{"x":1794708540000,"y":0},{"x":1794708600000,"y":0},{"x":1794708660000,"y":0},{"x":1794708720000,"y":0},{"x":1794708780000,"y":0},{"x":1794708840000,"y":0},{"x":1794708900000,"y":0},{"x":1794708960000,"y":0},{"x":1794709020000,"y":0},{"x":1794709080000,"y":0},{"x":1794709140000,"y":0},{"x":1794709200000,"y":0},{"x":1794709260000,"y":0},{"x":1794709320000,"y":0},{"x":1794709380000,"y":0},{"x":1794709440000,"y":0},{"x":1794709500000,"y":0},{"x":1794709560000,"y":0},{"x":1794709620000,"y":0},{"x":1794709680000,"y":0},{"x":1794709740000,"y":0},{"x":1794709800000,"y":0},{"x":1794709860000,"y":0},{"x":1794709920000,"y":0},{"x":1794709980000,"y":0},{"x":1794710040000,"y":0},{"x":1794710100000,"y":0},{"x":1794710160000,"y":0},{"x":1794710220000,"y":0},{"x":1794710280000,"y":0},{"x":1794710340000,"y":0},{"x":1794710400000,"y":0},{"x":1794710460000,"y":0},{"x":1794710520000,"y":0},{"x":1794710580000,"y":0},{"x":1794710640000,"y":0},{"x":1794710700000,"y":0},{"x":1794710760000,"y":0},{"x":1794710820000,"y":0},{"x":1794710880000,"y":0},{"x":1794710940000,"y":0},{"x":1794711000000,"y":0},{"x":1794711060000,"y":0},{"x":1794711120000,"y":0},{"x":1794711180000,"y":0},{"x":1794711240000,"y":0},{"x":1794711300000,"y":0},{"x":1794711360000,"y":0},{"x":1794711420000,"y":0},{"x":1794711480000,"y":0},{"x":1794711540000,"y":0},{"x":1794711600000,"y":0},{"x":1794711660000,"y":0},{"x":1794711720000,"y":0},{"x":1794711780000,"y":0},{"x":1794711840000,"y":0},{"x":1794711900000,"y":0},{"x":1794711960000,"y":0},{"x":1794712020000,"y":0},{"x":1794712080000,"y":0},{"x":1794712140000,"y":0},{"x":1794712200000,"y":0},{"x":1794712260000,"y":0},{"x":1794712320000,"y":0},{"x":1794712380000,"y":0},{"x":1794712440000,"y":0},{"x":1794712500000,"y":0},{"x":1794712560000,"y":0},{"x":1794712620000,"y":0},{"x":1794712680000,"y":0},{"x":1794712740000,"y":0},{"x":1794712800000,"y":0},{"x":1794712860000,"y":0},{"x":1794712920000,"y":0},{"x":1794712980000,"y":0},{"x":1794713040000,"y":0},{"x":1794713100000,"y":0},{"x":1794713160000,"y":0},{"x":1794713220000,"y":0},{"x":1794713280000,"y":0},{"x":1794713340000,"y":0},{"x":1794713400000,"y":0},{"x":1794713460000,"y":0},{"x":1794713520000,"y":0},{"x":1794713580000,"y":0},{"x":1794713640000,"y":0},{"x":1794713700000,"y":0},{"x":1794713760000,"y":0},{"x":1794713820000,"y":0},{"x":1794713880000,"y":0},{"x":1794713940000,"y":0},{"x":1794714000000,"y":0},{"x":1794714060000,"y":0},{"x":1794714120000,"y":0},{"x":1794714180000,"y":0},{"x":1794714240000,"y":0},{"x":1794714300000,"y":0},{"x":1794714360000,"y":0},{"x":1794714420000,"y":0},{"x":1794714480000,"y":0},{"x":1794714540000,"y":0},{"x":1794714600000,"y":0},{"x":1794714660000,"y":0},{"x":1794714720000,"y":0},{"x":1794714780000,"y":0},{"x":1794714840000,"y":0},{"x":1794714900000,"y":0},{"x":1794714960000,"y":0},{"x":1794715020000,"y":0},{"x":1794715080000,"y":0},{"x":1794715140000,"y":0},{"x":1794715200000,"y":0},{"x":1794715260000,"y":0},{"x":1794715320000,"y":0},{"x":1794715380000,"y":0},{"x":1794715440000,"y":0},{"x":1794715500000,"y":0},{"x":1794715560000,"y":0},{"x":1794715620000,"y":0},{"x":1794715680000,"y":0},{"x":1794715740000,"y":0},{"x":1794715800000,"y":0},{"x":1794715860000,"y":0},{"x":1794715920000,"y":0},{"x":1794715980000,"y":0},{"x":1794716040000,"y":0},{"x":1794716100000,"y":0},{"x":1794716160000,"y":0},{"x":1794716220000,"y":0},{"x":1794716280000,"y":0},{"x":1794716340000,"y":0},{"x":1794716400000,"y":0},{"x":1794716460000,"y":0},{"x":1794716520000,"y":0},{"x":1794716580000,"y":0},{"x":1794716640000,"y":0},{"x":1794716700000,"y":0},{"x":1794716760000,"y":0},{"x":1794716820000,"y":0},{"x":1794716880000,"y":0},{"x":1794716940000,"y":0},{"x":1794717000000,"y":0},{"x":1794717060000,"y":0},{"x":1794717120000,"y":0},{"x":1794717180000,"y":0},{"x":1794717240000,"y":0},{"x":1794717300000,"y":0},{"x":1794717360000,"y":0},{"x":1794717420000,"y":0},{"x":1794717480000,"y":0},{"x":1794717540000,"y":0},{"x":1794717600000,"y":0},{"x":1794717660000,"y":0},{"x":1794717720000,"y":0},{"x":1794717780000,"y":0},{"x":1794717840000,"y":0},{"x":1794717900000,"y":0},{"x":1794717960000,"y":0},{"x":1794718020000,"y":0},{"x":1794718080000,"y":0},{"x":1794718140000,"y":0},{"x":1794718200000,"y":0},{"x":1794718260000,"y":0},{"x":1794718320000,"y":0},{"x":1794718380000,"y":0},{"x":1794718440000,"y":0},{"x":1794718500000,"y":0},{"x":1794718560000,"y":0},{"x":1794718620000,"y":0},{"x":1794718680000,"y":0},{"x":1794718740000,"y":0},{"x":1794718800000,"y":0},{"x":1794718860000,"y":0},{"x":1794718920000,"y":0},{"x":1794718980000,"y":0},{"x":1794719040000,"y":0},{"x":1794719100000,"y":0},{"x":1794719160000,"y":0},{"x":1794719220000,"y":0},{"x":1794719280000,"y":0},{"x":1794719340000,"y":0},{"x":1794719400000,"y":0},{"x":1794719460000,"y":0},{"x":1794719520000,"y":0},{"x":1794719580000,"y":0},{"x":1794719640000,"y":0},{"x":1794719700000,"y":0},{"x":1794719760000,"y":0},{"x":1794719820000,"y":0},{"x":1794719880000,"y":0},{"x":1794719940000,"y":0},{"x":1794720000000,"y":0},{"x":1794720060000,"y":0},{"x":1794720120000,"y":0},{"x":1794720180000,"y":0},{"x":1794720240000,"y":0},{"x":1794720300000,"y":0},{"x":1794720360000,"y":0},{"x":1794720420000,"y":0},{"x":1794720480000,"y":0},{"x":1794720540000,"y":0},{"x":1794720600000,"y":0},{"x":1794720660000,"y":0},{"x":1794720720000,"y":0},{"x":1794720780000,"y":0},{"x":1794720840000,"y":0},{"x":1794720900000,"y":0},{"x":1794720960000,"y":0},{"x":1794721020000,"y":0},{"x":1794721080000,"y":0},{"x":1794721140000,"y":0},{"x":1794721200000,"y":0},{"x":1794721260000,"y":0},{"x":1794721320000,"y":0},{"x":1794721380000,"y":0},{"x":1794721440000,"y":0},{"x":1794721500000,"y":0},{"x":1794721560000,"y":0},{"x":1794721620000,"y":0},{"x":1794721680000,"y":0},{"x":1794721740000,"y":0},{"x":1794721800000,"y":0},{"x":1794721860000,"y":0},{"x":1794721920000,"y":0},{"x":1794721980000,"y":0},{"x":1794722040000,"y":0},{"x":1794722100000,"y":0},{"x":1794722160000,"y":0},{"x":1794722220000,"y":0},{"x":1794722280000,"y":0},{"x":1794722340000,"y":0},{"x":1794722400000,"y":0},{"x":1794722460000,"y":0},{"x":1794722520000,"y":0},{"x":1794722580000,"y":0},{"x":1794722640000,"y":0},{"x":1794722700000,"y":0},{"x":1794722760000,"y":0},{"x":1794722820000,"y":0},{"x":1794722880000,"y":0},{"x":1794722940000,"y":0},{"x":1794723000000,"y":0},{"x":1794723060000,"y":0},{"x":1794723120000,"y":0},{"x":1794723180000,"y":0},{"x":1794723240000,"y":0},{"x":1794723300000,"y":0},{"x":1794723360000,"y":0},{"x":1794723420000,"y":0},{"x":1794723480000,"y":0},{"x":1794723540000,"y":0},{"x":1794723600000,"y":0},{"x":1794723660000,"y":0},{"x":1794723720000,"y":0},{"x":1794723780000,"y":0},{"x":1794723840000,"y":0},{"x":1794723900000,"y":0},{"x":1794723960000,"y":0},{"x":1794724020000,"y":0},{"x":1794724080000,"y":0},{"x":1794724140000,"y":0},{"x":1794724200000,"y":0},{"x":1794724260000,"y":0},{"x":1794724320000,"y":0},{"x":1794724380000,"y":0},{"x":1794724440000,"y":0},{"x":1794724500000,"y":0},{"x":1794724560000,"y":0},{"x":1794724620000,"y":0},{"x":1794724680000,"y":0},{"x":1794724740000,"y":0},{"x":1794724800000,"y":0},{"x":1794724860000,"y":0},{"x":1794724920000,"y":0},{"x":1794724980000,"y":0},{"x":1794725040000,"y":0},{"x":1794725100000,"y":0},{"x":1794725160000,"y":0},{"x":1794725220000,"y":0},{"x":1794725280000,"y":0},{"x":1794725340000,"y":0},{"x":1794725400000,"y":0},{"x":1794725460000,"y":0},{"x":1794725520000,"y":0},{"x":1794725580000,"y":0},{"x":1794725640000,"y":0},{"x":1794725700000,"y":0},{"x":1794725760000,"y":0},{"x":1794725820000,"y":0},{"x":1794725880000,"y":0},{"x":1794725940000,"y":0},{"x":1794726000000,"y":0},{"x":1794726060000,"y":0},{"x":1794726120000,"y":0},{"x":1794726180000,"y":0},{"x":1794726240000,"y":0},{"x":1794726300000,"y":0},{"x":1794726360000,"y":0},{"x":1794726420000,"y":0},{"x":1794726480000,"y":0},{"x":1794726540000,"y":0},{"x":1794726600000,"y":0},{"x":1794726660000,"y":0},{"x":1794726720000,"y":0},{"x":1794726780000,"y":0},{"x":1794726840000,"y":0},{"x":1794726900000,"y":0},{"x":1794726960000,"y":0},{"x":1794727020000,"y":0},{"x":1794727080000,"y":0},{"x":1794727140000,"y":0},{"x":1794727200000,"y":0},{"x":1794727260000,"y":0},{"x":1794727320000,"y":0},{"x":1794727380000,"y":0},{"x":1794727440000,"y":0},{"x":1794727500000,"y":0},{"x":1794727560000,"y":0},{"x":1794727620000,"y":0},{"x":1794727680000,"y":0},{"x":1794727740000,"y":0},{"x":1794727800000,"y":0},{"x":1794727860000,"y":0},{"x":1794727920000,"y":0},{"x":1794727980000,"y":0},{"x":1794728040000,"y":0},{"x":1794728100000,"y":0},{"x":1794728160000,"y":0},{"x":1794728220000,"y":0},{"x":1794728280000,"y":0},{"x":1794728340000,"y":0},{"x":1794728400000,"y":0},{"x":1794728460000,"y":0},{"x":1794728520000,"y":0},{"x":1794728580000,"y":0},{"x":1794728640000,"y":0},{"x":1794728700000,"y":0},{"x":1794728760000,"y":0},{"x":1794728820000,"y":0},{"x":1794728880000,"y":0},{"x":1794728940000,"y":0},{"x":1794729000000,"y":0},{"x":1794729060000,"y":0},{"x":1794729120000,"y":0},{"x":1794729180000,"y":0},{"x":1794729240000,"y":0},{"x":1794729300000,"y":0},{"x":1794729360000,"y":0},{"x":1794729420000,"y":0},{"x":1794729480000,"y":0},{"x":1794729540000,"y":0},{"x":1794729600000,"y":0},{"x":1794729660000,"y":0},{"x":1794729720000,"y":0},{"x":1794729780000,"y":0},{"x":1794729840000,"y":0},{"x":1794729900000,"y":0},{"x":1794729960000,"y":0},{"x":1794730020000,"y":0},{"x":1794730080000,"y":0},{"x":1794730140000,"y":0},{"x":1794730200000,"y":0},{"x":1794730260000,"y":0},{"x":1794730320000,"y":0},{"x":1794730380000,"y":0},{"x":1794730440000,"y":0},{"x":1794730500000,"y":0},{"x":1794730560000,"y":0},{"x":1794730620000,"y":0},{"x":1794730680000,"y":0},{"x":1794730740000,"y":0},{"x":1794730800000,"y":0},{"x":1794730860000,"y":0},{"x":1794730920000,"y":0},{"x":1794730980000,"y":0},{"x":1794731040000,"y":0},{"x":1794731100000,"y":0},{"x":1794731160000,"y":0},{"x":1794731220000,"y":0},{"x":1794731280000,"y":0},{"x":1794731340000,"y":0},{"x":1794731400000,"y":0},{"x":1794731460000,"y":0},{"x":1794731520000,"y":0},{"x":1794731580000,"y":0},{"x":1794731640000,"y":0},{"x":1794731700000,"y":0},{"x":1794731760000,"y":0},{"x":1794731820000,"y":0},{"x":1794731880000,"y":0},{"x":1794731940000,"y":0},{"x":1794732000000,"y":0},{"x":1794732060000,"y":0},{"x":1794732120000,"y":0},{"x":1794732180000,"y":0},{"x":1794732240000,"y":0},{"x":1794732300000,"y":0},{"x":1794732360000,"y":0},{"x":1794732420000,"y":0},{"x":1794732480000,"y":0},{"x":1794732540000,"y":0},{"x":1794732600000,"y":0},{"x":1794732660000,"y":0},{"x":1794732720000,"y":0},{"x":1794732780000,"y":0},{"x":1794732840000,"y":0},{"x":1794732900000,"y":0},{"x":1794732960000,"y":0},{"x":1794733020000,"y":0},{"x":1794733080000,"y":0},{"x":1794733140000,"y":0},{"x":1794733200000,"y":0},{"x":1794733260000,"y":0},{"x":1794733320000,"y":0},{"x":1794733380000,"y":0},{"x":1794733440000,"y":0},{"x":1794733500000,"y":0},{"x":1794733560000,"y":0},{"x":1794733620000,"y":0},{"x":1794733680000,"y":0},{"x":1794733740000,"y":0},{"x":1794733800000,"y":0},{"x":1794733860000,"y":0},{"x":1794733920000,"y":0},{"x":1794733980000,"y":0},{"x":1794734040000,"y":0},{"x":1794734100000,"y":0},{"x":1794734160000,"y":0},{"x":1794734220000,"y":0},{"x":1794734280000,"y":0},{"x":1794734340000,"y":0},{"x":1794734400000,"y":0},{"x":1794734460000,"y":0},{"x":1794734520000,"y":0},{"x":1794734580000,"y":0},{"x":1794734640000,"y":0},{"x":1794734700000,"y":0},{"x":1794734760000,"y":0},{"x":1794734820000,"y":0},{"x":1794734880000,"y":0},{"x":1794734940000,"y":0},{"x":1794735000000,"y":0},{"x":1794735060000,"y":0},{"x":1794735120000,"y":0},{"x":1794735180000,"y":0},{"x":1794735240000,"y":0},{"x":1794735300000,"y":0},{"x":1794735360000,"y":0},{"x":1794735420000,"y":0},{"x":1794735480000,"y":0},{"x":1794735540000,"y":0},{"x":1794735600000,"y":0},{"x":1794735660000,"y":0},{"x":1794735720000,"y":0},{"x":1794735780000,"y":0},{"x":1794735840000,"y":0},{"x":1794735900000,"y":0},{"x":1794735960000,"y":0},{"x":1794736020000,"y":0},{"x":1794736080000,"y":0},{"x":1794736140000,"y":0},{"x":1794736200000,"y":0},{"x":1794736260000,"y":0},{"x":1794736320000,"y":0},{"x":1794736380000,"y":0},{"x":1794736440000,"y":0},{"x":1794736500000,"y":0},{"x":1794736560000,"y":0},{"x":1794736620000,"y":0},{"x":1794736680000,"y":0},{"x":1794736740000,"y":0},{"x":1794736800000,"y":0},{"x":1794736860000,"y":0},{"x":1794736920000,"y":0},{"x":1794736980000,"y":0},{"x":1794737040000,"y":0},{"x":1794737100000,"y":0},{"x":1794737160000,"y":0},{"x":1794737220000,"y":0},{"x":1794737280000,"y":0},{"x":1794737340000,"y":0},{"x":1794737400000,"y":0},{"x":1794737460000,"y":0},{"x":1794737520000,"y":0},{"x":1794737580000,"y":0},{"x":1794737640000,"y":0},{"x":1794737700000,"y":0},{"x":1794737760000,"y":0},{"x":1794737820000,"y":0},{"x":1794737880000,"y":0},{"x":1794737940000,"y":0},{"x":1794738000000,"y":0},{"x":1794738060000,"y":0},{"x":1794738120000,"y":0},{"x":1794738180000,"y":0},{"x":1794738240000,"y":0},{"x":1794738300000,"y":0},{"x":1794738360000,"y":0},{"x":1794738420000,"y":0},{"x":1794738480000,"y":0},{"x":1794738540000,"y":0},{"x":1794738600000,"y":0},{"x":1794738660000,"y":0},{"x":1794738720000,"y":0},{"x":1794738780000,"y":0},{"x":1794738840000,"y":0},{"x":1794738900000,"y":0},{"x":1794738960000,"y":0},{"x":1794739020000,"y":0},{"x":1794739080000,"y":0},{"x":1794739140000,"y":0},{"x":1794739200000,"y":0},{"x":1794739260000,"y":0},{"x":1794739320000,"y":0},{"x":1794739380000,"y":0},{"x":1794739440000,"y":0},{"x":1794739500000,"y":0},{"x":1794739560000,"y":0},{"x":1794739620000,"y":0},{"x":1794739680000,"y":0},{"x":1794739740000,"y":0},{"x":1794739800000,"y":0},{"x":1794739860000,"y":0},{"x":1794739920000,"y":0},{"x":1794739980000,"y":0},{"x":1794740040000,"y":0},{"x":1794740100000,"y":0},{"x":1794740160000,"y":0},{"x":1794740220000,"y":0},{"x":1794740280000,"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; }