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:[790.00,795.00,787.00,795.00]},{ x:'04/30/2024',y:[797.00,802.00,790.00,790.00]},{ x:'05/02/2024',y:[789.00,789.00,772.00,772.00]},{ x:'05/03/2024',y:[788.00,788.00,773.00,780.00]},{ x:'05/06/2024',y:[791.00,793.00,786.00,786.00]},{ x:'05/07/2024',y:[797.00,800.00,792.00,800.00]},{ x:'05/08/2024',y:[794.00,802.00,792.00,802.00]},{ x:'05/09/2024',y:[798.00,802.00,796.00,796.00]},{ x:'05/10/2024',y:[803.00,807.00,798.00,802.00]},{ x:'05/13/2024',y:[823.00,825.00,818.00,819.00]},{ x:'05/14/2024',y:[816.00,825.00,811.00,825.00]},{ x:'05/15/2024',y:[838.00,844.00,837.00,839.00]},{ x:'05/16/2024',y:[852.00,856.00,837.00,841.00]},{ x:'05/17/2024',y:[848.00,848.00,834.00,835.00]},{ x:'05/20/2024',y:[834.00,838.00,822.00,835.00]},{ x:'05/21/2024',y:[830.00,841.00,830.00,841.00]},{ x:'05/22/2024',y:[845.00,865.00,843.00,864.00]},{ x:'05/23/2024',y:[875.00,877.00,867.00,875.00]},{ x:'05/24/2024',y:[858.00,872.00,858.00,867.00]},{ x:'06/11/2024',y:[892.00,895.00,883.00,883.00]},{ x:'06/12/2024',y:[888.00,914.00,888.00,909.00]},{ x:'06/13/2024',y:[923.00,935.00,911.00,919.00]},{ x:'06/14/2024',y:[916.00,922.00,905.00,922.00]},{ x:'06/17/2024',y:[913.00,925.00,913.00,921.00]},{ x:'06/18/2024',y:[944.00,950.00,940.00,943.00]},{ x:'06/19/2024',y:[953.00,984.00,953.00,981.00]},{ x:'06/20/2024',y:[971.00,981.00,971.00,981.00]},{ x:'06/21/2024',y:[961.00,978.00,960.00,970.00]},{ x:'06/24/2024',y:[958.00,960.00,940.00,940.00]},{ x:'06/25/2024',y:[925.00,945.00,923.00,945.00]},{ x:'06/26/2024',y:[951.00,960.00,951.00,960.00]},{ x:'06/27/2024',y:[951.00,961.00,949.00,960.00]},{ x:'06/28/2024',y:[956.00,971.00,955.00,966.00]},{ x:'07/01/2024',y:[968.00,977.00,965.00,968.00]},{ x:'07/02/2024',y:[967.00,971.00,959.00,960.00]},{ x:'07/03/2024',y:[976.00,979.00,967.00,979.00]},{ x:'07/04/2024',y:[1000.00,1010.00,997.00,1005.00]},{ x:'07/05/2024',y:[1005.00,1010.00,1000.00,1005.00]},{ x:'07/12/2024',y:[1030.00,1045.00,1025.00,1040.00]},{ x:'07/15/2024',y:[1040.00,1045.00,1025.00,1040.00]},{ x:'07/16/2024',y:[1040.00,1070.00,1035.00,1055.00]},{ x:'07/17/2024',y:[1035.00,1045.00,1020.00,1030.00]},{ x:'07/18/2024',y:[988.00,1005.00,986.00,1005.00]},{ x:'07/19/2024',y:[988.00,995.00,970.00,970.00]},{ x:'07/22/2024',y:[964.00,965.00,938.00,939.00]},{ x:'07/23/2024',y:[963.00,979.00,956.00,979.00]},{ x:'07/26/2024',y:[915.00,930.00,915.00,924.00]},{ x:'07/29/2024',y:[942.00,948.00,936.00,944.00]},{ x:'07/30/2024',y:[930.00,949.00,926.00,940.00]},{ x:'07/31/2024',y:[929.00,940.00,928.00,934.00]},{ x:'08/01/2024',y:[969.00,969.00,948.00,960.00]},{ x:'08/02/2024',y:[918.00,928.00,903.00,903.00]},{ x:'08/05/2024',y:[852.00,857.00,813.00,815.00]},{ x:'08/06/2024',y:[868.00,895.00,840.00,880.00]},{ x:'08/07/2024',y:[901.00,920.00,893.00,920.00]},{ x:'08/08/2024',y:[901.00,905.00,887.00,896.00]},{ x:'08/09/2024',y:[927.00,934.00,922.00,934.00]},{ x:'08/12/2024',y:[942.00,948.00,931.00,940.00]},{ x:'08/13/2024',y:[945.00,945.00,937.00,941.00]},{ x:'08/14/2024',y:[951.00,955.00,945.00,948.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2330 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());