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/11/2022',y:[393.50,396.50,382.00,384.00]},{ x:'11/14/2022',y:[388.50,393.00,379.00,379.50]},{ x:'11/15/2022',y:[379.50,383.50,371.00,380.00]},{ x:'11/16/2022',y:[382.50,387.00,378.00,385.00]},{ x:'11/17/2022',y:[388.00,394.00,385.50,391.50]},{ x:'11/18/2022',y:[394.00,397.00,379.50,380.50]},{ x:'11/21/2022',y:[380.50,388.00,380.00,383.00]},{ x:'11/22/2022',y:[381.00,387.00,375.00,382.00]},{ x:'11/23/2022',y:[386.50,388.00,377.00,378.50]},{ x:'11/24/2022',y:[381.00,385.00,377.00,384.00]},{ x:'11/25/2022',y:[384.00,386.00,376.00,376.00]},{ x:'11/28/2022',y:[377.00,383.50,375.00,382.50]},{ x:'11/29/2022',y:[384.50,385.50,376.00,376.00]},{ x:'11/30/2022',y:[376.50,383.00,375.00,379.00]},{ x:'12/01/2022',y:[385.00,408.00,385.00,397.00]},{ x:'12/02/2022',y:[406.50,414.50,395.50,410.00]},{ x:'12/05/2022',y:[410.00,416.00,408.00,411.00]},{ x:'12/06/2022',y:[407.00,410.00,388.50,389.00]},{ x:'12/07/2022',y:[390.00,391.50,379.00,389.00]},{ x:'12/08/2022',y:[391.50,397.50,388.50,397.50]},{ x:'12/09/2022',y:[400.00,403.00,386.50,387.50]},{ x:'12/12/2022',y:[387.00,393.00,380.00,388.00]},{ x:'12/13/2022',y:[393.50,393.50,384.00,384.00]},{ x:'12/14/2022',y:[388.50,400.00,388.50,396.50]},{ x:'12/15/2022',y:[396.50,408.50,394.00,408.50]},{ x:'12/16/2022',y:[400.00,404.00,394.50,398.50]},{ x:'12/19/2022',y:[398.00,401.00,389.50,395.00]},{ x:'12/20/2022',y:[395.00,401.50,380.00,380.00]},{ x:'12/21/2022',y:[383.00,388.00,370.50,376.50]},{ x:'12/22/2022',y:[380.00,384.00,368.00,372.50]},{ x:'12/23/2022',y:[369.50,370.00,357.00,369.50]},{ x:'12/26/2022',y:[365.00,367.50,359.00,365.50]},{ x:'12/27/2022',y:[365.50,389.00,365.50,386.50]},{ x:'12/28/2022',y:[382.00,393.00,377.00,381.50]},{ x:'12/29/2022',y:[377.00,388.00,369.00,382.00]},{ x:'12/30/2022',y:[388.00,394.00,376.50,376.50]},{ x:'01/03/2023',y:[380.00,385.00,376.00,376.50]},{ x:'01/04/2023',y:[375.50,380.50,373.50,374.00]},{ x:'01/05/2023',y:[378.00,380.00,365.00,366.00]},{ x:'01/06/2023',y:[363.00,369.00,360.50,366.50]},{ x:'01/09/2023',y:[374.00,388.00,372.00,387.50]},{ x:'01/10/2023',y:[387.00,392.00,382.50,383.50]},{ x:'01/11/2023',y:[385.00,388.00,378.50,381.00]},{ x:'01/12/2023',y:[387.00,387.00,377.00,377.00]},{ x:'01/13/2023',y:[381.00,387.00,379.50,380.00]},{ x:'01/16/2023',y:[380.00,387.00,379.00,385.50]},{ x:'01/17/2023',y:[385.50,388.00,383.00,386.50]},{ x:'01/30/2023',y:[393.00,399.00,377.00,381.50]},{ x:'01/31/2023',y:[381.50,383.50,372.50,375.00]},{ x:'02/01/2023',y:[379.00,389.50,378.50,383.50]},{ x:'02/02/2023',y:[390.00,412.50,388.00,407.50]},{ x:'02/03/2023',y:[407.50,417.00,405.00,409.50]},{ x:'02/06/2023',y:[407.50,413.00,403.50,410.50]},{ x:'02/07/2023',y:[413.00,419.00,410.00,410.50]},{ x:'02/08/2023',y:[411.00,412.50,401.00,401.50]},{ x:'02/09/2023',y:[402.00,404.00,396.50,398.50]},{ x:'02/10/2023',y:[402.00,403.00,392.50,393.50]},{ x:'02/13/2023',y:[392.50,408.00,391.50,406.50]},{ x:'02/14/2023',y:[406.50,416.50,404.00,413.00]},{ x:'02/15/2023',y:[408.00,413.00,372.50,377.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3653 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());