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/26/2024',y:[53.70,54.30,53.10,54.00]},{ x:'04/29/2024',y:[55.00,56.40,54.30,56.10]},{ x:'04/30/2024',y:[55.50,56.00,54.90,55.30]},{ x:'05/02/2024',y:[55.20,55.30,54.20,54.70]},{ x:'05/03/2024',y:[55.20,55.40,54.00,54.00]},{ x:'05/06/2024',y:[54.50,55.20,53.70,53.80]},{ x:'05/07/2024',y:[53.80,54.10,52.40,53.20]},{ x:'05/08/2024',y:[53.70,53.90,53.40,53.80]},{ x:'05/09/2024',y:[53.80,54.00,52.60,52.60]},{ x:'05/10/2024',y:[52.60,52.80,52.00,52.40]},{ x:'05/13/2024',y:[52.40,52.70,51.80,52.20]},{ x:'05/14/2024',y:[52.30,53.20,52.30,52.90]},{ x:'05/15/2024',y:[53.10,53.60,52.50,52.50]},{ x:'05/16/2024',y:[52.70,54.90,52.70,53.50]},{ x:'05/17/2024',y:[54.50,58.80,54.50,58.80]},{ x:'05/20/2024',y:[59.20,59.50,57.00,58.40]},{ x:'05/21/2024',y:[59.00,61.90,58.20,59.10]},{ x:'05/22/2024',y:[59.20,64.80,58.90,61.80]},{ x:'05/23/2024',y:[62.50,63.30,60.70,61.10]},{ x:'05/24/2024',y:[61.90,67.20,60.30,67.00]},{ x:'06/11/2024',y:[63.50,65.00,62.70,64.10]},{ x:'06/12/2024',y:[65.00,70.50,65.00,70.50]},{ x:'06/13/2024',y:[71.00,77.50,68.60,77.50]},{ x:'06/14/2024',y:[78.00,79.60,75.20,77.50]},{ x:'06/17/2024',y:[77.60,85.00,76.60,83.00]},{ x:'06/18/2024',y:[84.00,88.30,83.80,84.90]},{ x:'06/19/2024',y:[84.20,87.00,81.50,83.40]},{ x:'06/20/2024',y:[84.00,87.50,83.60,86.80]},{ x:'06/21/2024',y:[84.80,88.70,84.70,85.30]},{ x:'06/24/2024',y:[84.90,88.20,80.10,82.60]},{ x:'06/25/2024',y:[83.80,84.00,80.00,83.60]},{ x:'06/26/2024',y:[84.50,88.00,82.80,87.70]},{ x:'06/27/2024',y:[86.30,88.20,85.00,87.30]},{ x:'06/28/2024',y:[87.30,92.40,86.20,88.50]},{ x:'07/01/2024',y:[88.90,93.40,87.50,88.70]},{ x:'07/02/2024',y:[89.40,92.30,87.00,91.60]},{ x:'07/03/2024',y:[95.30,100.50,94.90,100.50]},{ x:'07/04/2024',y:[107.00,110.50,105.00,110.50]},{ x:'07/05/2024',y:[116.00,121.50,114.00,121.50]},{ x:'07/12/2024',y:[122.00,124.50,118.00,120.00]},{ x:'07/15/2024',y:[121.00,122.00,115.50,117.00]},{ x:'07/16/2024',y:[119.00,120.00,112.00,114.50]},{ x:'07/17/2024',y:[117.00,117.00,109.00,111.50]},{ x:'07/18/2024',y:[107.00,110.00,106.00,109.00]},{ x:'07/19/2024',y:[109.50,119.50,108.00,114.50]},{ x:'07/22/2024',y:[114.50,114.50,104.00,107.50]},{ x:'07/23/2024',y:[111.50,117.00,109.00,114.50]},{ x:'07/26/2024',y:[106.00,122.00,105.50,118.50]},{ x:'07/29/2024',y:[124.00,127.50,113.00,115.00]},{ x:'07/30/2024',y:[112.00,125.50,112.00,124.50]},{ x:'07/31/2024',y:[121.00,126.50,118.00,119.00]},{ x:'08/01/2024',y:[124.50,125.50,116.50,117.00]},{ x:'08/02/2024',y:[112.00,117.50,111.00,111.00]},{ x:'08/05/2024',y:[102.00,104.50,99.90,99.90]},{ x:'08/06/2024',y:[105.00,105.00,90.00,96.90]},{ x:'08/07/2024',y:[99.50,106.50,99.20,106.50]},{ x:'08/08/2024',y:[106.50,110.50,105.00,107.00]},{ x:'08/09/2024',y:[112.00,116.00,111.00,113.00]},{ x:'08/12/2024',y:[114.00,116.50,112.00,113.50]},{ x:'08/13/2024',y:[116.00,119.50,111.50,117.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8028 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());