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:[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]},{ x:'03/28/2024',y:[100.95,100.95,100.20,100.80]},{ x:'03/29/2024',y:[100.95,101.25,100.95,101.25]},{ x:'04/01/2024',y:[101.15,101.15,101.00,101.05]},{ x:'04/02/2024',y:[101.75,102.05,101.75,102.05]},{ x:'04/03/2024',y:[101.60,101.60,101.45,101.50]},{ x:'04/08/2024',y:[101.50,102.00,101.50,102.00]},{ x:'04/09/2024',y:[102.85,103.70,102.85,103.70]},{ x:'04/10/2024',y:[103.45,103.70,103.45,103.60]},{ x:'04/11/2024',y:[103.05,103.05,102.85,102.95]},{ x:'04/12/2024',y:[103.00,103.45,103.00,103.15]},{ x:'04/15/2024',y:[102.45,102.45,101.75,101.85]},{ x:'04/16/2024',y:[100.00,100.00,98.80,98.85]},{ x:'04/17/2024',y:[99.50,100.40,99.50,100.25]},{ x:'04/18/2024',y:[99.80,100.65,99.80,100.60]},{ x:'04/19/2024',y:[97.90,97.90,96.90,97.20]},{ x:'04/22/2024',y:[97.25,97.35,96.85,96.85]},{ x:'04/23/2024',y:[97.50,97.85,97.50,97.85]},{ x:'04/24/2024',y:[99.80,100.30,99.80,100.20]},{ x:'04/25/2024',y:[99.15,99.15,98.55,98.55]},{ x:'04/26/2024',y:[100.00,100.15,100.00,100.15]} ] }], 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());