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:'04/29/2024',y:[85.10,86.15,85.10,85.90]},{ x:'04/30/2024',y:[86.65,86.65,86.15,86.15]},{ x:'05/02/2024',y:[84.65,84.65,84.15,84.15]},{ x:'05/03/2024',y:[85.65,85.65,84.40,84.90]},{ x:'05/06/2024',y:[85.95,86.20,85.80,86.05]},{ x:'05/07/2024',y:[86.40,86.70,86.40,86.70]},{ x:'05/08/2024',y:[86.30,87.10,86.30,87.10]},{ x:'05/09/2024',y:[87.45,87.45,87.00,87.00]},{ x:'05/10/2024',y:[87.00,87.00,86.50,86.80]},{ x:'05/13/2024',y:[87.85,88.20,87.75,88.00]},{ x:'05/14/2024',y:[87.80,88.20,87.50,88.20]},{ x:'05/15/2024',y:[88.80,90.20,88.80,89.75]},{ x:'05/16/2024',y:[91.40,91.40,90.30,90.30]},{ x:'05/17/2024',y:[90.05,90.20,89.65,89.75]},{ x:'05/20/2024',y:[89.50,89.60,89.15,89.30]},{ x:'05/21/2024',y:[89.85,90.00,89.50,90.00]},{ x:'05/22/2024',y:[90.05,91.55,90.05,91.50]},{ x:'05/23/2024',y:[92.55,92.65,92.45,92.50]},{ x:'05/24/2024',y:[92.35,92.70,91.95,92.70]},{ x:'06/11/2024',y:[94.40,94.50,93.80,94.15]},{ x:'06/12/2024',y:[94.80,95.85,94.45,95.85]},{ x:'06/13/2024',y:[96.00,97.90,96.00,97.45]},{ x:'06/14/2024',y:[97.45,98.60,96.95,98.60]},{ x:'06/17/2024',y:[98.60,98.60,97.80,97.80]},{ x:'06/18/2024',y:[99.50,99.75,99.00,99.60]},{ x:'06/19/2024',y:[101.20,102.80,100.60,102.80]},{ x:'06/20/2024',y:[102.85,103.20,102.25,103.20]},{ x:'06/21/2024',y:[102.15,102.60,101.90,102.00]},{ x:'06/24/2024',y:[101.55,101.55,100.05,100.35]},{ x:'06/25/2024',y:[99.00,100.00,98.30,100.00]},{ x:'06/26/2024',y:[101.40,101.50,101.00,101.50]},{ x:'06/27/2024',y:[100.45,101.15,100.10,101.15]},{ x:'06/28/2024',y:[101.25,102.05,101.20,101.85]},{ x:'07/01/2024',y:[104.90,104.90,101.75,102.10]},{ x:'07/02/2024',y:[102.30,102.30,101.00,101.35]},{ x:'07/03/2024',y:[101.60,102.15,101.50,102.15]},{ x:'07/04/2024',y:[103.15,104.20,103.15,104.20]},{ x:'07/05/2024',y:[104.45,104.50,104.45,104.50]},{ x:'07/12/2024',y:[108.90,108.90,106.05,106.05]},{ x:'07/15/2024',y:[108.70,108.70,106.35,107.10]},{ x:'07/16/2024',y:[108.00,108.60,107.10,107.65]},{ x:'07/17/2024',y:[107.65,107.65,106.00,106.15]},{ x:'07/18/2024',y:[104.20,104.20,103.00,103.45]},{ x:'07/19/2024',y:[103.00,103.00,101.60,101.60]},{ x:'07/22/2024',y:[100.00,100.00,97.80,98.40]},{ x:'07/23/2024',y:[98.50,101.50,98.50,101.50]},{ x:'07/26/2024',y:[96.05,97.35,96.05,97.20]},{ x:'07/29/2024',y:[97.30,97.30,93.55,94.05]},{ x:'07/30/2024',y:[94.05,97.70,94.05,97.65]},{ x:'07/31/2024',y:[97.20,97.80,97.20,97.45]},{ x:'08/01/2024',y:[99.70,100.10,99.55,99.85]},{ x:'08/02/2024',y:[98.15,98.15,94.60,94.60]},{ x:'08/05/2024',y:[90.00,90.00,86.00,86.00]},{ x:'08/06/2024',y:[88.00,91.00,86.90,89.95]},{ x:'08/07/2024',y:[91.70,93.90,91.70,93.60]},{ x:'08/08/2024',y:[92.75,92.75,91.00,91.85]},{ x:'08/09/2024',y:[93.50,94.90,93.50,94.05]},{ x:'08/12/2024',y:[94.50,96.30,94.50,95.50]},{ x:'08/13/2024',y:[95.55,96.15,95.55,96.10]},{ x:'08/14/2024',y:[96.60,97.35,96.60,97.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0053 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());