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:[344.00,348.50,341.00,348.50]},{ x:'04/30/2024',y:[351.00,355.50,346.00,355.00]},{ x:'05/02/2024',y:[358.00,366.50,355.00,358.00]},{ x:'05/03/2024',y:[362.00,364.00,353.50,356.00]},{ x:'05/06/2024',y:[357.00,365.00,352.50,364.00]},{ x:'05/07/2024',y:[365.00,370.00,362.00,366.50]},{ x:'05/08/2024',y:[366.00,368.50,360.00,366.00]},{ x:'05/09/2024',y:[365.00,379.00,359.50,359.50]},{ x:'05/10/2024',y:[366.00,373.00,359.50,371.50]},{ x:'05/13/2024',y:[380.00,380.00,369.00,372.50]},{ x:'05/14/2024',y:[376.50,381.00,363.50,364.50]},{ x:'05/15/2024',y:[370.00,375.00,364.00,369.50]},{ x:'05/16/2024',y:[370.00,378.00,366.50,376.00]},{ x:'05/17/2024',y:[381.50,385.00,378.50,385.00]},{ x:'05/20/2024',y:[395.00,412.00,380.50,394.00]},{ x:'05/21/2024',y:[389.50,392.50,380.50,380.50]},{ x:'05/22/2024',y:[380.50,384.50,368.50,368.50]},{ x:'05/23/2024',y:[365.50,373.00,364.00,369.50]},{ x:'05/24/2024',y:[369.50,369.50,356.00,357.50]},{ x:'06/11/2024',y:[357.00,368.50,356.50,368.50]},{ x:'06/12/2024',y:[369.00,371.50,358.50,360.00]},{ x:'06/13/2024',y:[365.50,365.50,357.00,358.00]},{ x:'06/14/2024',y:[357.50,358.50,353.00,356.50]},{ x:'06/17/2024',y:[354.50,357.50,351.00,353.50]},{ x:'06/18/2024',y:[358.00,362.00,354.00,361.00]},{ x:'06/19/2024',y:[362.00,387.00,359.50,386.50]},{ x:'06/20/2024',y:[372.00,372.00,348.00,351.00]},{ x:'06/21/2024',y:[350.00,353.00,342.00,342.00]},{ x:'06/24/2024',y:[343.50,345.00,338.00,339.00]},{ x:'06/25/2024',y:[344.00,351.50,338.00,350.00]},{ x:'06/26/2024',y:[350.00,355.00,348.50,351.50]},{ x:'06/27/2024',y:[351.50,353.00,342.00,342.50]},{ x:'06/28/2024',y:[346.50,352.00,342.00,342.00]},{ x:'07/01/2024',y:[343.50,354.00,340.50,351.00]},{ x:'07/02/2024',y:[351.00,352.00,343.00,343.00]},{ x:'07/03/2024',y:[344.50,346.50,342.00,342.00]},{ x:'07/04/2024',y:[344.00,350.50,343.00,348.00]},{ x:'07/05/2024',y:[350.00,351.00,346.50,348.50]},{ x:'07/12/2024',y:[337.00,343.00,337.00,339.50]},{ x:'07/15/2024',y:[339.50,339.50,331.00,333.50]},{ x:'07/16/2024',y:[336.50,336.50,328.00,331.00]},{ x:'07/17/2024',y:[330.00,332.50,326.00,330.00]},{ x:'07/18/2024',y:[330.00,333.50,324.00,333.00]},{ x:'07/19/2024',y:[335.00,335.00,326.50,333.00]},{ x:'07/22/2024',y:[330.00,339.50,330.00,330.50]},{ x:'07/23/2024',y:[334.50,336.00,326.50,331.00]},{ x:'07/26/2024',y:[330.50,333.00,325.50,328.50]},{ x:'07/29/2024',y:[336.00,342.50,329.50,332.00]},{ x:'07/30/2024',y:[337.50,337.50,326.50,328.50]},{ x:'07/31/2024',y:[328.50,330.50,327.00,329.50]},{ x:'08/01/2024',y:[333.00,338.50,329.50,337.50]},{ x:'08/02/2024',y:[332.50,338.00,325.00,325.00]},{ x:'08/05/2024',y:[318.00,318.00,292.50,292.50]},{ x:'08/06/2024',y:[298.00,298.50,281.00,290.00]},{ x:'08/07/2024',y:[295.00,306.00,295.00,304.00]},{ x:'08/08/2024',y:[304.00,304.00,290.00,296.00]},{ x:'08/09/2024',y:[305.00,312.00,298.50,298.50]},{ x:'08/12/2024',y:[303.50,304.50,292.00,293.50]},{ x:'08/13/2024',y:[296.00,301.50,294.50,299.50]},{ x:'08/14/2024',y:[302.00,304.50,295.50,301.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4766 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());