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:'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]},{ x:'02/15/2023',y:[388.00,393.50,382.00,392.00]},{ x:'02/16/2023',y:[393.00,394.50,388.50,391.50]},{ x:'02/17/2023',y:[386.50,393.50,386.50,387.50]},{ x:'02/20/2023',y:[388.00,391.50,386.50,389.00]},{ x:'02/21/2023',y:[395.00,403.00,393.50,394.50]},{ x:'02/22/2023',y:[391.00,393.50,386.00,391.00]},{ x:'02/23/2023',y:[399.50,403.00,392.50,393.00]},{ x:'02/24/2023',y:[395.50,397.50,388.00,389.00]},{ x:'03/01/2023',y:[385.50,394.50,384.00,394.50]},{ x:'03/02/2023',y:[396.00,400.00,393.00,399.50]},{ x:'03/03/2023',y:[405.00,409.00,400.00,402.50]},{ x:'03/06/2023',y:[408.00,436.00,407.50,420.50]},{ x:'03/07/2023',y:[427.00,431.00,416.00,416.00]},{ x:'03/08/2023',y:[408.50,412.50,402.00,403.50]},{ x:'03/09/2023',y:[408.00,408.00,400.50,400.50]},{ x:'03/10/2023',y:[396.00,398.50,386.00,389.00]},{ x:'03/13/2023',y:[386.00,389.00,377.50,387.50]},{ x:'03/14/2023',y:[386.50,390.00,383.00,387.50]},{ x:'03/15/2023',y:[389.50,401.50,389.50,392.00]},{ x:'03/16/2023',y:[391.50,393.50,383.00,383.00]},{ x:'03/17/2023',y:[389.50,393.00,386.00,393.00]},{ x:'03/20/2023',y:[393.00,394.00,390.00,392.00]},{ x:'03/21/2023',y:[395.50,399.00,394.00,395.50]},{ x:'03/22/2023',y:[399.00,402.00,395.00,395.50]},{ x:'03/23/2023',y:[395.00,404.50,393.50,403.00]},{ x:'03/24/2023',y:[411.00,415.00,395.00,395.00]},{ x:'03/27/2023',y:[398.00,398.00,388.00,388.00]},{ x:'03/28/2023',y:[389.00,391.50,383.50,385.00]},{ x:'03/29/2023',y:[385.00,391.00,385.00,391.00]},{ x:'03/30/2023',y:[388.50,396.00,388.50,394.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());