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:'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]},{ 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]} ] }], 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());