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/26/2024',y:[772.00,791.00,772.00,779.00]},{ x:'04/29/2024',y:[780.00,825.00,780.00,808.00]},{ x:'04/30/2024',y:[813.00,822.00,801.00,819.00]},{ x:'05/02/2024',y:[822.00,834.00,806.00,825.00]},{ x:'05/03/2024',y:[821.00,825.00,794.00,794.00]},{ x:'05/06/2024',y:[797.00,798.00,746.00,752.00]},{ x:'05/07/2024',y:[740.00,780.00,735.00,745.00]},{ x:'05/08/2024',y:[752.00,773.00,745.00,773.00]},{ x:'05/09/2024',y:[774.00,781.00,759.00,760.00]},{ x:'05/10/2024',y:[765.00,794.00,765.00,783.00]},{ x:'05/13/2024',y:[825.00,846.00,806.00,808.00]},{ x:'05/14/2024',y:[816.00,822.00,797.00,803.00]},{ x:'05/15/2024',y:[815.00,849.00,814.00,834.00]},{ x:'05/16/2024',y:[843.00,849.00,826.00,834.00]},{ x:'05/17/2024',y:[830.00,865.00,818.00,861.00]},{ x:'05/20/2024',y:[862.00,881.00,830.00,839.00]},{ x:'05/21/2024',y:[839.00,845.00,834.00,835.00]},{ x:'05/22/2024',y:[835.00,849.00,831.00,834.00]},{ x:'05/23/2024',y:[832.00,835.00,806.00,809.00]},{ x:'05/24/2024',y:[792.00,830.00,792.00,815.00]},{ x:'06/11/2024',y:[815.00,829.00,806.00,807.00]},{ x:'06/12/2024',y:[809.00,815.00,806.00,812.00]},{ x:'06/13/2024',y:[824.00,848.00,818.00,838.00]},{ x:'06/14/2024',y:[838.00,845.00,827.00,838.00]},{ x:'06/17/2024',y:[838.00,862.00,837.00,838.00]},{ x:'06/18/2024',y:[848.00,857.00,836.00,836.00]},{ x:'06/19/2024',y:[842.00,855.00,839.00,846.00]},{ x:'06/20/2024',y:[855.00,891.00,852.00,879.00]},{ x:'06/21/2024',y:[881.00,949.00,870.00,924.00]},{ x:'06/24/2024',y:[931.00,946.00,876.00,882.00]},{ x:'06/25/2024',y:[885.00,896.00,855.00,889.00]},{ x:'06/26/2024',y:[899.00,924.00,894.00,920.00]},{ x:'06/27/2024',y:[911.00,937.00,904.00,911.00]},{ x:'06/28/2024',y:[916.00,921.00,891.00,891.00]},{ x:'07/01/2024',y:[893.00,918.00,885.00,896.00]},{ x:'07/02/2024',y:[900.00,914.00,889.00,897.00]},{ x:'07/03/2024',y:[906.00,927.00,901.00,927.00]},{ x:'07/04/2024',y:[943.00,946.00,918.00,918.00]},{ x:'07/05/2024',y:[920.00,927.00,907.00,907.00]},{ x:'07/12/2024',y:[870.00,882.00,861.00,871.00]},{ x:'07/15/2024',y:[880.00,891.00,858.00,889.00]},{ x:'07/16/2024',y:[888.00,908.00,883.00,884.00]},{ x:'07/17/2024',y:[887.00,892.00,882.00,890.00]},{ x:'07/18/2024',y:[885.00,901.00,873.00,880.00]},{ x:'07/19/2024',y:[889.00,896.00,849.00,849.00]},{ x:'07/22/2024',y:[849.00,851.00,796.00,796.00]},{ x:'07/23/2024',y:[804.00,826.00,804.00,816.00]},{ x:'07/26/2024',y:[793.00,820.00,782.00,820.00]},{ x:'07/29/2024',y:[827.00,830.00,790.00,790.00]},{ x:'07/30/2024',y:[782.00,813.00,780.00,810.00]},{ x:'07/31/2024',y:[815.00,877.00,810.00,862.00]},{ x:'08/01/2024',y:[871.00,898.00,851.00,886.00]},{ x:'08/02/2024',y:[863.00,894.00,842.00,850.00]},{ x:'08/05/2024',y:[834.00,834.00,765.00,765.00]},{ x:'08/06/2024',y:[795.00,803.00,690.00,769.00]},{ x:'08/07/2024',y:[796.00,845.00,781.00,845.00]},{ x:'08/08/2024',y:[831.00,840.00,804.00,806.00]},{ x:'08/09/2024',y:[831.00,841.00,806.00,809.00]},{ x:'08/12/2024',y:[809.00,819.00,805.00,808.00]},{ x:'08/13/2024',y:[818.00,818.00,801.00,803.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());