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/30/2024',y:[3120.00,3145.00,3060.00,3085.00]},{ x:'05/02/2024',y:[3040.00,3160.00,3015.00,3130.00]},{ x:'05/03/2024',y:[3200.00,3310.00,3170.00,3235.00]},{ x:'05/06/2024',y:[3250.00,3360.00,3250.00,3280.00]},{ x:'05/07/2024',y:[3345.00,3375.00,3055.00,3275.00]},{ x:'05/08/2024',y:[3275.00,3335.00,3160.00,3170.00]},{ x:'05/09/2024',y:[3170.00,3195.00,3045.00,3100.00]},{ x:'05/10/2024',y:[3110.00,3145.00,3010.00,3010.00]},{ x:'05/13/2024',y:[3050.00,3135.00,2940.00,3125.00]},{ x:'05/14/2024',y:[3130.00,3210.00,3125.00,3205.00]},{ x:'05/15/2024',y:[3175.00,3240.00,3175.00,3185.00]},{ x:'05/16/2024',y:[3245.00,3415.00,3220.00,3410.00]},{ x:'05/17/2024',y:[3390.00,3445.00,3360.00,3415.00]},{ x:'05/20/2024',y:[3405.00,3405.00,3270.00,3310.00]},{ x:'05/21/2024',y:[3255.00,3260.00,3120.00,3120.00]},{ x:'05/22/2024',y:[3145.00,3325.00,3130.00,3300.00]},{ x:'05/23/2024',y:[3270.00,3360.00,3270.00,3360.00]},{ x:'05/24/2024',y:[3360.00,3695.00,3360.00,3695.00]},{ x:'06/11/2024',y:[4360.00,4715.00,4320.00,4715.00]},{ x:'06/12/2024',y:[5075.00,5075.00,4590.00,4675.00]},{ x:'06/13/2024',y:[4690.00,4775.00,4640.00,4675.00]},{ x:'06/14/2024',y:[4650.00,4755.00,4610.00,4740.00]},{ x:'06/17/2024',y:[4740.00,4815.00,4520.00,4590.00]},{ x:'06/18/2024',y:[4640.00,4700.00,4610.00,4700.00]},{ x:'06/19/2024',y:[4705.00,4900.00,4705.00,4890.00]},{ x:'06/20/2024',y:[4835.00,5050.00,4835.00,4985.00]},{ x:'06/21/2024',y:[4900.00,5065.00,4890.00,4965.00]},{ x:'06/24/2024',y:[4955.00,4955.00,4700.00,4740.00]},{ x:'06/25/2024',y:[4845.00,4860.00,4620.00,4770.00]},{ x:'06/26/2024',y:[4705.00,4980.00,4705.00,4950.00]},{ x:'06/27/2024',y:[4915.00,5000.00,4780.00,4800.00]},{ x:'06/28/2024',y:[4880.00,4935.00,4820.00,4840.00]},{ x:'07/01/2024',y:[4880.00,4890.00,4700.00,4700.00]},{ x:'07/02/2024',y:[4750.00,4755.00,4615.00,4710.00]},{ x:'07/03/2024',y:[4850.00,4860.00,4670.00,4690.00]},{ x:'07/04/2024',y:[4785.00,4785.00,4300.00,4390.00]},{ x:'07/05/2024',y:[4415.00,4540.00,4385.00,4495.00]},{ x:'07/12/2024',y:[4775.00,4775.00,4505.00,4525.00]},{ x:'07/15/2024',y:[4580.00,4590.00,4375.00,4415.00]},{ x:'07/16/2024',y:[4495.00,4640.00,4470.00,4640.00]},{ x:'07/17/2024',y:[4640.00,4690.00,4560.00,4575.00]},{ x:'07/18/2024',y:[4375.00,4375.00,4140.00,4170.00]},{ x:'07/19/2024',y:[3955.00,4350.00,3955.00,4265.00]},{ x:'07/22/2024',y:[4265.00,4365.00,4045.00,4045.00]},{ x:'07/23/2024',y:[4070.00,4195.00,4070.00,4130.00]},{ x:'07/26/2024',y:[3800.00,3995.00,3800.00,3965.00]},{ x:'07/29/2024',y:[4100.00,4120.00,3895.00,4060.00]},{ x:'07/30/2024',y:[3960.00,4145.00,3960.00,4100.00]},{ x:'07/31/2024',y:[4050.00,4140.00,4045.00,4080.00]},{ x:'08/01/2024',y:[4220.00,4290.00,4100.00,4160.00]},{ x:'08/02/2024',y:[4000.00,4085.00,3745.00,3745.00]},{ x:'08/05/2024',y:[3400.00,3745.00,3400.00,3645.00]},{ x:'08/06/2024',y:[3800.00,3980.00,3555.00,3825.00]},{ x:'08/07/2024',y:[3820.00,4205.00,3795.00,4205.00]},{ x:'08/08/2024',y:[4205.00,4225.00,4065.00,4190.00]},{ x:'08/09/2024',y:[4390.00,4395.00,4170.00,4180.00]},{ x:'08/12/2024',y:[4230.00,4345.00,4155.00,4315.00]},{ x:'08/13/2024',y:[4320.00,4370.00,4200.00,4210.00]},{ x:'08/14/2024',y:[4340.00,4525.00,4305.00,4500.00]},{ x:'08/15/2024',y:[4530.00,4650.00,4480.00,4510.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5274 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());