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/22/2024',y:[343.00,349.50,339.00,347.00]},{ x:'01/23/2024',y:[347.00,353.00,347.00,352.00]},{ x:'01/24/2024',y:[351.00,360.00,349.00,355.00]},{ x:'01/25/2024',y:[354.00,359.00,352.50,355.00]},{ x:'01/26/2024',y:[350.50,353.00,345.00,347.50]},{ x:'01/29/2024',y:[347.50,355.00,347.50,355.00]},{ x:'01/30/2024',y:[353.00,359.00,353.00,357.50]},{ x:'01/31/2024',y:[357.50,364.50,357.50,360.00]},{ x:'02/01/2024',y:[360.00,364.00,360.00,362.00]},{ x:'02/02/2024',y:[362.50,367.00,361.00,367.00]},{ x:'02/05/2024',y:[365.00,366.00,359.00,364.00]},{ x:'02/15/2024',y:[367.00,372.00,359.00,364.50]},{ x:'02/16/2024',y:[366.00,367.00,361.50,363.00]},{ x:'02/19/2024',y:[363.50,369.00,361.50,369.00]},{ x:'02/20/2024',y:[371.00,382.00,370.00,378.50]},{ x:'02/21/2024',y:[373.50,377.00,368.00,374.50]},{ x:'02/22/2024',y:[375.00,380.50,374.00,376.00]},{ x:'02/23/2024',y:[375.50,378.50,373.00,373.50]},{ x:'02/26/2024',y:[372.00,377.50,371.50,373.00]},{ x:'02/27/2024',y:[375.00,380.00,370.50,373.00]},{ x:'02/29/2024',y:[373.00,374.50,366.50,371.50]},{ x:'03/01/2024',y:[372.50,378.50,371.50,373.50]},{ x:'03/04/2024',y:[373.50,375.00,370.00,370.50]},{ x:'03/05/2024',y:[371.00,374.50,369.00,369.00]},{ x:'03/06/2024',y:[369.00,369.00,363.00,363.00]},{ x:'03/07/2024',y:[363.50,367.50,362.50,363.50]},{ x:'03/08/2024',y:[363.50,368.50,363.00,365.50]},{ x:'03/11/2024',y:[365.00,370.50,365.00,365.50]},{ x:'03/12/2024',y:[366.00,371.00,364.50,371.00]},{ x:'03/13/2024',y:[370.50,377.00,367.50,375.00]},{ x:'03/14/2024',y:[379.50,403.00,379.50,397.50]},{ x:'03/15/2024',y:[403.00,406.00,393.00,401.00]},{ x:'03/18/2024',y:[397.00,400.00,386.00,395.00]},{ x:'03/19/2024',y:[394.00,403.00,393.50,402.50]},{ x:'03/20/2024',y:[402.00,407.50,402.00,405.00]},{ x:'03/21/2024',y:[407.00,412.00,404.00,407.00]},{ x:'03/22/2024',y:[407.00,407.00,394.50,400.00]},{ x:'03/25/2024',y:[399.50,404.00,397.50,400.00]},{ x:'03/26/2024',y:[399.00,403.00,398.50,400.00]},{ x:'03/27/2024',y:[401.00,401.00,389.00,397.00]},{ x:'03/28/2024',y:[370.00,372.00,360.00,365.50]},{ x:'03/29/2024',y:[364.00,372.50,363.00,371.50]},{ x:'04/01/2024',y:[371.00,377.50,371.00,374.50]},{ x:'04/02/2024',y:[374.50,379.00,374.50,378.50]},{ x:'04/03/2024',y:[378.50,380.00,374.50,374.50]},{ x:'04/08/2024',y:[375.00,382.00,368.50,368.50]},{ x:'04/09/2024',y:[371.50,378.00,366.00,376.00]},{ x:'04/10/2024',y:[377.00,389.50,376.00,387.50]},{ x:'04/11/2024',y:[387.00,387.00,382.00,385.00]},{ x:'04/12/2024',y:[385.00,395.00,384.50,384.50]},{ x:'04/15/2024',y:[380.00,383.00,377.00,379.50]},{ x:'04/16/2024',y:[375.50,375.50,366.50,368.00]},{ x:'04/17/2024',y:[370.00,381.00,370.00,372.50]},{ x:'04/18/2024',y:[373.00,380.50,373.00,376.00]},{ x:'04/19/2024',y:[372.00,381.50,367.00,380.50]},{ x:'04/22/2024',y:[382.50,394.00,380.50,387.00]},{ x:'04/23/2024',y:[389.50,395.50,387.50,388.00]},{ x:'04/24/2024',y:[392.00,392.50,387.00,392.00]},{ x:'04/25/2024',y:[391.50,401.00,389.00,389.50]},{ x:'04/26/2024',y:[389.50,395.50,387.50,394.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1477 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());