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:'01/22/2024',y:[733.00,750.00,716.00,749.00]},{ x:'01/23/2024',y:[759.00,759.00,739.00,754.00]},{ x:'01/24/2024',y:[761.00,761.00,722.00,725.00]},{ x:'01/25/2024',y:[732.00,742.00,723.00,723.00]},{ x:'01/26/2024',y:[731.00,748.00,726.00,729.00]},{ x:'01/29/2024',y:[727.00,733.00,712.00,716.00]},{ x:'01/30/2024',y:[719.00,758.00,719.00,752.00]},{ x:'01/31/2024',y:[742.00,754.00,735.00,750.00]},{ x:'02/01/2024',y:[749.00,772.00,742.00,756.00]},{ x:'02/02/2024',y:[770.00,830.00,770.00,821.00]},{ x:'02/05/2024',y:[818.00,829.00,805.00,828.00]},{ x:'02/15/2024',y:[835.00,865.00,835.00,849.00]},{ x:'02/16/2024',y:[857.00,860.00,828.00,859.00]},{ x:'02/19/2024',y:[844.00,850.00,829.00,832.00]},{ x:'02/20/2024',y:[832.00,832.00,807.00,820.00]},{ x:'02/21/2024',y:[800.00,814.00,797.00,805.00]},{ x:'02/22/2024',y:[813.00,840.00,813.00,839.00]},{ x:'02/23/2024',y:[853.00,876.00,848.00,855.00]},{ x:'02/26/2024',y:[851.00,925.00,835.00,915.00]},{ x:'02/27/2024',y:[912.00,924.00,886.00,901.00]},{ x:'02/29/2024',y:[893.00,938.00,883.00,919.00]},{ x:'03/01/2024',y:[946.00,994.00,940.00,962.00]},{ x:'03/04/2024',y:[989.00,1005.00,960.00,980.00]},{ x:'03/05/2024',y:[996.00,997.00,950.00,953.00]},{ x:'03/06/2024',y:[953.00,1030.00,948.00,996.00]},{ x:'03/07/2024',y:[1005.00,1035.00,975.00,982.00]},{ x:'03/08/2024',y:[985.00,1005.00,931.00,934.00]},{ x:'03/11/2024',y:[931.00,967.00,930.00,952.00]},{ x:'03/12/2024',y:[950.00,1005.00,948.00,995.00]},{ x:'03/13/2024',y:[1005.00,1030.00,981.00,983.00]},{ x:'03/14/2024',y:[980.00,999.00,893.00,911.00]},{ x:'03/15/2024',y:[902.00,931.00,890.00,907.00]},{ x:'03/18/2024',y:[910.00,946.00,910.00,939.00]},{ x:'03/19/2024',y:[935.00,939.00,903.00,905.00]},{ x:'03/20/2024',y:[910.00,911.00,839.00,845.00]},{ x:'03/21/2024',y:[864.00,895.00,842.00,876.00]},{ x:'03/22/2024',y:[882.00,907.00,879.00,889.00]},{ x:'03/25/2024',y:[903.00,922.00,898.00,899.00]},{ x:'03/26/2024',y:[903.00,914.00,868.00,873.00]},{ x:'03/27/2024',y:[875.00,909.00,867.00,901.00]},{ x:'03/28/2024',y:[905.00,924.00,896.00,903.00]},{ x:'03/29/2024',y:[911.00,933.00,911.00,921.00]},{ x:'04/01/2024',y:[923.00,932.00,912.00,928.00]},{ x:'04/02/2024',y:[939.00,946.00,887.00,893.00]},{ x:'04/03/2024',y:[895.00,936.00,890.00,930.00]},{ x:'04/08/2024',y:[943.00,962.00,919.00,925.00]},{ x:'04/09/2024',y:[934.00,934.00,885.00,912.00]},{ x:'04/10/2024',y:[917.00,923.00,896.00,906.00]},{ x:'04/11/2024',y:[906.00,920.00,891.00,906.00]},{ x:'04/12/2024',y:[910.00,934.00,908.00,920.00]},{ x:'04/15/2024',y:[911.00,914.00,889.00,896.00]},{ x:'04/16/2024',y:[884.00,884.00,836.00,858.00]},{ x:'04/17/2024',y:[859.00,920.00,859.00,910.00]},{ x:'04/18/2024',y:[904.00,961.00,892.00,936.00]},{ x:'04/19/2024',y:[928.00,935.00,891.00,907.00]},{ x:'04/22/2024',y:[915.00,922.00,869.00,869.00]},{ x:'04/23/2024',y:[890.00,900.00,853.00,866.00]},{ x:'04/24/2024',y:[885.00,951.00,885.00,943.00]},{ x:'04/25/2024',y:[938.00,945.00,925.00,933.00]},{ x:'04/26/2024',y:[946.00,989.00,931.00,958.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3653 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());