"use strict"; $(document).ready(function() { var showyxis = true; if ( $('#graf-cena-ropy').width() < 600 ) { showyxis = false; } var datum = ["2025-10-28CET00:00:00","2025-10-29CET00:00:00","2025-10-30CET00:00:00","2025-10-31CET00:00:00","2025-11-01CET00:00:00","2025-11-02CET00:00:00","2025-11-03CET00:00:00","2025-11-04CET00:00:00","2025-11-05CET00:00:00","2025-11-06CET00:00:00","2025-11-07CET00:00:00","2025-11-08CET00:00:00","2025-11-09CET00:00:00","2025-11-10CET00:00:00","2025-11-11CET00:00:00","2025-11-12CET00:00:00","2025-11-13CET00:00:00","2025-11-14CET00:00:00","2025-11-15CET00:00:00","2025-11-16CET00:00:00","2025-11-17CET00:00:00","2025-11-18CET00:00:00","2025-11-19CET00:00:00","2025-11-20CET00:00:00","2025-11-21CET00:00:00","2025-11-22CET00:00:00","2025-11-23CET00:00:00","2025-11-24CET00:00:00","2025-11-25CET00:00:00","2025-11-26CET00:00:00","2025-11-27CET00:00:00","2025-11-28CET00:00:00","2025-11-29CET00:00:00","2025-11-30CET00:00:00","2025-12-01CET00:00:00","2025-12-02CET00:00:00","2025-12-03CET00:00:00","2025-12-04CET00:00:00","2025-12-05CET00:00:00","2025-12-06CET00:00:00","2026-02-10CET00:00:00","2026-02-11CET00:00:00","2026-02-12CET00:00:00","2026-02-13CET00:00:00","2026-02-14CET00:00:00","2026-02-15CET00:00:00","2026-02-16CET00:00:00","2026-02-17CET00:00:00","2026-02-18CET00:00:00","2026-02-19CET00:00:00","2026-02-20CET00:00:00","2026-02-21CET00:00:00","2026-02-22CET00:00:00","2026-02-23CET00:00:00","2026-02-24CET00:00:00","2026-02-25CET00:00:00","2026-02-26CET00:00:00","2026-02-27CET00:00:00","2026-02-28CET00:00:00","2026-03-01CET00:00:00","2026-03-02CET00:00:00","2026-03-03CET00:00:00","2026-03-04CET00:00:00","2026-03-05CET00:00:00","2026-03-06CET00:00:00"]; var ropa = [65.46,65.24,66.46,66.72,66.72,66.72,66.49,65.43,65.43,65.51,64.83,64.83,64.83,64.91,65.04,65.12,63.42,64.68,64.68,64.68,64.65,64.54,64.54,64.54,63,63,63,63.14,63.43,63.21,63.21,64.27,64.27,64.27,63.79,63.44,63.44,63.24,63.24,63.24,67.86,67.86,68.06,66.62,66.62,66.62,66.62,66.62,66.62,69.79,70.11,70.11,70.11,69.71,69.71,69.29,69.29,69.29,69.29,69.29,69.29,69.29,82.87,82.87,82.87,63.86,61.87,61.28,60.8,59.54,59.56,61.22,61.22,59.81,59.61,58.51,58.76,61.2,61.75,62.78,63.3,62.77,62.94,62.94,63.21,62.92,63.69,63.5,67,64.94,66.65]; var nat = [33.68,33.67,33.87,33.88,33.89,33.9,33.9,33.91,34.09,34.15,34.16,34.16,34.16,34.16,34.22,34.24,34.23,34.23,34.25,34.25,34.25,34.25,34.31,34.28,34.29,34.28,34.29,34.29,34.29,34.28,34.28,34.22,34.24,34.31,34.3,34.29,34.04,34.21,34.18,34.23,32.81,32.81,32.87,32.87,32.91,32.91,32.91,32.92,32.83,32.83,32.83,32.92,32.86,32.85,32.79,33.01,33.01,33.11,33.12,33.26,33.27,33.34,34,34.05,34.13]; var die = [31.96,31.95,32.33,32.32,32.36,32.36,32.38,32.4,32.65,32.78,32.84,32.87,32.87,32.92,33.14,33.23,33.25,33.25,33.27,33.27,33.27,33.28,33.55,33.53,33.54,33.57,33.57,33.58,33.68,33.74,33.78,33.74,33.74,33.91,33.91,33.9,33.54,33.52,33.44,33.55,32.29,32.29,32.41,32.41,32.41,32.42,32.42,32.42,32.31,32.31,32.31,32.43,32.36,32.35,32.31,32.49,32.49,32.59,32.59,32.71,32.7,32.83,34.05,34.22,34.4]; /* ----- Apex Area Chart ----- */ var options = { chart: { height: '500px', animations : { enabled : false }, type: 'line', toolbar: { show: false }, zoom: { type: 'x', enabled: false, autoScaleYaxis: true }, }, dataLabels: { enabled: false }, stroke: { curve: 'smooth', width: 2 }, colors: ['#000000', '#0442ba', '#FF0000'] , series: [{ name: 'Ropa', data: ropa }, { name: 'Natural', data: nat }, { name: 'Diesel', data: die }], legend: { show: true, }, xaxis: { type: 'datetime', categories: datum, axisBorder: { show: true, color: 'rgba(0,0,0,0.05)' }, axisTicks: { show: true, color: 'rgba(0,0,0,0.05)' }, labels: { format: 'dd.MM.'} }, yaxis: [ { title: { text: "Ropa" }, show: showyxis, min: 58.51 },{ opposite: true, title: { text: "Benzin, Nafta" }, show: showyxis, max: 34.4, min: 31.95 },{ opposite: true, show: false, title: { text: "Nafta" }, max: 34.4, min: 31.95 } ], grid: { row: { colors: ['transparent', 'transparent'], opacity: .2 }, borderColor: 'rgba(0,0,0,0.05)' }, tooltip: { x: { format: 'dd.MM.yyyy' }, } } var chart = new ApexCharts( document.querySelector("#graf-cena-ropy"), options ); chart.render(); }); // 07.03.2026 4:24:40// NE // 0.15399