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/17/2023',y:[74.60,75.00,74.55,74.75]},{ x:'11/20/2023',y:[74.75,74.85,74.45,74.65]},{ x:'11/21/2023',y:[75.05,75.60,75.05,75.55]},{ x:'11/22/2023',y:[75.15,75.15,74.75,75.00]},{ x:'11/23/2023',y:[75.00,75.05,74.60,74.90]},{ x:'11/24/2023',y:[75.00,75.05,74.80,74.85]},{ x:'11/27/2023',y:[74.85,75.15,74.20,74.20]},{ x:'11/28/2023',y:[74.25,75.15,74.25,74.85]},{ x:'11/29/2023',y:[75.00,75.35,74.75,74.80]},{ x:'11/30/2023',y:[74.90,74.95,74.50,74.95]},{ x:'12/01/2023',y:[74.80,75.05,74.65,75.05]},{ x:'12/04/2023',y:[75.25,75.35,74.65,74.90]},{ x:'12/05/2023',y:[74.55,74.55,74.05,74.40]},{ x:'12/06/2023',y:[74.40,74.95,74.40,74.60]},{ x:'12/07/2023',y:[74.45,74.55,74.20,74.20]},{ x:'12/08/2023',y:[74.90,75.05,74.60,74.65]},{ x:'12/11/2023',y:[74.70,74.90,74.55,74.80]},{ x:'12/12/2023',y:[75.20,75.30,74.85,74.95]},{ x:'12/18/2023',y:[76.05,76.15,75.60,76.10]},{ x:'12/19/2023',y:[76.10,76.25,75.70,75.95]},{ x:'01/10/2024',y:[75.55,75.70,75.30,75.55]},{ x:'01/11/2024',y:[75.75,76.00,75.55,75.90]},{ x:'01/12/2024',y:[75.65,75.95,75.30,75.70]},{ x:'01/15/2024',y:[76.00,76.20,75.75,75.95]},{ x:'01/16/2024',y:[75.45,75.65,74.85,75.20]},{ x:'01/17/2024',y:[75.20,75.20,74.55,74.70]},{ x:'01/18/2024',y:[74.80,75.15,74.75,75.00]},{ x:'01/19/2024',y:[76.45,77.55,76.45,77.50]},{ 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]} ] }], 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());