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/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]},{ x:'07/01/2024',y:[820.00,838.00,813.00,815.00]},{ x:'07/02/2024',y:[815.00,840.00,807.00,840.00]},{ x:'07/03/2024',y:[857.00,885.00,854.00,861.00]},{ x:'07/04/2024',y:[879.00,880.00,855.00,875.00]},{ x:'07/05/2024',y:[881.00,891.00,866.00,890.00]},{ x:'07/12/2024',y:[779.00,800.00,761.00,763.00]},{ x:'07/15/2024',y:[775.00,780.00,761.00,774.00]},{ x:'07/16/2024',y:[774.00,774.00,736.00,738.00]},{ x:'07/17/2024',y:[739.00,756.00,733.00,752.00]},{ x:'07/18/2024',y:[731.00,756.00,721.00,753.00]},{ x:'07/19/2024',y:[756.00,774.00,748.00,755.00]},{ x:'07/22/2024',y:[775.00,777.00,705.00,705.00]},{ x:'07/23/2024',y:[733.00,762.00,724.00,760.00]},{ x:'07/26/2024',y:[724.00,746.00,708.00,708.00]},{ x:'07/29/2024',y:[732.00,732.00,657.00,657.00]},{ x:'07/30/2024',y:[657.00,680.00,652.00,671.00]},{ x:'07/31/2024',y:[665.00,697.00,659.00,670.00]},{ x:'08/01/2024',y:[710.00,711.00,661.00,668.00]},{ x:'08/02/2024',y:[602.00,630.00,602.00,602.00]},{ x:'08/05/2024',y:[549.00,562.00,542.00,542.00]},{ x:'08/06/2024',y:[555.00,558.00,488.00,514.00]},{ x:'08/07/2024',y:[520.00,556.00,515.00,545.00]},{ x:'08/08/2024',y:[529.00,531.00,502.00,510.00]},{ x:'08/09/2024',y:[535.00,555.00,532.00,532.00]},{ x:'08/12/2024',y:[575.00,585.00,564.00,585.00]},{ x:'08/13/2024',y:[608.00,617.00,581.00,585.00]},{ x:'08/14/2024',y:[605.00,612.00,592.00,603.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());