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/19/2024',y:[408.00,412.00,400.50,402.50]},{ x:'03/20/2024',y:[404.50,408.00,393.50,395.00]},{ x:'03/21/2024',y:[403.00,406.50,398.00,405.50]},{ x:'03/22/2024',y:[409.50,415.00,405.00,405.00]},{ x:'03/25/2024',y:[407.50,415.00,405.00,405.00]},{ x:'03/26/2024',y:[409.50,414.00,394.00,394.00]},{ x:'03/27/2024',y:[396.50,402.00,391.50,392.00]},{ x:'03/28/2024',y:[395.00,395.50,386.50,388.00]},{ x:'03/29/2024',y:[390.50,404.50,390.50,401.50]},{ x:'04/01/2024',y:[401.00,413.00,397.50,408.00]},{ x:'04/02/2024',y:[412.00,415.50,404.00,408.00]},{ x:'04/03/2024',y:[405.50,416.00,403.00,412.00]},{ x:'04/08/2024',y:[416.00,416.00,400.50,402.00]},{ x:'04/09/2024',y:[402.50,408.00,394.00,395.00]},{ x:'04/10/2024',y:[397.00,401.00,393.50,398.50]},{ x:'04/11/2024',y:[397.50,402.00,389.00,395.00]},{ x:'04/12/2024',y:[397.50,398.00,388.00,388.00]},{ x:'04/15/2024',y:[386.00,386.00,373.50,376.50]},{ x:'04/16/2024',y:[371.50,390.00,365.00,384.00]},{ x:'04/17/2024',y:[383.50,388.00,378.50,383.00]},{ x:'04/18/2024',y:[379.00,387.50,376.00,383.00]},{ x:'04/19/2024',y:[379.00,386.00,345.50,360.50]},{ x:'04/22/2024',y:[359.50,363.50,345.00,345.00]},{ x:'04/23/2024',y:[352.00,356.50,347.00,354.00]},{ x:'04/24/2024',y:[360.00,365.50,356.50,365.50]},{ x:'04/25/2024',y:[360.50,361.50,354.00,354.00]},{ x:'04/26/2024',y:[359.00,378.50,359.00,371.00]},{ x:'04/29/2024',y:[379.00,380.00,371.00,373.00]},{ x:'04/30/2024',y:[372.00,380.00,370.00,380.00]},{ x:'05/02/2024',y:[381.00,382.00,373.00,373.50]},{ x:'05/03/2024',y:[378.00,383.00,373.00,373.50]},{ x:'05/06/2024',y:[382.00,394.00,376.50,380.50]},{ x:'05/07/2024',y:[382.00,383.50,361.00,366.50]},{ x:'05/08/2024',y:[368.50,369.00,362.50,366.00]},{ x:'05/09/2024',y:[366.50,366.50,349.50,349.50]},{ x:'05/10/2024',y:[349.00,351.50,338.00,342.50]},{ x:'05/13/2024',y:[343.00,348.00,340.00,346.50]},{ x:'05/14/2024',y:[347.00,359.00,345.50,354.00]},{ x:'05/15/2024',y:[361.50,362.00,351.00,351.00]},{ x:'05/16/2024',y:[355.50,357.00,349.50,354.00]},{ x:'05/17/2024',y:[354.50,356.00,347.00,347.00]},{ x:'05/20/2024',y:[350.00,358.00,342.50,352.00]},{ x:'05/21/2024',y:[352.00,353.00,344.00,344.50]},{ x:'05/22/2024',y:[347.00,350.00,344.00,346.50]},{ x:'05/23/2024',y:[348.50,349.00,338.50,338.50]},{ x:'05/24/2024',y:[337.50,344.50,330.00,338.00]},{ x:'06/11/2024',y:[357.50,357.50,342.00,344.50]},{ x:'06/12/2024',y:[347.00,351.00,343.50,343.50]},{ x:'06/13/2024',y:[347.50,353.00,343.00,351.50]},{ x:'06/14/2024',y:[356.50,362.50,355.50,358.00]},{ x:'06/17/2024',y:[358.50,361.50,354.50,354.50]},{ x:'06/18/2024',y:[358.00,361.00,353.50,358.50]},{ x:'06/19/2024',y:[361.00,391.50,358.00,382.50]},{ x:'06/20/2024',y:[382.50,399.00,380.00,385.50]},{ x:'06/21/2024',y:[386.00,393.00,380.50,386.00]},{ x:'06/24/2024',y:[385.00,390.00,380.00,383.50]},{ x:'06/25/2024',y:[383.00,395.00,369.00,391.50]},{ x:'06/26/2024',y:[392.50,393.00,384.00,385.00]},{ x:'06/27/2024',y:[382.50,391.00,381.50,381.50]},{ x:'06/28/2024',y:[382.00,392.50,382.00,386.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6531 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());