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:'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]},{ x:'04/29/2024',y:[91.90,93.05,91.90,92.75]},{ x:'04/30/2024',y:[92.90,93.30,92.70,92.70]},{ x:'05/02/2024',y:[92.20,92.20,91.30,91.50]},{ x:'05/03/2024',y:[93.00,93.00,91.60,92.00]},{ x:'05/06/2024',y:[93.00,93.80,93.00,93.30]},{ x:'05/07/2024',y:[93.70,93.95,93.30,93.75]},{ x:'05/08/2024',y:[93.70,94.15,93.45,94.10]},{ x:'05/09/2024',y:[94.10,94.45,93.90,94.00]},{ x:'05/10/2024',y:[94.45,94.95,94.05,94.75]},{ x:'05/13/2024',y:[95.65,96.00,95.35,95.40]},{ x:'05/14/2024',y:[95.30,96.15,95.20,96.15]},{ x:'05/15/2024',y:[96.65,98.20,96.65,97.50]},{ x:'05/16/2024',y:[98.70,99.30,97.85,98.10]},{ x:'05/17/2024',y:[98.10,98.20,97.65,97.80]},{ x:'05/20/2024',y:[97.90,98.00,96.75,97.65]},{ x:'05/21/2024',y:[97.60,97.75,97.05,97.60]},{ x:'05/22/2024',y:[97.75,99.55,97.75,99.50]},{ x:'05/23/2024',y:[99.90,100.30,99.55,100.20]},{ x:'05/24/2024',y:[99.50,100.05,99.00,99.90]},{ x:'06/11/2024',y:[101.40,102.00,101.15,101.30]},{ x:'06/12/2024',y:[101.30,103.25,101.30,103.15]},{ x:'06/13/2024',y:[104.75,105.65,103.90,104.55]},{ x:'06/14/2024',y:[104.50,105.25,103.90,105.25]},{ x:'06/17/2024',y:[105.20,105.65,104.75,105.20]},{ x:'06/18/2024',y:[106.40,107.25,106.40,106.95]},{ x:'06/19/2024',y:[107.50,110.60,107.50,110.25]},{ x:'06/20/2024',y:[110.25,110.95,110.00,110.85]},{ x:'06/21/2024',y:[109.90,110.60,109.45,110.00]} ] }], 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());