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:'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]},{ x:'04/30/2024',y:[630.00,638.00,625.00,625.00]},{ x:'05/02/2024',y:[623.00,630.00,620.00,625.00]},{ x:'05/03/2024',y:[637.00,685.00,635.00,655.00]},{ x:'05/06/2024',y:[671.00,671.00,651.00,659.00]},{ x:'05/07/2024',y:[664.00,664.00,643.00,658.00]},{ x:'05/08/2024',y:[664.00,671.00,656.00,662.00]},{ x:'05/09/2024',y:[662.00,667.00,647.00,648.00]},{ x:'05/10/2024',y:[649.00,652.00,635.00,635.00]},{ x:'05/13/2024',y:[638.00,642.00,632.00,636.00]},{ x:'05/14/2024',y:[635.00,640.00,628.00,634.00]},{ x:'05/15/2024',y:[636.00,640.00,628.00,630.00]},{ x:'05/16/2024',y:[636.00,647.00,636.00,645.00]},{ x:'05/17/2024',y:[648.00,649.00,637.00,640.00]},{ x:'05/20/2024',y:[640.00,642.00,631.00,634.00]},{ x:'05/21/2024',y:[632.00,632.00,625.00,630.00]},{ x:'05/22/2024',y:[635.00,641.00,632.00,636.00]},{ x:'05/23/2024',y:[633.00,644.00,633.00,638.00]},{ x:'05/24/2024',y:[635.00,655.00,633.00,651.00]},{ x:'06/11/2024',y:[676.00,676.00,666.00,666.00]},{ x:'06/12/2024',y:[668.00,672.00,659.00,668.00]},{ x:'06/13/2024',y:[670.00,681.00,670.00,678.00]},{ x:'06/14/2024',y:[682.00,700.00,681.00,696.00]},{ x:'06/17/2024',y:[696.00,707.00,692.00,705.00]},{ x:'06/18/2024',y:[705.00,717.00,704.00,712.00]},{ x:'06/19/2024',y:[713.00,720.00,708.00,717.00]},{ x:'06/20/2024',y:[715.00,719.00,712.00,715.00]},{ x:'06/21/2024',y:[715.00,760.00,713.00,759.00]},{ x:'06/24/2024',y:[761.00,772.00,759.00,759.00]},{ x:'06/25/2024',y:[767.00,772.00,751.00,756.00]},{ x:'06/26/2024',y:[758.00,768.00,754.00,763.00]},{ x:'06/27/2024',y:[743.00,747.00,731.00,742.00]},{ x:'06/28/2024',y:[740.00,744.00,730.00,730.00]},{ x:'07/01/2024',y:[730.00,732.00,721.00,724.00]},{ x:'07/02/2024',y:[721.00,726.00,711.00,717.00]},{ x:'07/03/2024',y:[731.00,745.00,726.00,731.00]},{ x:'07/04/2024',y:[739.00,755.00,736.00,753.00]},{ x:'07/05/2024',y:[763.00,764.00,751.00,754.00]},{ x:'07/12/2024',y:[790.00,793.00,768.00,770.00]},{ x:'07/15/2024',y:[774.00,776.00,758.00,772.00]},{ x:'07/16/2024',y:[790.00,818.00,789.00,804.00]},{ x:'07/17/2024',y:[800.00,810.00,793.00,798.00]},{ x:'07/18/2024',y:[787.00,804.00,781.00,795.00]},{ x:'07/19/2024',y:[794.00,798.00,763.00,766.00]},{ x:'07/22/2024',y:[762.00,769.00,742.00,742.00]},{ x:'07/23/2024',y:[754.00,756.00,743.00,755.00]},{ x:'07/26/2024',y:[705.00,734.00,705.00,727.00]},{ x:'07/29/2024',y:[735.00,743.00,711.00,720.00]},{ x:'07/30/2024',y:[712.00,730.00,706.00,730.00]},{ x:'07/31/2024',y:[743.00,798.00,741.00,792.00]},{ x:'08/01/2024',y:[794.00,798.00,780.00,786.00]},{ x:'08/02/2024',y:[763.00,780.00,741.00,743.00]},{ x:'08/05/2024',y:[709.00,712.00,669.00,669.00]},{ x:'08/06/2024',y:[692.00,698.00,632.00,677.00]},{ x:'08/07/2024',y:[674.00,705.00,674.00,702.00]},{ x:'08/08/2024',y:[691.00,715.00,684.00,701.00]},{ x:'08/09/2024',y:[735.00,749.00,726.00,727.00]},{ x:'08/12/2024',y:[733.00,745.00,731.00,733.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());