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:'10/18/2023',y:[360.50,361.00,346.50,350.50]},{ x:'10/19/2023',y:[348.00,348.00,338.00,344.50]},{ x:'10/20/2023',y:[339.50,342.00,331.00,337.00]},{ x:'10/23/2023',y:[333.50,338.50,331.50,334.00]},{ x:'10/24/2023',y:[335.00,341.00,335.00,341.00]},{ x:'10/25/2023',y:[345.00,348.50,340.50,342.50]},{ x:'10/26/2023',y:[336.00,342.50,334.50,339.00]},{ x:'10/27/2023',y:[343.00,356.00,341.50,346.50]},{ x:'10/31/2023',y:[344.00,345.50,337.50,338.00]},{ x:'11/01/2023',y:[340.00,344.00,337.00,343.00]},{ x:'11/02/2023',y:[346.50,351.50,345.00,351.00]},{ x:'11/03/2023',y:[353.00,355.00,349.50,355.00]},{ x:'11/06/2023',y:[358.00,363.50,357.00,360.50]},{ x:'11/07/2023',y:[359.00,359.50,352.50,353.50]},{ x:'11/08/2023',y:[358.00,363.00,355.50,357.50]},{ x:'11/09/2023',y:[355.50,358.50,352.00,357.00]},{ x:'11/10/2023',y:[353.50,357.50,350.50,355.50]},{ x:'11/13/2023',y:[360.50,360.50,353.00,360.00]},{ x:'11/14/2023',y:[386.00,396.00,383.50,396.00]},{ x:'11/15/2023',y:[403.00,405.00,390.00,391.50]},{ x:'11/16/2023',y:[390.00,392.00,376.50,380.50]},{ x:'11/17/2023',y:[385.00,398.00,381.00,392.50]},{ x:'11/20/2023',y:[392.00,392.00,384.00,391.00]},{ x:'11/21/2023',y:[394.00,396.00,387.00,389.00]},{ x:'11/22/2023',y:[390.00,391.00,381.00,384.50]},{ x:'11/23/2023',y:[386.00,386.00,378.00,379.50]},{ x:'11/24/2023',y:[381.50,383.50,376.00,383.50]},{ x:'11/27/2023',y:[383.50,384.00,373.00,377.00]},{ x:'11/28/2023',y:[379.00,385.50,377.50,385.50]},{ x:'11/29/2023',y:[387.00,390.50,383.50,390.00]},{ x:'11/30/2023',y:[388.00,393.50,382.00,393.50]},{ x:'12/01/2023',y:[390.00,391.50,386.50,388.00]},{ x:'12/04/2023',y:[391.50,391.50,385.50,387.00]},{ x:'12/05/2023',y:[388.00,391.00,382.50,390.50]},{ x:'12/06/2023',y:[390.50,395.00,388.50,393.50]},{ x:'12/07/2023',y:[391.00,397.00,390.50,393.50]},{ x:'12/08/2023',y:[398.00,403.50,395.50,398.50]},{ x:'12/11/2023',y:[400.00,402.00,392.00,396.50]},{ x:'12/12/2023',y:[396.00,399.00,392.00,393.00]},{ x:'12/18/2023',y:[409.00,434.00,403.50,428.50]},{ x:'12/19/2023',y:[427.00,436.00,422.00,424.50]},{ x:'01/10/2024',y:[455.00,464.00,451.50,461.00]},{ x:'01/11/2024',y:[462.00,463.00,455.00,461.00]},{ x:'01/12/2024',y:[459.00,459.00,445.00,448.50]},{ x:'01/15/2024',y:[452.00,455.00,446.00,447.00]},{ x:'01/16/2024',y:[445.50,445.50,439.00,440.50]},{ x:'01/17/2024',y:[441.00,444.50,436.50,439.00]},{ x:'01/18/2024',y:[439.00,452.50,439.00,445.00]},{ x:'01/19/2024',y:[448.00,455.00,445.50,455.00]},{ x:'01/22/2024',y:[456.00,465.00,455.00,459.50]},{ x:'01/23/2024',y:[460.00,462.50,454.50,456.50]},{ x:'01/24/2024',y:[457.00,461.50,454.00,455.00]},{ x:'01/25/2024',y:[457.00,460.50,454.50,458.00]},{ x:'01/26/2024',y:[453.00,453.50,436.50,439.00]},{ x:'01/29/2024',y:[436.00,445.00,436.00,444.00]},{ x:'01/30/2024',y:[443.50,451.00,439.50,447.50]},{ x:'01/31/2024',y:[446.00,453.00,441.00,445.50]},{ x:'02/01/2024',y:[447.00,448.00,442.00,447.00]},{ x:'02/02/2024',y:[451.00,458.00,450.00,455.00]},{ x:'02/05/2024',y:[450.50,455.00,448.50,452.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2357 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());