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:'01/22/2024',y:[3780.00,3870.00,3760.00,3815.00]},{ x:'01/23/2024',y:[3830.00,3860.00,3750.00,3750.00]},{ x:'01/24/2024',y:[3775.00,3795.00,3680.00,3680.00]},{ x:'01/25/2024',y:[3715.00,3760.00,3685.00,3720.00]},{ x:'01/26/2024',y:[3700.00,3895.00,3680.00,3895.00]},{ x:'01/29/2024',y:[3915.00,3920.00,3800.00,3800.00]},{ x:'01/30/2024',y:[3830.00,3895.00,3790.00,3835.00]},{ x:'01/31/2024',y:[3810.00,3920.00,3800.00,3900.00]},{ x:'02/01/2024',y:[3930.00,4000.00,3860.00,3960.00]},{ x:'02/02/2024',y:[3995.00,4000.00,3905.00,3985.00]},{ x:'02/05/2024',y:[3995.00,4105.00,3985.00,4105.00]},{ x:'02/15/2024',y:[4280.00,4435.00,4260.00,4430.00]},{ x:'02/16/2024',y:[4425.00,4450.00,4125.00,4185.00]},{ x:'02/19/2024',y:[4170.00,4170.00,4025.00,4080.00]},{ x:'02/20/2024',y:[4060.00,4160.00,4055.00,4150.00]},{ x:'02/21/2024',y:[4130.00,4205.00,3955.00,3990.00]},{ x:'02/22/2024',y:[4140.00,4210.00,4010.00,4015.00]},{ x:'02/23/2024',y:[4145.00,4170.00,3900.00,3900.00]},{ x:'02/26/2024',y:[3970.00,4015.00,3920.00,3975.00]},{ x:'02/27/2024',y:[3990.00,4010.00,3815.00,3960.00]},{ x:'02/29/2024',y:[3985.00,4140.00,3910.00,4140.00]},{ x:'03/01/2024',y:[4250.00,4340.00,4230.00,4340.00]},{ x:'03/04/2024',y:[4560.00,4565.00,4170.00,4200.00]},{ x:'03/05/2024',y:[4270.00,4290.00,4180.00,4200.00]},{ x:'03/06/2024',y:[4180.00,4225.00,4045.00,4085.00]},{ x:'03/07/2024',y:[4135.00,4150.00,3910.00,3910.00]},{ x:'03/08/2024',y:[3920.00,3980.00,3815.00,3825.00]},{ x:'03/11/2024',y:[3830.00,3930.00,3680.00,3750.00]},{ x:'03/12/2024',y:[3790.00,3795.00,3575.00,3585.00]},{ x:'03/13/2024',y:[3610.00,3640.00,3400.00,3410.00]},{ x:'03/14/2024',y:[3450.00,3750.00,3385.00,3750.00]},{ x:'03/15/2024',y:[3750.00,3815.00,3520.00,3605.00]},{ x:'03/18/2024',y:[3650.00,3675.00,3600.00,3665.00]},{ x:'03/19/2024',y:[3695.00,3725.00,3300.00,3305.00]},{ x:'03/20/2024',y:[3400.00,3490.00,3315.00,3375.00]},{ x:'03/21/2024',y:[3495.00,3560.00,3350.00,3395.00]},{ x:'03/22/2024',y:[3445.00,3545.00,3395.00,3450.00]},{ x:'03/25/2024',y:[3560.00,3640.00,3460.00,3460.00]},{ x:'03/26/2024',y:[3510.00,3550.00,3340.00,3340.00]},{ x:'03/27/2024',y:[3360.00,3390.00,3040.00,3150.00]},{ x:'03/28/2024',y:[3245.00,3270.00,3150.00,3165.00]},{ x:'03/29/2024',y:[3185.00,3455.00,3185.00,3340.00]},{ x:'04/01/2024',y:[3395.00,3430.00,3305.00,3420.00]},{ x:'04/02/2024',y:[3410.00,3475.00,3325.00,3400.00]},{ x:'04/03/2024',y:[3340.00,3415.00,3330.00,3385.00]},{ x:'04/08/2024',y:[3435.00,3435.00,3125.00,3150.00]},{ x:'04/09/2024',y:[3180.00,3215.00,2990.00,3020.00]},{ x:'04/10/2024',y:[3115.00,3210.00,3020.00,3020.00]},{ x:'04/11/2024',y:[3040.00,3130.00,2950.00,3015.00]},{ x:'04/12/2024',y:[3060.00,3070.00,2860.00,2900.00]},{ x:'04/15/2024',y:[2855.00,2880.00,2750.00,2755.00]},{ x:'04/16/2024',y:[2720.00,2940.00,2695.00,2830.00]},{ x:'04/17/2024',y:[2925.00,2935.00,2810.00,2900.00]},{ x:'04/18/2024',y:[2860.00,3080.00,2820.00,3035.00]},{ x:'04/19/2024',y:[3000.00,3075.00,2780.00,2860.00]},{ x:'04/22/2024',y:[2870.00,2925.00,2760.00,2765.00]},{ x:'04/23/2024',y:[2805.00,2890.00,2800.00,2860.00]},{ x:'04/24/2024',y:[2960.00,2990.00,2890.00,2975.00]},{ x:'04/25/2024',y:[2915.00,2990.00,2815.00,2830.00]},{ x:'04/26/2024',y:[2900.00,3110.00,2895.00,3110.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3661 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());