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/19/2024',y:[720.00,745.00,652.00,655.00]},{ x:'03/20/2024',y:[684.00,704.00,659.00,667.00]},{ x:'03/21/2024',y:[688.00,725.00,672.00,696.00]},{ x:'03/22/2024',y:[707.00,729.00,695.00,702.00]},{ x:'03/25/2024',y:[711.00,723.00,698.00,698.00]},{ x:'03/26/2024',y:[705.00,711.00,653.00,666.00]},{ x:'03/27/2024',y:[661.00,680.00,653.00,680.00]},{ x:'03/28/2024',y:[680.00,685.00,648.00,659.00]},{ x:'03/29/2024',y:[662.00,698.00,658.00,689.00]},{ x:'04/01/2024',y:[700.00,725.00,685.00,723.00]},{ x:'04/02/2024',y:[740.00,749.00,713.00,730.00]},{ x:'04/03/2024',y:[730.00,803.00,719.00,796.00]},{ x:'04/08/2024',y:[802.00,860.00,802.00,860.00]},{ x:'04/09/2024',y:[842.00,873.00,822.00,865.00]},{ x:'04/10/2024',y:[863.00,870.00,809.00,809.00]},{ x:'04/11/2024',y:[809.00,820.00,755.00,757.00]},{ x:'04/12/2024',y:[768.00,785.00,758.00,772.00]},{ x:'04/15/2024',y:[769.00,806.00,760.00,776.00]},{ x:'04/16/2024',y:[745.00,762.00,724.00,740.00]},{ x:'04/17/2024',y:[766.00,799.00,765.00,799.00]},{ x:'04/18/2024',y:[793.00,823.00,788.00,803.00]},{ x:'04/19/2024',y:[788.00,798.00,731.00,777.00]},{ x:'04/22/2024',y:[747.00,766.00,700.00,700.00]},{ x:'04/23/2024',y:[725.00,729.00,691.00,701.00]},{ x:'04/24/2024',y:[744.00,771.00,740.00,771.00]},{ x:'04/25/2024',y:[766.00,812.00,764.00,770.00]},{ x:'04/26/2024',y:[831.00,847.00,798.00,826.00]},{ x:'04/29/2024',y:[846.00,847.00,796.00,796.00]},{ x:'04/30/2024',y:[810.00,824.00,798.00,800.00]},{ x:'05/02/2024',y:[777.00,824.00,769.00,821.00]},{ x:'05/03/2024',y:[838.00,838.00,811.00,817.00]},{ x:'05/06/2024',y:[830.00,840.00,800.00,800.00]},{ x:'05/07/2024',y:[809.00,834.00,790.00,830.00]},{ x:'05/08/2024',y:[828.00,839.00,824.00,831.00]},{ x:'05/09/2024',y:[840.00,861.00,815.00,848.00]},{ x:'05/10/2024',y:[852.00,852.00,810.00,810.00]},{ x:'05/13/2024',y:[820.00,827.00,790.00,801.00]},{ x:'05/14/2024',y:[800.00,801.00,785.00,797.00]},{ x:'05/15/2024',y:[803.00,814.00,793.00,795.00]},{ x:'05/16/2024',y:[815.00,850.00,814.00,850.00]},{ x:'05/17/2024',y:[859.00,876.00,848.00,860.00]},{ x:'05/20/2024',y:[861.00,866.00,802.00,802.00]},{ x:'05/21/2024',y:[808.00,814.00,792.00,811.00]},{ x:'05/22/2024',y:[809.00,815.00,804.00,806.00]},{ x:'05/23/2024',y:[830.00,865.00,812.00,834.00]},{ x:'05/24/2024',y:[821.00,858.00,814.00,854.00]},{ x:'06/11/2024',y:[755.00,786.00,747.00,786.00]},{ x:'06/12/2024',y:[779.00,786.00,743.00,778.00]},{ x:'06/13/2024',y:[798.00,802.00,782.00,788.00]},{ x:'06/14/2024',y:[800.00,818.00,777.00,799.00]},{ x:'06/17/2024',y:[793.00,800.00,766.00,766.00]},{ x:'06/18/2024',y:[765.00,771.00,735.00,747.00]},{ x:'06/19/2024',y:[760.00,768.00,747.00,759.00]},{ x:'06/20/2024',y:[760.00,798.00,759.00,792.00]},{ x:'06/21/2024',y:[782.00,782.00,753.00,763.00]},{ x:'06/24/2024',y:[751.00,774.00,743.00,770.00]},{ x:'06/25/2024',y:[758.00,760.00,739.00,753.00]},{ x:'06/26/2024',y:[772.00,798.00,770.00,792.00]},{ x:'06/27/2024',y:[780.00,800.00,777.00,777.00]},{ x:'06/28/2024',y:[796.00,808.00,786.00,807.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3324 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());