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/28/2024',y:[3185.00,3380.00,3110.00,3330.00]},{ x:'03/29/2024',y:[3330.00,3460.00,3305.00,3330.00]},{ x:'04/01/2024',y:[3350.00,3385.00,3245.00,3350.00]},{ x:'04/02/2024',y:[3340.00,3390.00,3270.00,3330.00]},{ x:'04/03/2024',y:[3270.00,3480.00,3270.00,3405.00]},{ x:'04/08/2024',y:[3435.00,3485.00,3300.00,3405.00]},{ x:'04/09/2024',y:[3395.00,3410.00,3140.00,3225.00]},{ x:'04/10/2024',y:[3160.00,3255.00,3160.00,3185.00]},{ x:'04/11/2024',y:[3175.00,3225.00,3100.00,3170.00]},{ x:'04/12/2024',y:[3165.00,3235.00,3165.00,3170.00]},{ x:'04/15/2024',y:[3110.00,3180.00,3050.00,3115.00]},{ x:'04/16/2024',y:[3065.00,3065.00,3005.00,3015.00]},{ x:'04/17/2024',y:[3015.00,3215.00,3015.00,3160.00]},{ x:'04/18/2024',y:[3160.00,3235.00,3130.00,3220.00]},{ x:'04/19/2024',y:[3160.00,3160.00,2965.00,3000.00]},{ x:'04/22/2024',y:[3000.00,3095.00,2970.00,2980.00]},{ x:'04/23/2024',y:[3010.00,3025.00,2895.00,2900.00]},{ x:'04/24/2024',y:[2965.00,3030.00,2935.00,3000.00]},{ x:'04/25/2024',y:[2920.00,2965.00,2840.00,2890.00]},{ x:'04/26/2024',y:[2955.00,3070.00,2895.00,3020.00]},{ x:'04/29/2024',y:[3060.00,3220.00,3060.00,3140.00]},{ 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]} ] }], 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());