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/29/2024',y:[403.00,404.00,396.50,400.00]},{ x:'04/30/2024',y:[398.00,398.50,389.50,391.00]},{ x:'05/02/2024',y:[391.00,392.00,386.00,388.50]},{ x:'05/03/2024',y:[393.00,393.00,383.00,383.00]},{ x:'05/06/2024',y:[385.00,395.00,385.00,395.00]},{ x:'05/07/2024',y:[388.00,388.00,368.00,374.50]},{ x:'05/08/2024',y:[375.00,378.50,372.00,373.00]},{ x:'05/09/2024',y:[373.00,373.00,363.00,363.00]},{ x:'05/10/2024',y:[365.00,369.00,363.00,364.00]},{ x:'05/13/2024',y:[365.00,367.00,362.50,363.00]},{ x:'05/14/2024',y:[367.00,371.50,365.00,365.50]},{ x:'05/15/2024',y:[368.00,368.00,362.00,362.00]},{ x:'05/16/2024',y:[366.50,367.00,363.50,365.50]},{ x:'05/17/2024',y:[366.00,369.50,363.50,368.00]},{ x:'05/20/2024',y:[371.00,390.00,368.50,386.00]},{ x:'05/21/2024',y:[385.00,387.00,373.50,374.50]},{ x:'05/22/2024',y:[380.00,388.00,377.00,379.50]},{ x:'05/23/2024',y:[375.50,380.00,373.00,374.00]},{ x:'05/24/2024',y:[376.00,385.50,373.50,378.50]},{ x:'06/11/2024',y:[379.50,380.00,369.00,369.00]},{ x:'06/12/2024',y:[371.00,371.00,367.50,370.50]},{ x:'06/13/2024',y:[372.50,374.00,369.50,372.00]},{ x:'06/14/2024',y:[372.00,381.00,372.00,378.50]},{ x:'06/17/2024',y:[380.50,381.00,373.50,376.50]},{ x:'06/18/2024',y:[377.00,379.50,375.00,377.50]},{ x:'06/19/2024',y:[379.00,380.00,375.00,375.00]},{ x:'06/20/2024',y:[376.50,386.50,376.50,383.00]},{ x:'06/21/2024',y:[383.00,386.00,380.50,383.50]},{ x:'06/24/2024',y:[386.50,404.00,386.00,387.00]},{ x:'06/25/2024',y:[393.00,397.00,378.00,381.00]},{ x:'06/26/2024',y:[383.00,392.00,382.00,386.50]},{ x:'06/27/2024',y:[388.00,394.00,381.00,390.00]},{ x:'06/28/2024',y:[392.50,405.50,388.00,400.50]},{ x:'07/01/2024',y:[408.00,418.00,403.00,412.50]},{ x:'07/02/2024',y:[413.50,415.50,402.00,415.50]},{ x:'07/03/2024',y:[414.50,414.50,406.00,407.50]},{ x:'07/04/2024',y:[407.00,408.50,397.50,397.50]},{ x:'07/05/2024',y:[398.50,415.00,398.00,398.50]},{ x:'07/12/2024',y:[382.00,387.50,379.50,379.50]},{ x:'07/15/2024',y:[379.50,383.00,375.50,376.50]},{ x:'07/16/2024',y:[379.50,385.00,379.00,384.00]},{ x:'07/17/2024',y:[385.50,386.50,377.50,381.50]},{ x:'07/18/2024',y:[380.50,382.00,376.00,381.50]},{ x:'07/19/2024',y:[381.50,381.50,369.00,369.50]},{ x:'07/22/2024',y:[372.00,372.00,351.00,359.00]},{ x:'07/23/2024',y:[363.00,366.00,361.00,364.50]},{ x:'07/26/2024',y:[356.00,357.50,350.50,351.50]},{ x:'07/29/2024',y:[362.00,362.00,339.50,340.00]},{ x:'07/30/2024',y:[338.00,339.50,325.00,338.00]},{ x:'07/31/2024',y:[335.00,341.00,335.00,337.00]},{ x:'08/01/2024',y:[340.00,347.50,339.00,345.00]},{ x:'08/02/2024',y:[345.00,345.00,330.50,331.00]},{ x:'08/05/2024',y:[315.00,315.00,298.00,298.00]},{ x:'08/06/2024',y:[303.50,308.00,268.50,286.50]},{ x:'08/07/2024',y:[287.50,304.50,287.50,302.00]},{ x:'08/08/2024',y:[300.00,302.00,293.00,296.50]},{ x:'08/09/2024',y:[305.00,312.00,302.00,307.50]},{ x:'08/12/2024',y:[291.00,306.50,287.00,300.00]},{ x:'08/13/2024',y:[308.50,315.00,302.00,309.50]},{ x:'08/14/2024',y:[306.00,311.50,303.50,304.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8478 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());