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:'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]},{ x:'12/05/2023',y:[925.00,933.00,921.00,929.00]},{ x:'12/06/2023',y:[925.00,933.00,925.00,927.00]},{ x:'12/07/2023',y:[933.00,943.00,927.00,931.00]},{ x:'12/08/2023',y:[941.00,946.00,937.00,943.00]},{ x:'12/11/2023',y:[942.00,944.00,932.00,941.00]},{ x:'12/12/2023',y:[950.00,950.00,935.00,939.00]},{ x:'12/18/2023',y:[995.00,997.00,981.00,989.00]},{ x:'12/19/2023',y:[977.00,994.00,977.00,992.00]},{ x:'01/10/2024',y:[935.00,935.00,922.00,924.00]},{ x:'01/11/2024',y:[932.00,937.00,920.00,920.00]},{ x:'01/12/2024',y:[920.00,929.00,916.00,926.00]},{ x:'01/15/2024',y:[935.00,935.00,919.00,922.00]},{ x:'01/16/2024',y:[915.00,917.00,895.00,895.00]},{ x:'01/17/2024',y:[890.00,903.00,879.00,879.00]},{ x:'01/18/2024',y:[884.00,897.00,884.00,897.00]},{ x:'01/19/2024',y:[920.00,920.00,907.00,920.00]},{ x:'01/22/2024',y:[928.00,943.00,920.00,922.00]},{ x:'01/23/2024',y:[918.00,922.00,909.00,911.00]},{ x:'01/24/2024',y:[916.00,936.00,915.00,936.00]},{ x:'01/25/2024',y:[939.00,950.00,933.00,943.00]},{ x:'01/26/2024',y:[936.00,939.00,928.00,936.00]},{ x:'01/29/2024',y:[945.00,945.00,926.00,938.00]},{ x:'01/30/2024',y:[938.00,973.00,938.00,963.00]},{ x:'01/31/2024',y:[976.00,977.00,958.00,966.00]},{ x:'02/01/2024',y:[951.00,951.00,922.00,930.00]},{ x:'02/02/2024',y:[931.00,936.00,926.00,936.00]},{ x:'02/05/2024',y:[929.00,940.00,928.00,937.00]},{ x:'02/15/2024',y:[983.00,983.00,951.00,972.00]},{ x:'02/16/2024',y:[976.00,977.00,963.00,970.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());