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/13/2023',y:[331.00,337.50,329.00,334.00]},{ x:'04/14/2023',y:[334.00,338.00,333.50,336.00]},{ x:'04/17/2023',y:[338.00,338.00,331.50,333.50]},{ x:'04/18/2023',y:[331.50,336.00,331.50,336.00]},{ x:'04/19/2023',y:[337.00,338.50,328.00,331.50]},{ x:'04/20/2023',y:[329.00,331.00,326.00,327.50]},{ x:'04/21/2023',y:[331.00,331.00,325.50,325.50]},{ x:'04/24/2023',y:[326.50,329.50,320.00,327.50]},{ x:'04/25/2023',y:[326.50,328.00,325.00,326.00]},{ x:'04/26/2023',y:[329.00,335.00,324.00,334.50]},{ x:'04/27/2023',y:[336.00,336.00,327.00,333.00]},{ x:'04/28/2023',y:[331.50,339.50,331.50,337.50]},{ x:'05/02/2023',y:[342.00,353.00,341.50,350.50]},{ x:'05/03/2023',y:[348.00,348.50,344.00,345.00]},{ x:'05/04/2023',y:[345.00,354.00,342.00,354.00]},{ x:'05/05/2023',y:[354.00,354.00,338.50,346.50]},{ x:'05/08/2023',y:[346.50,352.00,345.50,348.50]},{ x:'05/09/2023',y:[348.00,348.00,341.00,344.00]},{ x:'05/10/2023',y:[344.50,347.00,339.00,346.00]},{ x:'05/11/2023',y:[348.00,348.00,342.00,343.00]},{ x:'05/12/2023',y:[347.50,347.50,340.50,340.50]},{ x:'05/15/2023',y:[333.00,339.00,333.00,334.00]},{ x:'05/16/2023',y:[339.50,347.50,336.00,338.00]},{ x:'05/17/2023',y:[340.50,344.50,335.00,343.00]},{ x:'05/18/2023',y:[340.50,345.50,337.00,339.50]},{ x:'05/19/2023',y:[339.50,347.00,339.50,346.50]},{ x:'05/22/2023',y:[346.50,353.00,346.50,351.00]},{ x:'05/23/2023',y:[363.50,370.00,357.50,359.50]},{ x:'05/24/2023',y:[358.50,358.50,349.50,354.00]},{ x:'05/25/2023',y:[350.00,350.00,340.00,347.50]},{ x:'05/26/2023',y:[342.50,346.00,338.50,345.00]},{ x:'05/29/2023',y:[349.00,355.00,348.00,351.50]},{ x:'05/30/2023',y:[352.50,357.00,349.00,350.50]},{ x:'05/31/2023',y:[350.50,355.00,350.00,352.50]},{ x:'06/01/2023',y:[357.00,357.00,350.00,354.00]},{ x:'06/02/2023',y:[354.00,354.00,346.00,348.50]},{ x:'06/05/2023',y:[348.50,352.00,340.50,348.00]},{ x:'06/06/2023',y:[350.00,351.00,344.50,349.00]},{ x:'06/07/2023',y:[347.50,365.00,347.50,364.50]},{ x:'06/08/2023',y:[362.50,370.00,361.00,362.50]},{ x:'06/09/2023',y:[365.00,368.00,360.50,362.50]},{ x:'06/12/2023',y:[368.00,368.00,356.50,358.50]},{ x:'06/13/2023',y:[359.00,368.50,358.50,362.00]},{ x:'06/14/2023',y:[362.00,363.50,356.00,358.00]},{ x:'06/15/2023',y:[359.00,362.00,351.50,355.00]},{ x:'06/16/2023',y:[356.00,356.00,348.50,348.50]},{ x:'06/19/2023',y:[348.50,349.00,343.00,348.50]},{ x:'06/20/2023',y:[349.00,349.00,338.50,339.50]},{ x:'06/21/2023',y:[341.00,343.00,335.50,341.50]},{ x:'06/26/2023',y:[344.50,347.50,336.50,344.00]},{ x:'06/27/2023',y:[345.00,345.00,339.00,343.00]},{ x:'06/28/2023',y:[340.50,346.00,340.50,345.00]},{ x:'06/29/2023',y:[347.00,350.00,343.00,346.00]},{ x:'06/30/2023',y:[344.00,347.00,340.50,342.50]},{ x:'07/03/2023',y:[342.50,350.00,342.50,348.00]},{ x:'07/04/2023',y:[345.00,350.00,341.50,350.00]},{ x:'07/05/2023',y:[345.00,350.50,345.00,346.00]},{ x:'07/06/2023',y:[342.50,345.50,330.00,330.00]},{ x:'07/07/2023',y:[330.00,338.50,326.50,335.00]},{ x:'07/10/2023',y:[332.00,338.00,331.50,335.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8464 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());