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:'11/10/2022',y:[327.50,334.00,323.50,330.00]},{ x:'11/11/2022',y:[356.00,357.50,336.50,341.00]},{ x:'11/14/2022',y:[341.00,358.00,340.50,353.00]},{ x:'11/15/2022',y:[356.00,371.50,352.50,370.50]},{ x:'11/16/2022',y:[373.00,375.00,363.50,371.00]},{ x:'11/17/2022',y:[371.00,397.00,370.50,392.50]},{ x:'11/18/2022',y:[390.50,396.50,382.50,387.00]},{ x:'11/21/2022',y:[390.00,395.50,388.00,388.00]},{ x:'11/22/2022',y:[390.00,395.00,383.50,395.00]},{ x:'11/23/2022',y:[402.00,414.00,397.50,398.50]},{ x:'11/24/2022',y:[405.00,407.00,398.50,400.50]},{ x:'11/25/2022',y:[401.00,403.00,390.50,391.50]},{ x:'11/28/2022',y:[387.00,398.00,385.50,395.50]},{ x:'11/29/2022',y:[392.50,394.50,388.00,394.50]},{ x:'11/30/2022',y:[395.00,403.50,391.00,393.50]},{ x:'12/01/2022',y:[400.00,406.00,398.50,400.50]},{ x:'12/02/2022',y:[402.50,405.00,399.50,403.50]},{ x:'12/05/2022',y:[406.50,410.00,402.00,402.00]},{ x:'12/06/2022',y:[400.50,405.00,393.50,394.50]},{ x:'12/07/2022',y:[388.00,393.50,381.50,383.00]},{ x:'12/08/2022',y:[380.50,382.50,375.00,375.00]},{ x:'12/09/2022',y:[379.50,382.00,366.00,366.50]},{ x:'12/12/2022',y:[363.00,376.50,363.00,374.00]},{ x:'12/13/2022',y:[375.00,378.00,371.00,371.50]},{ x:'12/14/2022',y:[376.00,385.00,373.50,383.50]},{ x:'12/15/2022',y:[380.00,387.00,380.00,384.50]},{ x:'12/16/2022',y:[376.00,378.50,371.50,372.00]},{ x:'12/19/2022',y:[342.50,376.00,342.50,376.00]},{ x:'12/20/2022',y:[368.50,378.00,365.50,367.00]},{ x:'12/21/2022',y:[369.50,373.00,361.00,366.00]},{ x:'12/22/2022',y:[371.00,373.50,366.00,366.50]},{ x:'12/23/2022',y:[364.50,366.00,357.00,364.00]},{ x:'12/26/2022',y:[364.00,366.50,361.00,363.50]},{ x:'12/27/2022',y:[363.50,372.50,363.50,368.50]},{ x:'12/28/2022',y:[361.00,361.50,346.00,346.00]},{ x:'12/29/2022',y:[340.00,346.00,332.00,343.50]},{ x:'12/30/2022',y:[346.00,350.50,335.00,335.50]},{ x:'01/03/2023',y:[334.50,349.00,333.00,349.00]},{ x:'01/04/2023',y:[346.00,368.00,345.00,360.00]},{ x:'01/05/2023',y:[362.00,369.00,362.00,364.50]},{ x:'01/06/2023',y:[350.00,354.50,343.00,350.50]},{ x:'01/09/2023',y:[353.50,362.00,350.00,360.50]},{ x:'01/10/2023',y:[356.00,362.00,351.00,352.50]},{ x:'01/11/2023',y:[355.00,362.50,353.50,354.50]},{ x:'01/12/2023',y:[356.00,358.50,349.00,349.50]},{ x:'01/13/2023',y:[344.00,346.00,335.00,342.50]},{ x:'01/16/2023',y:[340.00,350.00,340.00,348.50]},{ x:'01/17/2023',y:[346.00,348.50,343.00,345.00]},{ x:'01/30/2023',y:[355.00,360.00,353.50,360.00]},{ x:'01/31/2023',y:[359.00,368.00,359.00,365.50]},{ x:'02/01/2023',y:[368.00,375.00,365.00,374.00]},{ x:'02/02/2023',y:[380.00,380.00,372.50,380.00]},{ x:'02/03/2023',y:[379.50,382.00,373.50,378.00]},{ x:'02/06/2023',y:[372.50,376.00,369.00,373.50]},{ x:'02/07/2023',y:[374.00,378.00,373.00,377.00]},{ x:'02/08/2023',y:[384.50,386.00,381.00,381.00]},{ x:'02/09/2023',y:[379.00,379.00,374.00,374.00]},{ x:'02/10/2023',y:[374.00,380.00,372.50,372.50]},{ x:'02/13/2023',y:[372.50,374.50,368.50,370.50]},{ x:'02/14/2023',y:[375.00,391.50,375.00,388.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3406 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());