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:'12/12/2023',y:[802.00,804.00,764.00,778.00]},{ x:'12/18/2023',y:[789.00,810.00,783.00,805.00]},{ x:'12/19/2023',y:[804.00,810.00,773.00,781.00]},{ x:'01/10/2024',y:[861.00,880.00,861.00,864.00]},{ x:'01/11/2024',y:[869.00,895.00,862.00,894.00]},{ x:'01/12/2024',y:[893.00,895.00,872.00,874.00]},{ x:'01/15/2024',y:[878.00,893.00,865.00,881.00]},{ x:'01/16/2024',y:[878.00,891.00,856.00,857.00]},{ x:'01/17/2024',y:[857.00,860.00,826.00,838.00]},{ x:'01/18/2024',y:[842.00,862.00,836.00,836.00]},{ x:'01/19/2024',y:[844.00,846.00,831.00,833.00]},{ x:'01/22/2024',y:[837.00,851.00,825.00,840.00]},{ x:'01/23/2024',y:[840.00,855.00,836.00,838.00]},{ x:'01/24/2024',y:[844.00,882.00,843.00,852.00]},{ x:'01/25/2024',y:[862.00,869.00,830.00,830.00]},{ x:'01/26/2024',y:[834.00,843.00,827.00,834.00]},{ x:'01/29/2024',y:[838.00,865.00,831.00,865.00]},{ x:'01/30/2024',y:[871.00,885.00,860.00,868.00]},{ x:'01/31/2024',y:[869.00,876.00,842.00,842.00]},{ x:'02/01/2024',y:[843.00,845.00,827.00,832.00]},{ x:'02/02/2024',y:[839.00,847.00,835.00,839.00]},{ x:'02/05/2024',y:[842.00,850.00,831.00,831.00]},{ x:'02/15/2024',y:[840.00,882.00,839.00,873.00]},{ x:'02/16/2024',y:[881.00,882.00,848.00,849.00]},{ x:'02/19/2024',y:[847.00,877.00,838.00,871.00]},{ x:'02/20/2024',y:[874.00,895.00,865.00,871.00]},{ x:'02/21/2024',y:[877.00,886.00,865.00,865.00]},{ x:'02/22/2024',y:[876.00,876.00,857.00,858.00]},{ x:'02/23/2024',y:[864.00,884.00,864.00,869.00]},{ x:'02/26/2024',y:[881.00,953.00,874.00,950.00]},{ x:'02/27/2024',y:[953.00,970.00,914.00,948.00]},{ x:'02/29/2024',y:[951.00,968.00,933.00,968.00]},{ x:'03/01/2024',y:[979.00,1020.00,974.00,1020.00]},{ x:'03/04/2024',y:[1035.00,1110.00,1025.00,1050.00]},{ x:'03/05/2024',y:[1065.00,1075.00,1015.00,1025.00]},{ x:'03/06/2024',y:[1035.00,1075.00,976.00,978.00]},{ x:'03/07/2024',y:[995.00,997.00,936.00,940.00]},{ x:'03/08/2024',y:[943.00,948.00,868.00,879.00]},{ x:'03/11/2024',y:[888.00,915.00,879.00,915.00]},{ x:'03/12/2024',y:[920.00,936.00,911.00,927.00]},{ x:'03/13/2024',y:[939.00,951.00,891.00,898.00]},{ x:'03/14/2024',y:[908.00,917.00,885.00,898.00]},{ x:'03/15/2024',y:[903.00,908.00,886.00,889.00]},{ x:'03/18/2024',y:[900.00,918.00,892.00,916.00]},{ x:'03/19/2024',y:[918.00,921.00,904.00,908.00]},{ x:'03/20/2024',y:[908.00,913.00,879.00,883.00]},{ x:'03/21/2024',y:[890.00,927.00,890.00,919.00]},{ x:'03/22/2024',y:[911.00,914.00,885.00,894.00]},{ x:'03/25/2024',y:[905.00,924.00,900.00,900.00]},{ x:'03/26/2024',y:[914.00,915.00,878.00,888.00]},{ x:'03/27/2024',y:[890.00,903.00,890.00,892.00]},{ x:'03/28/2024',y:[900.00,906.00,890.00,896.00]},{ x:'03/29/2024',y:[905.00,908.00,896.00,898.00]},{ x:'04/01/2024',y:[907.00,922.00,903.00,907.00]},{ x:'04/02/2024',y:[909.00,963.00,907.00,951.00]},{ x:'04/03/2024',y:[949.00,994.00,936.00,965.00]},{ x:'04/08/2024',y:[975.00,976.00,935.00,942.00]},{ x:'04/09/2024',y:[945.00,950.00,918.00,920.00]},{ x:'04/10/2024',y:[929.00,937.00,915.00,915.00]},{ x:'04/11/2024',y:[915.00,927.00,902.00,904.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4763 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());