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:'01/22/2024',y:[77.95,78.25,77.65,77.90]},{ x:'01/23/2024',y:[78.05,78.25,77.80,78.15]},{ x:'01/24/2024',y:[78.25,78.40,78.10,78.20]},{ x:'01/25/2024',y:[78.60,79.15,78.60,79.10]},{ x:'01/26/2024',y:[79.05,79.30,78.90,79.10]},{ x:'01/29/2024',y:[79.10,79.60,79.10,79.60]},{ x:'01/30/2024',y:[79.55,79.65,79.35,79.45]},{ x:'01/31/2024',y:[79.00,79.00,78.35,78.45]},{ x:'02/01/2024',y:[78.40,78.50,77.95,78.45]},{ x:'02/02/2024',y:[78.85,79.00,78.65,78.95]},{ x:'02/05/2024',y:[78.95,79.55,78.85,79.55]},{ x:'02/15/2024',y:[82.80,83.90,82.45,82.95]},{ x:'02/16/2024',y:[82.95,83.05,82.45,82.50]},{ x:'02/19/2024',y:[82.45,82.45,82.05,82.40]},{ x:'02/20/2024',y:[82.30,82.95,82.20,82.70]},{ x:'02/21/2024',y:[82.60,82.65,82.35,82.40]},{ x:'02/22/2024',y:[83.00,83.40,82.80,83.35]},{ x:'02/23/2024',y:[83.80,84.10,83.70,83.90]},{ x:'02/26/2024',y:[83.90,84.20,83.55,84.15]},{ x:'02/27/2024',y:[84.15,84.25,83.30,83.85]},{ x:'02/29/2024',y:[83.65,84.10,83.45,83.95]},{ x:'03/01/2024',y:[84.00,84.20,83.65,83.70]},{ x:'03/04/2024',y:[84.85,85.95,84.85,85.85]},{ x:'03/05/2024',y:[86.20,86.80,86.05,86.65]},{ x:'03/06/2024',y:[85.90,87.20,85.65,87.15]},{ x:'03/07/2024',y:[88.10,89.30,88.05,88.95]},{ x:'03/08/2024',y:[91.00,91.20,89.30,90.10]},{ x:'03/11/2024',y:[89.70,90.00,89.15,89.30]},{ x:'03/12/2024',y:[89.15,90.20,88.95,90.20]},{ x:'03/13/2024',y:[90.70,91.30,90.55,90.80]},{ x:'03/14/2024',y:[90.80,90.95,90.05,90.55]},{ x:'03/15/2024',y:[90.00,90.35,89.75,89.80]},{ x:'03/18/2024',y:[89.70,90.30,89.55,90.30]},{ x:'03/19/2024',y:[89.85,90.40,89.50,90.30]},{ x:'03/20/2024',y:[90.30,90.70,89.60,89.90]},{ x:'03/21/2024',y:[90.85,92.05,90.85,92.00]},{ x:'03/22/2024',y:[92.00,92.40,91.50,92.05]},{ x:'03/25/2024',y:[92.25,92.45,91.75,92.10]},{ x:'03/26/2024',y:[92.20,93.05,91.40,92.20]},{ x:'03/27/2024',y:[92.25,92.35,91.80,92.25]},{ x:'03/28/2024',y:[92.10,92.15,91.15,91.80]},{ x:'03/29/2024',y:[91.80,92.40,91.80,92.25]},{ x:'04/01/2024',y:[92.50,92.75,91.85,91.85]},{ x:'04/02/2024',y:[92.50,93.30,92.50,93.20]},{ x:'04/03/2024',y:[92.80,92.95,92.15,92.80]},{ x:'04/08/2024',y:[92.80,93.50,92.70,93.10]},{ x:'04/09/2024',y:[93.30,95.45,93.30,95.45]},{ x:'04/10/2024',y:[95.45,95.50,95.00,95.35]},{ x:'04/11/2024',y:[94.80,95.00,94.40,94.95]},{ x:'04/12/2024',y:[94.95,95.20,94.65,94.80]},{ x:'04/15/2024',y:[94.15,94.30,93.40,93.80]},{ x:'04/16/2024',y:[92.65,92.75,90.75,91.30]},{ x:'04/17/2024',y:[91.35,92.60,91.35,92.35]},{ x:'04/18/2024',y:[91.95,93.05,91.25,93.05]},{ x:'04/19/2024',y:[90.55,90.55,88.00,88.50]},{ x:'04/22/2024',y:[88.10,88.90,87.70,88.00]},{ x:'04/23/2024',y:[89.20,89.25,88.55,88.75]},{ x:'04/24/2024',y:[90.00,91.60,90.00,91.40]},{ x:'04/25/2024',y:[90.45,90.50,89.75,89.95]},{ x:'04/26/2024',y:[91.10,91.85,91.00,91.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006208 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());