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:'11/29/2023',y:[86.95,87.00,86.75,87.00]},{ x:'11/30/2023',y:[86.35,86.70,86.35,86.70]},{ x:'12/01/2023',y:[86.70,86.80,86.50,86.80]},{ x:'12/04/2023',y:[86.85,87.00,86.65,86.90]},{ x:'12/05/2023',y:[86.40,86.40,86.00,86.25]},{ x:'12/06/2023',y:[86.60,86.85,86.55,86.60]},{ x:'12/07/2023',y:[86.50,86.50,86.10,86.30]},{ x:'12/08/2023',y:[86.85,86.85,86.75,86.75]},{ x:'12/11/2023',y:[86.60,86.80,86.55,86.80]},{ x:'12/12/2023',y:[87.10,87.20,86.95,86.95]},{ x:'12/18/2023',y:[88.10,88.15,88.10,88.15]},{ x:'12/19/2023',y:[87.90,87.90,87.65,87.65]},{ x:'01/10/2024',y:[87.50,87.50,87.25,87.25]},{ x:'01/11/2024',y:[87.50,87.60,87.45,87.55]},{ x:'01/12/2024',y:[87.30,87.70,87.25,87.55]},{ x:'01/15/2024',y:[87.75,87.95,87.65,87.95]},{ x:'01/16/2024',y:[86.90,87.05,86.80,86.85]},{ x:'01/17/2024',y:[86.45,86.45,85.95,86.00]},{ x:'01/18/2024',y:[86.05,86.20,86.00,86.15]},{ x:'01/19/2024',y:[87.60,88.15,87.45,88.15]},{ x:'01/22/2024',y:[88.90,89.00,88.80,88.80]},{ x:'01/23/2024',y:[89.10,89.30,89.10,89.15]},{ x:'01/24/2024',y:[89.15,89.40,89.15,89.40]},{ x:'01/25/2024',y:[89.70,89.80,89.60,89.80]},{ x:'01/26/2024',y:[89.95,89.95,89.70,89.80]},{ x:'01/29/2024',y:[89.80,90.30,89.80,90.30]},{ x:'01/30/2024',y:[90.20,90.40,90.20,90.40]},{ x:'01/31/2024',y:[89.50,89.50,89.40,89.40]},{ x:'02/01/2024',y:[89.35,89.40,89.10,89.40]},{ x:'02/02/2024',y:[90.30,90.30,90.30,90.30]},{ x:'02/05/2024',y:[90.25,90.40,89.90,90.40]},{ x:'02/15/2024',y:[93.45,93.45,92.55,92.85]},{ x:'02/16/2024',y:[93.10,93.10,92.55,92.55]},{ x:'02/19/2024',y:[92.55,92.65,92.50,92.60]},{ x:'02/20/2024',y:[93.20,93.20,92.70,93.15]},{ x:'02/21/2024',y:[93.05,93.05,92.90,92.90]},{ x:'02/22/2024',y:[93.30,93.75,93.30,93.75]},{ x:'02/23/2024',y:[94.20,94.30,94.20,94.30]},{ x:'02/26/2024',y:[94.20,94.25,94.15,94.15]},{ x:'02/27/2024',y:[93.75,93.75,93.75,93.75]},{ x:'02/29/2024',y:[93.60,94.05,93.60,94.05]},{ x:'03/01/2024',y:[94.10,94.15,94.05,94.15]},{ x:'03/04/2024',y:[94.80,95.90,94.80,95.90]},{ x:'03/05/2024',y:[96.50,96.55,96.50,96.55]},{ x:'03/06/2024',y:[96.15,96.95,96.15,96.95]},{ x:'03/07/2024',y:[97.55,98.20,97.35,98.20]},{ x:'03/08/2024',y:[99.40,99.40,98.15,98.75]},{ x:'03/11/2024',y:[98.55,98.55,98.20,98.20]},{ x:'03/12/2024',y:[98.55,99.25,98.45,99.25]},{ x:'03/13/2024',y:[99.45,99.65,99.15,99.30]},{ x:'03/14/2024',y:[99.30,99.30,99.20,99.20]},{ x:'03/15/2024',y:[99.00,99.00,98.55,98.55]},{ x:'03/18/2024',y:[98.65,98.85,98.65,98.85]},{ x:'03/19/2024',y:[98.70,99.40,98.70,99.40]},{ x:'03/20/2024',y:[99.55,99.60,98.55,98.55]},{ x:'03/21/2024',y:[99.95,100.90,99.90,100.90]},{ x:'03/22/2024',y:[101.05,101.15,100.70,100.70]},{ x:'03/25/2024',y:[101.10,101.10,100.75,101.05]},{ x:'03/26/2024',y:[101.65,101.65,99.95,100.60]},{ x:'03/27/2024',y:[100.50,100.90,100.50,100.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006204 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());