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:'09/04/2023',y:[713.00,713.00,705.00,711.00]},{ x:'09/05/2023',y:[712.00,718.00,711.00,718.00]},{ x:'09/06/2023',y:[721.00,722.00,712.00,712.00]},{ x:'09/07/2023',y:[709.00,718.00,708.00,717.00]},{ x:'09/08/2023',y:[705.00,710.00,701.00,709.00]},{ x:'09/11/2023',y:[715.00,715.00,708.00,714.00]},{ x:'09/12/2023',y:[710.00,729.00,709.00,728.00]},{ x:'09/13/2023',y:[739.00,744.00,729.00,732.00]},{ x:'09/14/2023',y:[735.00,735.00,725.00,733.00]},{ x:'09/15/2023',y:[741.00,763.00,737.00,763.00]},{ x:'09/18/2023',y:[751.00,792.00,750.00,782.00]},{ x:'09/19/2023',y:[782.00,782.00,764.00,773.00]},{ x:'09/20/2023',y:[765.00,766.00,751.00,759.00]},{ x:'09/21/2023',y:[752.00,762.00,744.00,746.00]},{ x:'09/22/2023',y:[735.00,748.00,728.00,746.00]},{ x:'09/25/2023',y:[741.00,762.00,741.00,755.00]},{ x:'09/26/2023',y:[748.00,755.00,736.00,737.00]},{ x:'09/27/2023',y:[728.00,737.00,728.00,737.00]},{ x:'09/28/2023',y:[739.00,741.00,730.00,735.00]},{ x:'10/02/2023',y:[747.00,748.00,740.00,745.00]},{ x:'10/03/2023',y:[767.00,784.00,766.00,772.00]},{ x:'10/04/2023',y:[771.00,783.00,764.00,780.00]},{ x:'10/05/2023',y:[783.00,786.00,776.00,786.00]},{ x:'10/06/2023',y:[790.00,790.00,781.00,786.00]},{ x:'10/11/2023',y:[790.00,816.00,790.00,814.00]},{ x:'10/12/2023',y:[817.00,819.00,805.00,815.00]},{ x:'10/13/2023',y:[820.00,842.00,818.00,842.00]},{ x:'10/18/2023',y:[800.00,822.00,800.00,813.00]},{ x:'10/19/2023',y:[811.00,838.00,811.00,830.00]},{ x:'10/20/2023',y:[831.00,837.00,812.00,828.00]},{ x:'10/23/2023',y:[825.00,829.00,816.00,821.00]},{ x:'10/24/2023',y:[821.00,823.00,804.00,816.00]},{ x:'10/25/2023',y:[818.00,832.00,816.00,822.00]},{ x:'10/26/2023',y:[815.00,817.00,811.00,817.00]},{ x:'10/27/2023',y:[824.00,824.00,800.00,801.00]},{ x:'10/31/2023',y:[860.00,861.00,834.00,842.00]},{ x:'11/01/2023',y:[854.00,856.00,832.00,846.00]},{ x:'11/02/2023',y:[863.00,877.00,855.00,868.00]},{ x:'11/03/2023',y:[872.00,876.00,864.00,870.00]},{ x:'11/06/2023',y:[879.00,890.00,873.00,882.00]},{ x:'11/07/2023',y:[890.00,899.00,879.00,888.00]},{ x:'11/08/2023',y:[898.00,916.00,895.00,914.00]},{ x:'11/09/2023',y:[913.00,913.00,899.00,905.00]},{ x:'11/10/2023',y:[900.00,904.00,884.00,884.00]},{ x:'11/13/2023',y:[909.00,925.00,905.00,906.00]},{ x:'11/14/2023',y:[916.00,917.00,902.00,905.00]},{ x:'11/15/2023',y:[925.00,925.00,900.00,908.00]},{ x:'11/16/2023',y:[914.00,914.00,891.00,893.00]},{ x:'11/17/2023',y:[896.00,905.00,893.00,904.00]},{ x:'11/20/2023',y:[920.00,924.00,904.00,912.00]},{ x:'11/21/2023',y:[922.00,934.00,915.00,926.00]},{ x:'11/22/2023',y:[928.00,942.00,925.00,942.00]},{ x:'11/23/2023',y:[951.00,951.00,929.00,930.00]},{ x:'11/24/2023',y:[935.00,950.00,932.00,945.00]},{ x:'11/27/2023',y:[946.00,951.00,931.00,931.00]},{ x:'11/28/2023',y:[929.00,942.00,925.00,942.00]},{ x:'11/29/2023',y:[941.00,949.00,936.00,948.00]},{ x:'11/30/2023',y:[949.00,953.00,939.00,945.00]},{ x:'12/01/2023',y:[942.00,947.00,938.00,947.00]},{ x:'12/04/2023',y:[945.00,946.00,930.00,933.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2454 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());