"use strict"; $(document).ready(function() { var showyxis = true; if ( $('#graf-cena-ropy').width() < 600 ) { showyxis = false; } var datum = ["2023-12-19CET00:00:00","2023-12-20CET00:00:00","2023-12-21CET00:00:00","2023-12-22CET00:00:00","2023-12-23CET00:00:00","2023-12-24CET00:00:00","2023-12-25CET00:00:00","2023-12-26CET00:00:00","2023-12-27CET00:00:00","2023-12-28CET00:00:00","2023-12-29CET00:00:00","2023-12-30CET00:00:00","2023-12-31CET00:00:00","2024-01-01CET00:00:00","2024-01-02CET00:00:00","2024-01-03CET00:00:00","2024-01-04CET00:00:00","2024-01-05CET00:00:00","2024-01-06CET00:00:00","2024-01-07CET00:00:00","2024-01-08CET00:00:00","2024-01-09CET00:00:00","2024-01-10CET00:00:00","2024-01-11CET00:00:00","2024-01-12CET00:00:00","2024-01-13CET00:00:00","2024-01-14CET00:00:00","2024-01-15CET00:00:00","2024-01-16CET00:00:00","2024-01-17CET00:00:00","2024-01-18CET00:00:00","2024-01-19CET00:00:00","2024-01-20CET00:00:00","2024-01-21CET00:00:00","2024-01-22CET00:00:00","2024-01-23CET00:00:00","2024-01-24CET00:00:00","2024-01-25CET00:00:00","2024-01-26CET00:00:00","2024-01-27CET00:00:00","2024-01-28CET00:00:00","2024-01-29CET00:00:00","2024-01-30CET00:00:00","2024-01-31CET00:00:00","2024-02-01CET00:00:00","2024-02-02CET00:00:00","2024-02-03CET00:00:00","2024-02-04CET00:00:00","2024-02-05CET00:00:00","2024-02-06CET00:00:00","2024-02-07CET00:00:00","2024-02-08CET00:00:00","2024-02-09CET00:00:00","2024-02-10CET00:00:00","2024-02-11CET00:00:00","2024-02-12CET00:00:00","2024-02-13CET00:00:00","2024-02-14CET00:00:00","2024-02-15CET00:00:00","2024-02-16CET00:00:00","2024-02-17CET00:00:00","2024-02-18CET00:00:00","2024-02-19CET00:00:00","2024-02-20CET00:00:00","2024-02-21CET00:00:00","2024-02-22CET00:00:00","2024-02-23CET00:00:00","2024-02-24CET00:00:00","2024-02-25CET00:00:00","2024-02-26CET00:00:00","2024-02-27CET00:00:00","2024-02-28CET00:00:00","2024-02-29CET00:00:00","2024-03-01CET00:00:00","2024-03-02CET00:00:00","2024-03-03CET00:00:00","2024-03-04CET00:00:00","2024-03-05CET00:00:00","2024-03-06CET00:00:00","2024-03-07CET00:00:00","2024-03-08CET00:00:00","2024-03-09CET00:00:00","2024-03-10CET00:00:00","2024-03-11CET00:00:00","2024-03-12CET00:00:00","2024-03-13CET00:00:00","2024-03-14CET00:00:00","2024-03-15CET00:00:00","2024-03-16CET00:00:00","2024-03-17CET00:00:00","2024-03-18CET00:00:00","2024-03-19CET00:00:00","2024-03-20CET00:00:00","2024-03-21CET00:00:00","2024-03-22CET00:00:00","2024-03-23CET00:00:00","2024-03-24CET00:00:00","2024-03-25CET00:00:00","2024-03-26CET00:00:00","2024-03-27CET00:00:00","2024-03-28CET00:00:00","2024-03-29CET00:00:00","2024-03-30CET00:00:00","2024-03-31CET00:00:00","2024-04-01CEST00:00:00","2024-04-02CEST00:00:00","2024-04-03CEST00:00:00","2024-04-04CEST00:00:00","2024-04-05CEST00:00:00","2024-04-06CEST00:00:00","2024-04-07CEST00:00:00","2024-04-08CEST00:00:00","2024-04-09CEST00:00:00","2024-04-10CEST00:00:00","2024-04-11CEST00:00:00","2024-04-12CEST00:00:00","2024-04-13CEST00:00:00","2024-04-14CEST00:00:00","2024-04-15CEST00:00:00","2024-04-16CEST00:00:00","2024-04-17CEST00:00:00","2024-04-18CEST00:00:00","2024-04-19CEST00:00:00","2024-04-20CEST00:00:00","2024-04-21CEST00:00:00","2024-04-22CEST00:00:00","2024-04-23CEST00:00:00","2024-04-24CEST00:00:00","2024-04-25CEST00:00:00","2024-04-26CEST00:00:00"]; var ropa = [79.19,81.24,80.84,80.84,80.84,80.84,80.84,80.84,80.84,80.84,80.84,80.84,80.84,80.84,78.36,76.81,78.88,78.91,78.91,78.91,78.26,78.21,78.93,78.88,80.18,80.18,80.18,79.17,79.16,78.38,79.39,80.27,80.27,80.27,79.7,81.3,81.05,81.98,83,83,83,84.19,82.94,82.99,80.49,78.64,78.64,78.64,77.5,78.38,78.88,80.18,81.48,81.48,81.48,81.43,82.41,82.52,81.36,82.63,82.63,82.63,82.89,82.82,81.99,82.9,82.23,82.23,82.23,80.83,82.22,82.02,82.01,82.68,82.68,82.68,83.41,82.34,82.68,82.71,83.08,83.08,83.08,82.26,82.61,82.67,84.27,84.74,84.74,84.74,85.71,86.52,86.03,85.56,84.88,84.88,84.88,85.43,85.92,84.98,86,86,86,86,87.31,88.96,89.56,89.56,91.11,91.11,91.11,90.27,90.56,90.38,90.62,90.77,90.77,90.77,89.57,90.18,89.64,87.35,87.35,87.35,87.35,87.35,87.35,87.35,87.35,87.35]; var natccs = [35.86,35.86,35.85,35.85,35.74,35.74,35.75,35.74,35.57,35.56,35.48,35.49,35.5,34.83,35.45,35.48,35.64,35.66,35.69,35.7,35.7,35.71,35.71,35.85,35.86,35.87,35.87,35.87,35.99,35.96,35.96,36.01,36.03,36.03,36.08,36.11,36.12,36.3,36.32,36.33,36.34,36.46,36.44,36.44,36.55,36.78,36.79,36.79,36.8,36.82,36.84,36.85,36.85,37.06,37.07,37.1,37.26,37.31,37.33,37.36,37.7,37.7,37.72,37.97,37.96,37.97,37.96,37.99,38.08,38.09,38.1,38.16,38.17,38.17,38.17,38.17,38.17,38.19,38.19,38.2,38.2,38.22,38.27,38.28,38.28,38.22,38.22,38.22,38.19,38.2,38.2,38.19,38.19,38.19,38.19,38.19,38.17,38.16,38.28,38.31,38.35,38.39,38.38,38.38,38.39,38.54,38.56,38.57,38.97,39,39.04,39.05,39.11,39.15,39.19,39.21,39.25,39.58,39.59,39.62,39.63,39.86,39.94,39.97,39.97,39.97,39.98,40.03,40.03,40.03]; var dieccs = [36.03,36.02,36.02,36.04,36.01,36.01,36.01,36,35.83,35.83,35.82,35.81,35.8,34.95,35.64,35.6,35.89,35.87,35.83,35.83,35.82,35.82,35.82,36.03,36.04,36.03,36.03,36.02,35.97,35.97,35.95,35.98,36.14,36.19,36.18,36.23,36.24,36.24,36.25,36.25,36.25,36.26,36.26,36.27,36.39,36.4,36.38,36.39,36.4,36.4,36.47,36.48,36.5,36.51,37.1,37.1,37.1,37.27,37.74,37.76,37.81,37.81,37.83,37.87,37.87,37.88,37.89,37.9,37.95,37.95,37.96,37.97,37.65,37.65,37.52,37.53,37.52,38.25,38.25,38.26,38.25,38.2,38.2,38.2,38.17,38.17,38.16,38.16,38.18,38.17,38.16,36.87,36.9,36.9,36.87,36.89,38.1,38.09,38.11,38.29,38.3,38.3,38.3,38.31,38.31,38.3,38.3,38.3,38.3,38.34,38.29,38.29,38.3,37.47,37.57,37.6,37.6,37.62,37.75,37.87,37.87,37.87,37.88,37.88,37.88,37.88,37.91,37.97,37.96,37.94]; /* ----- 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: natccs }, { name: 'Diesel', data: dieccs }], 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: 76.81 },{ opposite: true, title: { text: "Benzin, Nafta" }, show: showyxis, min: 34.83 },{ opposite: true, show: false, title: { text: "Nafta" }, min: 34.83 } ], 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(); }); // 27.04.2024 13:14:08// NE // 0.04122