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/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]},{ x:'07/01/2024',y:[415.50,418.50,407.50,408.00]},{ x:'07/02/2024',y:[406.50,414.00,400.50,414.00]},{ x:'07/03/2024',y:[421.00,421.50,411.50,414.00]},{ x:'07/04/2024',y:[419.00,434.00,416.50,419.50]},{ x:'07/05/2024',y:[421.50,431.50,415.50,427.50]},{ x:'07/12/2024',y:[370.00,381.00,367.50,375.50]},{ x:'07/15/2024',y:[380.50,383.00,375.00,377.00]},{ x:'07/16/2024',y:[380.00,388.00,377.50,384.50]},{ x:'07/17/2024',y:[382.50,388.00,381.00,381.00]},{ x:'07/18/2024',y:[377.00,378.00,368.00,374.00]},{ x:'07/19/2024',y:[374.00,378.00,371.00,371.00]},{ x:'07/22/2024',y:[368.00,370.50,347.00,348.00]},{ x:'07/23/2024',y:[351.50,358.50,351.50,357.50]},{ x:'07/26/2024',y:[348.00,350.50,343.00,348.00]},{ x:'07/29/2024',y:[350.50,353.00,338.50,339.00]},{ x:'07/30/2024',y:[335.00,354.00,335.00,353.00]},{ x:'07/31/2024',y:[353.50,384.50,352.00,379.50]},{ x:'08/01/2024',y:[388.00,388.00,378.00,380.50]},{ x:'08/02/2024',y:[365.00,375.00,365.00,367.00]},{ x:'08/05/2024',y:[356.00,356.00,330.50,330.50]},{ x:'08/06/2024',y:[311.00,339.00,306.00,329.50]},{ x:'08/07/2024',y:[338.50,362.00,334.00,362.00]},{ x:'08/08/2024',y:[355.50,376.00,354.00,375.00]},{ x:'08/09/2024',y:[390.00,391.50,371.50,383.00]},{ x:'08/12/2024',y:[385.00,388.00,379.50,384.00]},{ x:'08/13/2024',y:[385.50,403.00,385.00,391.00]} ] }], 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());