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:'02/15/2023',y:[344.00,352.50,341.50,346.50]},{ x:'02/16/2023',y:[352.00,360.00,350.00,356.00]},{ x:'02/17/2023',y:[360.50,366.00,348.00,353.50]},{ x:'02/20/2023',y:[358.00,369.00,356.00,368.00]},{ x:'02/21/2023',y:[369.00,404.50,367.00,404.50]},{ x:'02/22/2023',y:[409.50,426.00,364.50,371.00]},{ x:'02/23/2023',y:[378.00,404.50,375.00,390.50]},{ x:'02/24/2023',y:[395.00,402.50,381.00,387.00]},{ x:'03/01/2023',y:[389.50,392.00,374.00,385.00]},{ x:'03/02/2023',y:[389.00,399.00,382.00,395.50]},{ x:'03/03/2023',y:[399.00,406.50,390.00,392.50]},{ x:'03/06/2023',y:[397.00,414.00,393.50,407.50]},{ x:'03/07/2023',y:[409.00,419.50,396.50,398.50]},{ x:'03/08/2023',y:[399.00,401.50,392.00,393.50]},{ x:'03/09/2023',y:[397.50,398.50,391.00,391.50]},{ x:'03/10/2023',y:[380.50,384.50,372.00,384.50]},{ x:'03/13/2023',y:[379.00,380.50,368.00,380.00]},{ x:'03/14/2023',y:[378.00,378.00,357.00,357.50]},{ x:'03/15/2023',y:[367.00,374.00,362.50,366.50]},{ x:'03/16/2023',y:[363.00,367.50,355.00,364.50]},{ x:'03/17/2023',y:[371.50,384.00,370.50,380.50]},{ x:'03/20/2023',y:[382.50,390.00,376.00,386.50]},{ x:'03/21/2023',y:[394.00,401.50,386.00,391.00]},{ x:'03/22/2023',y:[397.50,430.00,395.00,430.00]},{ x:'03/23/2023',y:[440.00,473.00,439.50,473.00]},{ x:'03/24/2023',y:[520.00,520.00,475.50,480.00]},{ x:'03/27/2023',y:[484.00,528.00,484.00,528.00]},{ x:'03/28/2023',y:[569.00,569.00,527.00,548.00]},{ x:'03/29/2023',y:[545.00,560.00,507.00,512.00]},{ x:'03/30/2023',y:[524.00,526.00,512.00,526.00]},{ x:'03/31/2023',y:[530.00,530.00,507.00,515.00]},{ x:'04/06/2023',y:[520.00,526.00,508.00,526.00]},{ x:'04/07/2023',y:[526.00,526.00,508.00,513.00]},{ x:'04/10/2023',y:[517.00,525.00,513.00,525.00]},{ x:'04/11/2023',y:[529.00,529.00,521.00,525.00]},{ x:'04/12/2023',y:[528.00,530.00,517.00,521.00]},{ x:'04/13/2023',y:[526.00,526.00,518.00,526.00]},{ x:'04/14/2023',y:[527.00,536.00,523.00,536.00]},{ x:'04/17/2023',y:[536.00,558.00,532.00,558.00]},{ x:'04/18/2023',y:[570.00,575.00,503.00,503.00]},{ x:'04/19/2023',y:[475.00,481.50,453.00,453.00]},{ x:'04/20/2023',y:[454.00,464.50,443.50,447.50]},{ x:'04/21/2023',y:[464.00,464.00,423.00,437.00]},{ x:'04/24/2023',y:[432.50,462.50,431.50,460.50]},{ x:'04/25/2023',y:[461.00,472.50,438.00,450.00]},{ x:'04/26/2023',y:[454.50,461.50,440.50,460.00]},{ x:'04/27/2023',y:[458.00,473.50,452.50,459.00]},{ x:'04/28/2023',y:[468.00,483.00,463.00,472.50]},{ x:'05/02/2023',y:[478.00,482.00,470.50,474.50]},{ x:'05/03/2023',y:[479.00,521.00,478.00,521.00]},{ x:'05/04/2023',y:[530.00,536.00,485.50,492.00]},{ x:'05/05/2023',y:[494.50,503.00,482.00,499.00]},{ x:'05/08/2023',y:[502.00,543.00,502.00,520.00]},{ x:'05/09/2023',y:[531.00,539.00,508.00,513.00]},{ x:'05/10/2023',y:[520.00,524.00,513.00,513.00]},{ x:'05/11/2023',y:[520.00,530.00,487.00,495.00]},{ x:'05/12/2023',y:[499.00,515.00,481.00,513.00]},{ x:'05/15/2023',y:[510.00,519.00,497.00,503.00]},{ x:'05/16/2023',y:[509.00,527.00,504.00,505.00]},{ x:'05/17/2023',y:[510.00,530.00,510.00,528.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8478 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());