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/23/2024',y:[558.00,563.00,556.00,560.00]},{ x:'01/24/2024',y:[560.00,561.00,553.00,553.00]},{ x:'01/25/2024',y:[557.00,559.00,554.00,556.00]},{ x:'01/26/2024',y:[556.00,559.00,551.00,552.00]},{ x:'01/29/2024',y:[553.00,560.00,552.00,558.00]},{ x:'01/30/2024',y:[559.00,560.00,549.00,550.00]},{ x:'01/31/2024',y:[550.00,553.00,544.00,552.00]},{ x:'02/01/2024',y:[554.00,556.00,548.00,552.00]},{ x:'02/02/2024',y:[553.00,558.00,553.00,555.00]},{ x:'02/05/2024',y:[553.00,553.00,545.00,550.00]},{ x:'02/15/2024',y:[560.00,564.00,545.00,551.00]},{ x:'02/16/2024',y:[550.00,551.00,538.00,543.00]},{ x:'02/19/2024',y:[546.00,551.00,540.00,551.00]},{ x:'02/20/2024',y:[551.00,555.00,549.00,554.00]},{ x:'02/21/2024',y:[556.00,558.00,554.00,556.00]},{ x:'02/22/2024',y:[559.00,559.00,552.00,552.00]},{ x:'02/23/2024',y:[554.00,554.00,541.00,541.00]},{ x:'02/26/2024',y:[541.00,549.00,541.00,547.00]},{ x:'02/27/2024',y:[545.00,548.00,538.00,539.00]},{ x:'02/29/2024',y:[548.00,558.00,547.00,558.00]},{ x:'03/01/2024',y:[569.00,575.00,561.00,563.00]},{ x:'03/04/2024',y:[565.00,566.00,555.00,556.00]},{ x:'03/05/2024',y:[557.00,558.00,547.00,549.00]},{ x:'03/06/2024',y:[549.00,559.00,549.00,556.00]},{ x:'03/07/2024',y:[557.00,561.00,553.00,556.00]},{ x:'03/08/2024',y:[559.00,571.00,556.00,565.00]},{ x:'03/11/2024',y:[566.00,567.00,561.00,566.00]},{ x:'03/12/2024',y:[567.00,580.00,566.00,578.00]},{ x:'03/13/2024',y:[585.00,588.00,578.00,583.00]},{ x:'03/14/2024',y:[584.00,590.00,574.00,584.00]},{ x:'03/15/2024',y:[581.00,583.00,576.00,583.00]},{ x:'03/18/2024',y:[586.00,589.00,583.00,586.00]},{ x:'03/19/2024',y:[583.00,583.00,575.00,578.00]},{ x:'03/20/2024',y:[581.00,584.00,576.00,579.00]},{ x:'03/21/2024',y:[583.00,588.00,571.00,585.00]},{ x:'03/22/2024',y:[580.00,588.00,575.00,588.00]},{ x:'03/25/2024',y:[590.00,598.00,580.00,582.00]},{ x:'03/26/2024',y:[585.00,588.00,571.00,577.00]},{ x:'03/27/2024',y:[578.00,581.00,573.00,581.00]},{ x:'03/28/2024',y:[583.00,595.00,582.00,594.00]},{ x:'03/29/2024',y:[598.00,600.00,591.00,591.00]},{ x:'04/01/2024',y:[597.00,628.00,594.00,622.00]},{ x:'04/02/2024',y:[619.00,622.00,612.00,616.00]},{ x:'04/03/2024',y:[614.00,625.00,613.00,614.00]},{ x:'04/08/2024',y:[630.00,631.00,615.00,617.00]},{ x:'04/09/2024',y:[620.00,625.00,614.00,615.00]},{ x:'04/10/2024',y:[616.00,627.00,615.00,621.00]},{ x:'04/11/2024',y:[618.00,618.00,608.00,609.00]},{ x:'04/12/2024',y:[612.00,623.00,610.00,618.00]},{ x:'04/15/2024',y:[614.00,614.00,601.00,602.00]},{ x:'04/16/2024',y:[594.00,597.00,579.00,585.00]},{ x:'04/17/2024',y:[594.00,595.00,589.00,593.00]},{ x:'04/18/2024',y:[589.00,593.00,586.00,593.00]},{ x:'04/19/2024',y:[590.00,601.00,578.00,588.00]},{ x:'04/22/2024',y:[593.00,611.00,593.00,599.00]},{ x:'04/23/2024',y:[608.00,614.00,599.00,607.00]},{ x:'04/24/2024',y:[613.00,625.00,612.00,624.00]},{ x:'04/25/2024',y:[620.00,623.00,613.00,615.00]},{ x:'04/26/2024',y:[618.00,620.00,612.00,615.00]},{ x:'04/29/2024',y:[619.00,631.00,619.00,631.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2327 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());