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:'03/19/2024',y:[734.00,749.00,734.00,742.00]},{ x:'03/20/2024',y:[743.00,749.00,726.00,726.00]},{ x:'03/21/2024',y:[736.00,752.00,735.00,749.00]},{ x:'03/22/2024',y:[752.00,752.00,725.00,735.00]},{ x:'03/25/2024',y:[740.00,743.00,730.00,735.00]},{ x:'03/26/2024',y:[743.00,743.00,709.00,709.00]},{ x:'03/27/2024',y:[711.00,719.00,697.00,714.00]},{ x:'03/28/2024',y:[720.00,726.00,707.00,708.00]},{ x:'03/29/2024',y:[709.00,725.00,709.00,719.00]},{ x:'04/01/2024',y:[727.00,732.00,717.00,722.00]},{ x:'04/02/2024',y:[722.00,773.00,718.00,766.00]},{ x:'04/03/2024',y:[766.00,781.00,758.00,771.00]},{ x:'04/08/2024',y:[775.00,782.00,760.00,774.00]},{ x:'04/09/2024',y:[778.00,825.00,778.00,816.00]},{ x:'04/10/2024',y:[825.00,835.00,807.00,826.00]},{ x:'04/11/2024',y:[820.00,907.00,815.00,904.00]},{ x:'04/12/2024',y:[904.00,938.00,885.00,931.00]},{ x:'04/15/2024',y:[924.00,929.00,884.00,885.00]},{ x:'04/16/2024',y:[878.00,879.00,799.00,814.00]},{ x:'04/17/2024',y:[826.00,877.00,819.00,844.00]},{ x:'04/18/2024',y:[836.00,866.00,814.00,819.00]},{ x:'04/19/2024',y:[805.00,835.00,803.00,820.00]},{ x:'04/22/2024',y:[822.00,828.00,782.00,790.00]},{ x:'04/23/2024',y:[803.00,810.00,764.00,775.00]},{ x:'04/24/2024',y:[795.00,826.00,795.00,820.00]},{ x:'04/25/2024',y:[810.00,822.00,802.00,814.00]},{ x:'04/26/2024',y:[833.00,863.00,822.00,843.00]},{ x:'04/29/2024',y:[853.00,865.00,834.00,838.00]},{ x:'04/30/2024',y:[838.00,846.00,825.00,837.00]},{ x:'05/02/2024',y:[849.00,849.00,822.00,840.00]},{ x:'05/03/2024',y:[855.00,884.00,817.00,840.00]},{ x:'05/06/2024',y:[870.00,903.00,842.00,883.00]},{ x:'05/07/2024',y:[890.00,895.00,860.00,868.00]},{ x:'05/08/2024',y:[868.00,900.00,858.00,900.00]},{ x:'05/09/2024',y:[901.00,901.00,840.00,848.00]},{ x:'05/10/2024',y:[851.00,880.00,842.00,844.00]},{ x:'05/13/2024',y:[847.00,857.00,834.00,844.00]},{ x:'05/14/2024',y:[842.00,854.00,822.00,847.00]},{ x:'05/15/2024',y:[852.00,870.00,840.00,853.00]},{ x:'05/16/2024',y:[869.00,881.00,852.00,857.00]},{ x:'05/17/2024',y:[864.00,875.00,856.00,870.00]},{ x:'05/20/2024',y:[873.00,874.00,853.00,862.00]},{ x:'05/21/2024',y:[862.00,895.00,862.00,872.00]},{ x:'05/22/2024',y:[869.00,910.00,869.00,892.00]},{ x:'05/23/2024',y:[894.00,920.00,874.00,880.00]},{ x:'05/24/2024',y:[874.00,915.00,866.00,905.00]},{ x:'06/11/2024',y:[902.00,902.00,883.00,899.00]},{ x:'06/12/2024',y:[897.00,908.00,893.00,903.00]},{ x:'06/13/2024',y:[918.00,993.00,918.00,993.00]},{ x:'06/14/2024',y:[1000.00,1065.00,994.00,1010.00]},{ x:'06/17/2024',y:[1005.00,1025.00,984.00,997.00]},{ x:'06/18/2024',y:[1005.00,1045.00,996.00,1025.00]},{ x:'06/19/2024',y:[1035.00,1075.00,1020.00,1040.00]},{ x:'06/20/2024',y:[1025.00,1050.00,1020.00,1030.00]},{ x:'06/21/2024',y:[1020.00,1035.00,1000.00,1020.00]},{ x:'06/24/2024',y:[1015.00,1060.00,1005.00,1025.00]},{ x:'06/25/2024',y:[1020.00,1040.00,995.00,1025.00]},{ x:'06/26/2024',y:[1035.00,1095.00,1030.00,1070.00]},{ x:'06/27/2024',y:[1065.00,1100.00,1045.00,1065.00]},{ x:'06/28/2024',y:[1080.00,1090.00,1025.00,1050.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6515 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());