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:'03/01/2023',y:[502.00,504.00,499.00,500.00]},{ x:'03/02/2023',y:[502.00,506.00,499.50,504.00]},{ x:'03/03/2023',y:[512.00,519.00,499.00,499.00]},{ x:'03/06/2023',y:[500.00,504.00,493.50,493.50]},{ x:'03/07/2023',y:[496.00,497.50,488.00,488.00]},{ x:'03/08/2023',y:[488.00,490.50,482.50,483.00]},{ x:'03/09/2023',y:[483.00,484.00,480.00,480.00]},{ x:'03/10/2023',y:[480.00,485.00,469.50,470.00]},{ x:'03/13/2023',y:[467.00,467.00,451.50,452.00]},{ x:'03/14/2023',y:[449.00,458.50,435.00,435.50]},{ x:'03/15/2023',y:[444.50,453.50,441.50,447.00]},{ x:'03/16/2023',y:[451.00,451.00,440.00,442.00]},{ x:'03/17/2023',y:[445.50,451.00,444.00,451.00]},{ x:'03/20/2023',y:[454.00,455.50,448.50,451.00]},{ x:'03/21/2023',y:[454.50,454.50,442.00,442.00]},{ x:'03/22/2023',y:[443.50,446.50,440.00,440.00]},{ x:'03/23/2023',y:[441.00,442.00,434.00,434.00]},{ x:'03/24/2023',y:[435.00,444.00,429.50,439.50]},{ x:'03/27/2023',y:[443.00,447.50,438.50,442.00]},{ x:'03/28/2023',y:[450.00,457.00,439.00,439.50]},{ x:'03/29/2023',y:[443.00,443.00,434.00,434.00]},{ x:'03/30/2023',y:[434.00,437.00,424.00,424.50]},{ x:'03/31/2023',y:[425.50,429.50,415.50,428.00]},{ x:'04/06/2023',y:[432.50,446.50,429.00,432.00]},{ x:'04/07/2023',y:[431.00,435.00,429.50,431.50]},{ x:'04/10/2023',y:[435.50,438.00,430.50,430.50]},{ 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]} ] }], 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());