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/11/2023',y:[432.50,434.00,423.50,432.00]},{ x:'04/12/2023',y:[434.00,439.00,434.00,437.00]},{ x:'04/13/2023',y:[438.00,443.50,438.00,440.50]},{ x:'04/14/2023',y:[430.00,430.50,421.50,421.50]},{ x:'04/17/2023',y:[426.00,428.50,420.00,427.00]},{ x:'04/18/2023',y:[426.00,427.00,420.00,421.00]},{ x:'04/19/2023',y:[422.50,424.00,418.00,418.50]},{ x:'04/20/2023',y:[418.50,419.00,400.50,403.00]},{ x:'04/21/2023',y:[402.50,406.00,386.50,387.50]},{ x:'04/24/2023',y:[387.50,393.00,380.50,380.50]},{ x:'04/25/2023',y:[380.00,386.00,364.00,369.00]},{ x:'04/26/2023',y:[368.00,368.00,353.00,354.50]},{ x:'04/27/2023',y:[358.50,373.50,352.50,362.50]},{ x:'04/28/2023',y:[360.50,372.50,357.00,370.50]},{ x:'05/02/2023',y:[372.00,379.50,372.00,376.00]},{ x:'05/03/2023',y:[377.50,381.00,372.50,379.50]},{ x:'05/04/2023',y:[381.50,391.00,378.00,386.50]},{ x:'05/05/2023',y:[388.00,392.00,382.00,385.00]},{ x:'05/08/2023',y:[371.00,377.00,362.50,363.50]},{ x:'05/09/2023',y:[367.00,373.00,363.50,364.00]},{ x:'05/10/2023',y:[365.00,368.00,361.50,365.00]},{ x:'05/11/2023',y:[361.00,362.50,349.00,349.00]},{ x:'05/12/2023',y:[350.00,355.00,340.50,344.50]},{ x:'05/15/2023',y:[344.50,351.00,333.00,335.00]},{ x:'05/16/2023',y:[339.50,341.50,331.50,334.00]},{ x:'05/17/2023',y:[333.50,338.50,331.00,331.50]},{ x:'05/18/2023',y:[334.00,335.00,328.00,328.50]},{ x:'05/19/2023',y:[330.00,330.00,315.00,317.00]},{ x:'05/22/2023',y:[325.50,348.50,325.50,348.50]},{ x:'05/23/2023',y:[383.00,383.00,353.00,354.50]},{ x:'05/24/2023',y:[356.00,356.00,339.00,340.50]},{ x:'05/25/2023',y:[360.00,366.00,343.50,344.50]},{ x:'05/26/2023',y:[344.50,344.50,333.00,337.50]},{ x:'05/29/2023',y:[336.00,349.00,335.00,345.50]},{ x:'05/30/2023',y:[345.50,347.50,339.00,339.50]},{ x:'05/31/2023',y:[343.00,350.00,340.50,350.00]},{ x:'06/01/2023',y:[350.00,352.50,345.50,345.50]},{ x:'06/02/2023',y:[349.00,349.50,344.00,345.00]},{ x:'06/05/2023',y:[361.00,365.00,345.50,346.50]},{ x:'06/06/2023',y:[356.00,363.00,347.00,349.50]},{ x:'06/07/2023',y:[350.00,350.50,344.00,345.00]},{ x:'06/08/2023',y:[345.00,348.50,337.00,337.50]},{ x:'06/09/2023',y:[337.50,339.00,333.00,336.50]},{ x:'06/12/2023',y:[337.00,337.50,332.50,334.00]},{ x:'06/13/2023',y:[335.00,346.00,333.00,345.00]},{ x:'06/14/2023',y:[348.00,351.50,342.00,343.50]},{ x:'06/15/2023',y:[344.50,346.50,336.50,337.00]},{ x:'06/16/2023',y:[337.00,340.00,334.00,337.00]},{ x:'06/19/2023',y:[337.00,339.00,334.00,334.00]},{ x:'06/20/2023',y:[334.00,337.50,333.00,334.00]},{ x:'06/21/2023',y:[334.00,334.50,322.00,325.00]},{ x:'06/26/2023',y:[321.00,333.00,318.50,328.50]},{ x:'06/27/2023',y:[326.00,334.50,326.00,329.00]},{ x:'06/28/2023',y:[332.00,336.00,329.00,335.00]},{ x:'06/29/2023',y:[338.00,346.50,337.00,343.00]},{ x:'06/30/2023',y:[345.50,348.50,339.00,339.50]},{ x:'07/03/2023',y:[339.50,339.50,333.00,336.00]},{ x:'07/04/2023',y:[335.00,341.00,335.00,335.50]},{ x:'07/05/2023',y:[336.00,347.00,336.00,346.00]},{ x:'07/06/2023',y:[366.00,373.00,356.00,357.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6446 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());