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:'06/29/2023',y:[688.00,696.00,679.00,681.00]},{ x:'06/30/2023',y:[688.00,688.00,680.00,688.00]},{ x:'07/03/2023',y:[689.00,693.00,686.00,687.00]},{ x:'07/04/2023',y:[688.00,688.00,679.00,679.00]},{ x:'07/05/2023',y:[677.00,686.00,677.00,679.00]},{ x:'07/06/2023',y:[679.00,687.00,673.00,678.00]},{ x:'07/07/2023',y:[682.00,682.00,670.00,670.00]},{ x:'07/10/2023',y:[674.00,701.00,658.00,698.00]},{ x:'07/11/2023',y:[700.00,704.00,673.00,674.00]},{ x:'07/12/2023',y:[674.00,674.00,653.00,653.00]},{ x:'07/13/2023',y:[657.00,660.00,648.00,648.00]},{ x:'07/14/2023',y:[648.00,677.00,648.00,665.00]},{ x:'07/17/2023',y:[665.00,669.00,652.00,665.00]},{ x:'07/18/2023',y:[664.00,664.00,642.00,642.00]},{ x:'07/19/2023',y:[646.00,651.00,633.00,637.00]},{ x:'07/20/2023',y:[639.00,656.00,639.00,642.00]},{ x:'07/21/2023',y:[640.00,647.00,628.00,629.00]},{ x:'07/24/2023',y:[622.00,628.00,615.00,618.00]},{ x:'07/25/2023',y:[619.00,627.00,612.00,615.00]},{ x:'07/26/2023',y:[616.00,623.00,607.00,613.00]},{ x:'07/27/2023',y:[616.00,625.00,616.00,621.00]},{ x:'07/28/2023',y:[615.00,622.00,612.00,620.00]},{ x:'07/31/2023',y:[620.00,622.00,598.00,599.00]},{ x:'08/01/2023',y:[600.00,628.00,600.00,603.00]},{ x:'08/02/2023',y:[588.00,592.00,575.00,592.00]},{ x:'08/04/2023',y:[593.00,620.00,588.00,607.00]},{ x:'08/07/2023',y:[602.00,606.00,590.00,600.00]},{ x:'08/08/2023',y:[600.00,605.00,594.00,595.00]},{ x:'08/09/2023',y:[596.00,601.00,591.00,593.00]},{ x:'08/10/2023',y:[591.00,594.00,580.00,580.00]},{ x:'08/11/2023',y:[584.00,615.00,584.00,611.00]},{ x:'08/14/2023',y:[611.00,611.00,595.00,596.00]},{ x:'08/15/2023',y:[540.00,547.00,539.00,542.00]},{ x:'08/16/2023',y:[542.00,542.00,528.00,529.00]},{ x:'08/17/2023',y:[522.00,532.00,518.00,530.00]},{ x:'08/18/2023',y:[530.00,535.00,526.00,529.00]},{ x:'08/21/2023',y:[530.00,533.00,521.00,525.00]},{ x:'08/22/2023',y:[524.00,529.00,524.00,525.00]},{ x:'08/23/2023',y:[522.00,524.00,518.00,519.00]},{ x:'08/24/2023',y:[521.00,527.00,519.00,524.00]},{ x:'08/25/2023',y:[521.00,521.00,510.00,510.00]},{ x:'08/28/2023',y:[512.00,515.00,502.00,512.00]},{ x:'08/29/2023',y:[512.00,525.00,512.00,525.00]},{ x:'08/30/2023',y:[527.00,531.00,522.00,527.00]},{ x:'08/31/2023',y:[526.00,531.00,520.00,520.00]},{ x:'09/01/2023',y:[520.00,527.00,519.00,520.00]},{ x:'09/04/2023',y:[521.00,529.00,521.00,529.00]},{ x:'09/05/2023',y:[529.00,530.00,520.00,523.00]},{ x:'09/06/2023',y:[523.00,525.00,517.00,518.00]},{ x:'09/07/2023',y:[518.00,518.00,503.00,504.00]},{ x:'09/08/2023',y:[503.00,506.00,497.00,504.00]},{ x:'09/11/2023',y:[504.00,504.00,497.00,497.50]},{ x:'09/12/2023',y:[499.50,512.00,493.50,508.00]},{ x:'09/13/2023',y:[508.00,514.00,505.00,508.00]},{ x:'09/14/2023',y:[508.00,512.00,506.00,512.00]},{ x:'09/15/2023',y:[513.00,533.00,513.00,518.00]},{ x:'09/18/2023',y:[518.00,519.00,509.00,509.00]},{ x:'09/19/2023',y:[509.00,509.00,501.00,501.00]},{ x:'09/20/2023',y:[501.00,506.00,497.00,501.00]},{ x:'09/21/2023',y:[497.50,498.50,489.00,490.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8454 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());