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:[376.50,379.50,367.00,369.00]},{ x:'03/20/2024',y:[369.50,375.00,360.50,362.50]},{ x:'03/21/2024',y:[368.00,378.00,363.00,377.50]},{ x:'03/22/2024',y:[377.00,384.50,366.50,367.00]},{ x:'03/25/2024',y:[369.50,373.50,362.50,373.50]},{ x:'03/26/2024',y:[380.50,392.00,366.50,374.00]},{ x:'03/27/2024',y:[375.50,377.00,369.00,371.50]},{ x:'03/28/2024',y:[371.50,376.50,364.00,376.50]},{ x:'03/29/2024',y:[374.50,376.50,373.00,375.00]},{ x:'04/01/2024',y:[375.50,376.00,368.50,368.50]},{ x:'04/02/2024',y:[370.00,370.50,363.00,363.50]},{ x:'04/03/2024',y:[361.50,381.00,360.00,376.50]},{ x:'04/08/2024',y:[376.00,382.50,370.50,373.00]},{ x:'04/09/2024',y:[374.50,377.50,371.00,376.50]},{ x:'04/10/2024',y:[370.50,372.50,361.50,363.00]},{ x:'04/11/2024',y:[363.00,366.00,362.00,362.50]},{ x:'04/12/2024',y:[363.50,372.50,363.50,368.00]},{ x:'04/15/2024',y:[365.00,365.50,355.00,355.00]},{ x:'04/16/2024',y:[350.00,350.00,319.50,319.50]},{ x:'04/17/2024',y:[318.50,324.00,317.50,323.50]},{ x:'04/18/2024',y:[318.00,347.50,318.00,334.00]},{ x:'04/19/2024',y:[330.00,330.00,305.00,315.50]},{ x:'04/22/2024',y:[322.00,322.50,302.00,302.00]},{ x:'04/23/2024',y:[308.00,313.50,303.50,304.00]},{ x:'04/24/2024',y:[311.00,318.00,308.00,309.50]},{ x:'04/25/2024',y:[307.00,307.50,301.00,301.00]},{ x:'04/26/2024',y:[311.00,320.00,308.00,310.00]},{ x:'04/29/2024',y:[314.00,318.00,311.50,317.50]},{ x:'04/30/2024',y:[319.00,319.00,312.50,315.50]},{ x:'05/02/2024',y:[315.50,317.00,312.50,313.00]},{ x:'05/03/2024',y:[317.50,317.50,308.50,308.50]},{ x:'05/06/2024',y:[310.00,313.00,302.00,302.50]},{ x:'05/07/2024',y:[303.50,311.50,302.00,310.00]},{ x:'05/08/2024',y:[317.00,338.50,317.00,327.50]},{ x:'05/09/2024',y:[324.00,338.00,322.50,322.50]},{ x:'05/10/2024',y:[325.50,329.50,313.00,329.00]},{ x:'05/13/2024',y:[338.50,348.00,328.50,331.00]},{ x:'05/14/2024',y:[331.50,340.00,330.50,338.50]},{ x:'05/15/2024',y:[342.00,343.50,334.00,337.50]},{ x:'05/16/2024',y:[340.00,342.00,326.00,326.00]},{ x:'05/17/2024',y:[328.00,333.00,326.00,330.00]},{ x:'05/20/2024',y:[331.00,342.00,331.00,331.50]},{ x:'05/21/2024',y:[334.50,342.00,334.50,340.00]},{ x:'05/22/2024',y:[340.00,343.00,337.50,340.00]},{ x:'05/23/2024',y:[341.50,343.00,330.00,338.00]},{ x:'05/24/2024',y:[335.00,340.00,332.50,338.00]},{ x:'06/11/2024',y:[379.00,379.50,367.00,369.50]},{ x:'06/12/2024',y:[369.50,371.50,363.00,366.00]},{ x:'06/13/2024',y:[370.00,373.00,365.00,366.50]},{ x:'06/14/2024',y:[368.00,385.00,366.50,384.00]},{ x:'06/17/2024',y:[386.50,396.00,381.00,382.00]},{ x:'06/18/2024',y:[385.50,386.50,377.50,378.00]},{ x:'06/19/2024',y:[379.00,385.00,378.00,380.50]},{ x:'06/20/2024',y:[382.00,384.00,378.50,381.00]},{ x:'06/21/2024',y:[380.50,381.50,373.50,380.00]},{ x:'06/24/2024',y:[380.00,381.50,375.00,379.00]},{ x:'06/25/2024',y:[379.00,380.00,372.00,377.00]},{ x:'06/26/2024',y:[381.00,392.00,378.50,385.00]},{ x:'06/27/2024',y:[385.00,410.00,385.00,405.50]},{ x:'06/28/2024',y:[418.00,427.00,403.00,413.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3693 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());