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:'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]},{ x:'03/31/2023',y:[395.00,395.50,384.00,385.50]},{ x:'04/06/2023',y:[379.00,386.00,377.50,386.00]},{ x:'04/07/2023',y:[388.00,388.00,381.00,381.50]},{ x:'04/10/2023',y:[382.00,384.50,380.50,381.50]},{ x:'04/11/2023',y:[384.50,386.50,383.00,383.00]},{ x:'04/12/2023',y:[387.50,395.50,383.50,392.50]},{ x:'04/13/2023',y:[393.50,397.50,390.00,390.00]},{ x:'04/14/2023',y:[392.00,393.50,387.50,389.00]},{ x:'04/17/2023',y:[387.50,397.00,387.00,393.00]},{ x:'04/18/2023',y:[395.50,396.50,390.00,390.00]},{ x:'04/19/2023',y:[392.50,394.00,387.50,387.50]},{ x:'04/20/2023',y:[386.50,390.00,382.00,382.00]},{ x:'04/21/2023',y:[383.00,386.00,371.00,371.00]},{ x:'04/24/2023',y:[364.00,374.00,364.00,371.00]},{ x:'04/25/2023',y:[374.00,374.00,355.50,356.00]},{ x:'04/26/2023',y:[355.00,362.00,354.00,361.50]} ] }], 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());