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/24/2024',y:[392.00,392.50,387.00,392.00]},{ x:'04/25/2024',y:[391.50,401.00,389.00,389.50]},{ x:'04/26/2024',y:[389.50,395.50,387.50,394.00]},{ x:'04/29/2024',y:[398.00,403.50,394.00,398.50]},{ x:'04/30/2024',y:[394.00,398.00,391.00,392.00]},{ x:'05/02/2024',y:[390.00,395.00,389.00,394.00]},{ x:'05/03/2024',y:[394.50,395.00,383.00,385.00]},{ x:'05/06/2024',y:[390.00,393.00,382.00,387.00]},{ x:'05/07/2024',y:[387.00,389.00,382.00,388.00]},{ x:'05/08/2024',y:[390.50,391.50,378.00,388.00]},{ x:'05/09/2024',y:[388.00,392.50,385.50,387.50]},{ x:'05/10/2024',y:[387.50,387.50,379.50,380.00]},{ x:'05/13/2024',y:[382.50,387.50,377.50,382.00]},{ x:'05/14/2024',y:[384.50,387.50,380.50,387.50]},{ x:'05/15/2024',y:[385.50,386.00,371.00,373.50]},{ x:'05/16/2024',y:[377.00,380.00,370.00,372.00]},{ x:'05/17/2024',y:[373.00,375.00,370.00,372.50]},{ x:'05/20/2024',y:[373.00,373.00,366.00,366.50]},{ x:'05/21/2024',y:[365.00,370.50,361.00,361.50]},{ x:'05/22/2024',y:[362.50,366.00,361.00,363.00]},{ x:'05/23/2024',y:[362.00,372.00,362.00,367.50]},{ x:'05/24/2024',y:[369.50,374.00,365.50,371.00]},{ x:'06/11/2024',y:[398.50,402.50,396.50,399.50]},{ x:'06/12/2024',y:[399.50,400.50,393.50,395.00]},{ x:'06/13/2024',y:[392.00,396.50,384.00,387.50]},{ x:'06/14/2024',y:[386.00,388.00,383.50,383.50]},{ x:'06/17/2024',y:[384.50,388.50,382.50,383.00]},{ x:'06/18/2024',y:[383.00,386.00,381.00,381.50]},{ x:'06/19/2024',y:[382.00,393.00,382.00,390.00]},{ x:'06/20/2024',y:[391.00,395.00,383.50,387.00]},{ x:'06/21/2024',y:[389.50,393.50,383.50,391.00]},{ x:'06/24/2024',y:[392.00,399.50,388.50,398.50]},{ x:'06/25/2024',y:[400.00,408.00,394.00,398.50]},{ x:'06/26/2024',y:[400.00,403.50,394.00,401.50]},{ x:'06/27/2024',y:[400.00,404.00,398.00,400.00]},{ x:'06/28/2024',y:[408.00,426.50,405.00,421.00]},{ x:'07/01/2024',y:[427.00,434.00,417.50,432.00]},{ x:'07/02/2024',y:[433.50,436.50,424.50,429.50]},{ x:'07/03/2024',y:[437.50,452.00,422.00,423.00]},{ x:'07/04/2024',y:[425.00,429.00,416.00,422.00]},{ x:'07/05/2024',y:[423.00,425.00,417.00,424.00]},{ x:'07/12/2024',y:[427.00,442.00,426.00,438.50]},{ x:'07/15/2024',y:[439.00,456.00,436.00,453.50]},{ x:'07/16/2024',y:[453.50,460.50,446.00,454.00]},{ x:'07/17/2024',y:[457.50,458.00,443.00,444.00]},{ x:'07/18/2024',y:[449.00,454.50,443.00,450.00]},{ x:'07/19/2024',y:[450.00,467.00,449.50,466.00]},{ x:'07/22/2024',y:[458.50,467.50,436.00,438.00]},{ x:'07/23/2024',y:[451.50,456.50,439.00,449.00]},{ x:'07/26/2024',y:[431.00,448.50,430.50,447.00]},{ x:'07/29/2024',y:[449.00,450.50,439.50,445.50]},{ x:'07/30/2024',y:[441.00,448.00,439.00,445.00]},{ x:'07/31/2024',y:[442.00,450.00,441.00,447.00]},{ x:'08/01/2024',y:[448.00,457.00,447.50,449.50]},{ x:'08/02/2024',y:[447.00,447.00,417.00,424.00]},{ x:'08/05/2024',y:[398.00,398.00,382.00,382.00]},{ x:'08/06/2024',y:[368.50,379.50,344.00,353.50]},{ x:'08/07/2024',y:[365.00,374.00,364.00,366.50]},{ x:'08/08/2024',y:[364.00,375.00,362.50,366.50]},{ x:'08/09/2024',y:[371.00,380.50,368.50,368.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1477 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());