function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'03/20/2024',y:[21.75,22.15,21.75,21.85]},{ x:'03/21/2024',y:[22.20,22.20,21.70,21.80]},{ x:'03/22/2024',y:[21.80,21.80,21.50,21.65]},{ x:'03/25/2024',y:[21.65,22.10,21.65,22.05]},{ x:'03/26/2024',y:[22.10,22.15,21.90,21.90]},{ x:'03/27/2024',y:[21.90,22.30,21.75,22.10]},{ x:'03/28/2024',y:[22.20,22.20,21.85,21.90]},{ x:'03/29/2024',y:[21.95,22.50,21.45,22.30]},{ x:'04/01/2024',y:[22.30,22.30,22.00,22.05]},{ x:'04/02/2024',y:[22.05,22.15,21.95,22.05]},{ x:'04/03/2024',y:[22.15,22.15,21.90,21.95]},{ x:'04/08/2024',y:[21.90,22.05,21.65,22.05]},{ x:'04/09/2024',y:[22.05,22.10,21.75,22.05]},{ x:'04/10/2024',y:[22.15,22.15,21.75,22.05]},{ x:'04/11/2024',y:[22.05,22.15,21.95,21.95]},{ x:'04/12/2024',y:[21.95,21.95,21.85,21.90]},{ x:'04/15/2024',y:[21.90,22.00,21.80,21.85]},{ x:'04/16/2024',y:[21.95,22.05,21.60,21.80]},{ x:'04/17/2024',y:[22.00,22.00,21.70,21.75]},{ x:'04/18/2024',y:[21.65,21.75,21.60,21.60]},{ x:'04/19/2024',y:[21.50,22.00,21.35,21.45]},{ x:'04/22/2024',y:[21.60,23.55,21.50,22.40]},{ x:'04/23/2024',y:[22.20,22.40,21.75,21.75]},{ x:'04/24/2024',y:[22.20,22.40,21.95,22.00]},{ x:'04/25/2024',y:[22.00,22.15,21.85,22.00]},{ x:'04/26/2024',y:[21.95,22.80,21.95,22.50]},{ x:'04/29/2024',y:[23.00,23.30,22.55,23.15]},{ x:'04/30/2024',y:[23.15,23.30,22.50,22.70]},{ x:'05/02/2024',y:[22.70,23.10,22.65,22.65]},{ x:'05/03/2024',y:[23.15,23.15,22.20,22.35]},{ x:'05/06/2024',y:[22.90,22.90,22.40,22.55]},{ x:'05/07/2024',y:[22.65,22.90,22.50,22.75]},{ x:'05/08/2024',y:[22.90,24.20,22.55,22.65]},{ x:'05/09/2024',y:[22.80,23.15,22.65,22.75]},{ x:'05/10/2024',y:[23.05,25.00,22.95,25.00]},{ x:'05/13/2024',y:[27.50,27.50,26.55,27.50]},{ x:'05/14/2024',y:[28.00,30.25,27.40,30.25]},{ x:'05/15/2024',y:[30.30,31.95,29.20,30.90]},{ x:'05/16/2024',y:[30.90,31.90,29.70,30.00]},{ x:'05/17/2024',y:[30.00,30.60,28.50,28.95]},{ x:'05/20/2024',y:[29.05,29.45,28.00,28.10]},{ x:'05/21/2024',y:[27.50,28.00,27.50,27.55]},{ x:'05/22/2024',y:[28.20,30.30,28.10,30.30]},{ x:'05/23/2024',y:[31.30,33.30,31.30,33.30]},{ x:'05/24/2024',y:[33.30,33.90,30.75,31.65]},{ x:'06/11/2024',y:[48.45,49.70,43.15,47.00]},{ x:'06/12/2024',y:[46.90,47.20,43.60,43.80]},{ x:'06/13/2024',y:[45.70,46.70,44.20,44.35]},{ x:'06/14/2024',y:[44.95,48.00,44.60,46.80]},{ x:'06/17/2024',y:[47.50,47.85,45.00,45.05]},{ x:'06/18/2024',y:[45.25,45.90,44.00,44.50]},{ x:'06/19/2024',y:[44.55,46.50,43.60,44.00]},{ x:'06/20/2024',y:[44.10,44.85,43.50,43.50]},{ x:'06/21/2024',y:[44.20,46.40,43.45,44.80]},{ x:'06/24/2024',y:[45.00,45.20,43.00,43.30]},{ x:'06/25/2024',y:[43.60,44.30,42.95,43.95]},{ x:'06/26/2024',y:[43.70,44.10,42.55,42.75]},{ x:'06/27/2024',y:[42.75,43.15,41.55,41.65]},{ x:'06/28/2024',y:[41.45,42.80,40.80,41.80]},{ x:'07/01/2024',y:[41.85,42.10,40.60,40.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2613 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());