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/09/2024',y:[397.00,403.00,393.50,399.50]},{ x:'04/10/2024',y:[400.00,409.00,393.00,404.50]},{ x:'04/11/2024',y:[398.50,403.50,395.50,401.50]},{ x:'04/12/2024',y:[403.50,417.00,403.00,415.50]},{ x:'04/15/2024',y:[414.00,424.50,403.50,416.00]},{ x:'04/16/2024',y:[412.50,414.00,401.50,407.50]},{ x:'04/17/2024',y:[414.00,434.00,414.00,432.00]},{ x:'04/18/2024',y:[424.50,427.50,412.00,418.00]},{ x:'04/19/2024',y:[407.50,407.50,386.00,399.50]},{ x:'04/22/2024',y:[400.50,407.00,385.00,394.50]},{ x:'04/23/2024',y:[399.00,407.50,396.50,401.50]},{ x:'04/24/2024',y:[405.50,416.00,400.00,412.50]},{ x:'04/25/2024',y:[405.00,417.50,405.00,408.00]},{ x:'04/26/2024',y:[412.50,419.00,405.50,408.00]},{ x:'04/29/2024',y:[416.50,416.50,401.00,405.50]},{ x:'04/30/2024',y:[405.50,405.50,395.00,395.00]},{ x:'05/02/2024',y:[394.00,398.00,388.00,390.50]},{ x:'05/03/2024',y:[394.50,399.00,393.00,394.50]},{ x:'05/06/2024',y:[395.00,398.00,388.00,389.00]},{ x:'05/07/2024',y:[389.00,389.50,381.50,387.00]},{ x:'05/08/2024',y:[391.00,391.00,378.00,383.00]},{ x:'05/09/2024',y:[383.00,389.50,380.00,383.50]},{ x:'05/10/2024',y:[383.50,384.00,372.00,375.00]},{ x:'05/13/2024',y:[370.00,370.50,352.00,355.00]},{ x:'05/14/2024',y:[362.00,367.50,358.00,361.50]},{ x:'05/15/2024',y:[363.00,368.50,363.00,365.00]},{ x:'05/16/2024',y:[369.00,372.00,361.00,362.50]},{ x:'05/17/2024',y:[363.00,366.00,353.00,353.00]},{ x:'05/20/2024',y:[348.50,356.50,342.00,346.00]},{ x:'05/21/2024',y:[347.50,356.50,346.00,351.50]},{ x:'05/22/2024',y:[353.50,361.00,352.50,361.00]},{ x:'05/23/2024',y:[363.00,363.50,355.50,355.50]},{ x:'05/24/2024',y:[355.50,359.50,351.00,354.50]},{ x:'06/11/2024',y:[351.50,364.00,351.50,360.00]},{ x:'06/12/2024',y:[356.00,362.00,356.00,360.00]},{ x:'06/13/2024',y:[361.00,366.00,358.00,358.00]},{ x:'06/14/2024',y:[359.50,360.00,353.50,355.50]},{ x:'06/17/2024',y:[356.00,361.50,354.00,360.00]},{ x:'06/18/2024',y:[364.00,365.50,358.00,360.00]},{ x:'06/19/2024',y:[362.00,367.50,360.50,367.50]},{ x:'06/20/2024',y:[370.50,374.50,363.00,365.50]},{ x:'06/21/2024',y:[361.00,364.50,356.00,356.00]},{ x:'06/24/2024',y:[356.00,361.50,355.00,361.50]},{ x:'06/25/2024',y:[363.00,363.00,355.00,357.50]},{ x:'06/26/2024',y:[359.50,366.00,359.00,363.50]},{ x:'06/27/2024',y:[364.00,366.00,362.50,364.00]},{ x:'06/28/2024',y:[364.50,366.00,360.50,366.00]},{ x:'07/01/2024',y:[367.50,375.00,364.50,373.50]},{ x:'07/02/2024',y:[375.00,389.50,363.00,366.00]},{ x:'07/03/2024',y:[368.50,381.50,366.50,380.50]},{ x:'07/04/2024',y:[383.00,392.50,376.00,388.50]},{ x:'07/05/2024',y:[393.00,393.00,383.00,386.00]},{ x:'07/12/2024',y:[349.00,352.00,330.00,332.50]},{ x:'07/15/2024',y:[335.00,335.00,326.50,331.50]},{ x:'07/16/2024',y:[330.00,336.00,330.00,330.50]},{ x:'07/17/2024',y:[332.00,333.00,327.00,328.50]},{ x:'07/18/2024',y:[326.50,328.00,318.50,326.00]},{ x:'07/19/2024',y:[326.00,327.50,321.00,321.50]},{ x:'07/22/2024',y:[319.50,327.50,313.00,321.00]},{ x:'07/23/2024',y:[324.50,333.00,324.50,330.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2404 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());