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:[84.60,85.70,84.00,85.20]},{ x:'01/23/2024',y:[85.30,87.00,84.80,87.00]},{ x:'01/24/2024',y:[86.90,87.80,86.40,86.70]},{ x:'01/25/2024',y:[87.70,87.70,86.10,86.80]},{ x:'01/26/2024',y:[86.80,86.80,85.50,86.30]},{ x:'01/29/2024',y:[86.00,86.90,86.00,86.30]},{ x:'01/30/2024',y:[86.90,86.90,85.30,85.30]},{ x:'01/31/2024',y:[86.80,86.80,85.00,86.30]},{ x:'02/01/2024',y:[86.50,87.00,86.00,87.00]},{ x:'02/02/2024',y:[88.50,92.50,88.40,91.50]},{ x:'02/05/2024',y:[91.50,91.50,89.10,89.10]},{ x:'02/15/2024',y:[89.10,90.00,87.10,88.90]},{ x:'02/16/2024',y:[88.70,90.60,88.70,90.40]},{ x:'02/19/2024',y:[90.30,91.80,90.30,91.40]},{ x:'02/20/2024',y:[91.40,92.40,89.80,91.80]},{ x:'02/21/2024',y:[92.00,92.20,91.10,92.00]},{ x:'02/22/2024',y:[92.40,94.40,92.40,93.00]},{ x:'02/23/2024',y:[94.00,94.00,91.40,91.40]},{ x:'02/26/2024',y:[92.20,92.90,91.60,92.50]},{ x:'02/27/2024',y:[92.50,93.60,90.60,92.00]},{ x:'02/29/2024',y:[92.50,94.20,92.50,94.10]},{ x:'03/01/2024',y:[94.10,94.80,93.40,94.20]},{ x:'03/04/2024',y:[96.50,102.50,96.30,100.00]},{ x:'03/05/2024',y:[101.50,102.00,98.00,99.20]},{ x:'03/06/2024',y:[98.90,99.40,97.80,98.90]},{ x:'03/07/2024',y:[98.90,99.00,94.70,94.70]},{ x:'03/08/2024',y:[94.70,95.90,91.30,92.80]},{ x:'03/11/2024',y:[98.00,99.20,96.10,96.50]},{ x:'03/12/2024',y:[98.00,105.00,96.60,104.50]},{ x:'03/13/2024',y:[104.50,104.50,98.10,98.90]},{ x:'03/14/2024',y:[99.70,103.00,98.80,99.70]},{ x:'03/15/2024',y:[100.50,100.50,98.00,98.90]},{ x:'03/18/2024',y:[99.50,101.00,98.20,99.70]},{ x:'03/19/2024',y:[99.90,101.00,98.20,98.50]},{ x:'03/20/2024',y:[99.00,101.00,98.40,99.00]},{ x:'03/21/2024',y:[99.40,100.00,98.80,98.90]},{ x:'03/22/2024',y:[98.90,98.90,97.40,98.00]},{ x:'03/25/2024',y:[98.20,98.80,97.70,98.70]},{ x:'03/26/2024',y:[99.00,99.10,95.50,96.30]},{ x:'03/27/2024',y:[97.00,99.00,96.80,98.90]},{ x:'03/28/2024',y:[99.30,99.70,98.20,98.60]},{ x:'03/29/2024',y:[99.70,99.70,97.40,98.30]},{ x:'04/01/2024',y:[98.50,100.50,98.40,99.20]},{ x:'04/02/2024',y:[100.00,109.00,99.90,109.00]},{ x:'04/03/2024',y:[109.00,119.50,108.00,119.50]},{ x:'04/08/2024',y:[119.50,130.00,118.50,124.00]},{ x:'04/09/2024',y:[123.50,128.50,121.00,124.50]},{ x:'04/10/2024',y:[127.50,135.50,125.50,126.50]},{ x:'04/11/2024',y:[126.00,132.50,124.00,128.00]},{ x:'04/12/2024',y:[129.00,130.00,125.50,129.00]},{ x:'04/15/2024',y:[127.00,129.00,125.50,127.00]},{ x:'04/16/2024',y:[126.00,126.00,115.00,123.00]},{ x:'04/17/2024',y:[123.00,130.50,122.00,127.00]},{ x:'04/18/2024',y:[128.00,133.00,126.50,129.00]},{ x:'04/19/2024',y:[128.00,130.00,120.50,123.50]},{ x:'04/22/2024',y:[125.00,125.00,120.50,121.50]},{ x:'04/23/2024',y:[121.50,124.50,121.50,124.50]},{ x:'04/24/2024',y:[126.00,133.50,125.00,126.00]},{ x:'04/25/2024',y:[130.50,137.00,127.00,130.00]},{ x:'04/26/2024',y:[130.00,143.00,130.00,143.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2066 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());