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/30/2024',y:[431.50,438.00,429.00,438.00]},{ x:'05/02/2024',y:[436.50,438.00,431.00,437.00]},{ x:'05/03/2024',y:[438.50,441.00,430.00,430.00]},{ x:'05/06/2024',y:[429.00,434.00,421.00,428.50]},{ x:'05/07/2024',y:[430.00,442.50,426.50,437.50]},{ x:'05/08/2024',y:[438.00,440.50,432.50,434.50]},{ x:'05/09/2024',y:[424.00,425.50,402.00,402.00]},{ x:'05/10/2024',y:[405.00,413.00,402.50,408.50]},{ x:'05/13/2024',y:[409.00,413.50,403.00,404.00]},{ x:'05/14/2024',y:[407.00,410.00,403.50,403.50]},{ x:'05/15/2024',y:[404.00,408.50,395.00,395.00]},{ x:'05/16/2024',y:[398.50,406.00,397.50,405.00]},{ x:'05/17/2024',y:[405.00,408.00,402.50,402.50]},{ x:'05/20/2024',y:[403.00,409.50,397.00,402.00]},{ x:'05/21/2024',y:[404.00,405.00,395.50,405.00]},{ x:'05/22/2024',y:[401.50,414.00,401.50,414.00]},{ x:'05/23/2024',y:[410.50,412.00,401.00,408.00]},{ x:'05/24/2024',y:[403.50,410.50,402.00,408.00]},{ x:'06/11/2024',y:[419.50,419.50,416.00,418.00]},{ x:'06/12/2024',y:[420.50,428.50,418.50,426.50]},{ x:'06/13/2024',y:[430.00,436.50,426.50,426.50]},{ x:'06/14/2024',y:[429.00,429.00,418.50,418.50]},{ x:'06/17/2024',y:[418.50,421.50,415.50,418.00]},{ x:'06/18/2024',y:[420.00,421.00,416.00,420.50]},{ x:'06/19/2024',y:[420.00,421.50,418.00,418.50]},{ x:'06/20/2024',y:[418.50,422.00,418.50,419.50]},{ x:'06/21/2024',y:[415.50,421.50,415.50,418.00]},{ x:'06/24/2024',y:[418.00,423.00,413.00,418.00]},{ x:'06/25/2024',y:[422.50,436.50,420.50,436.00]},{ x:'06/26/2024',y:[437.50,438.00,430.50,438.00]},{ x:'06/27/2024',y:[436.00,439.50,428.50,434.50]},{ x:'06/28/2024',y:[433.00,433.00,427.00,427.50]},{ x:'07/01/2024',y:[428.00,435.50,422.00,424.50]},{ x:'07/02/2024',y:[424.00,429.00,415.50,416.50]},{ x:'07/03/2024',y:[418.00,419.50,410.50,414.00]},{ x:'07/04/2024',y:[402.00,405.00,390.00,392.50]},{ x:'07/05/2024',y:[394.50,396.50,393.00,396.50]},{ x:'07/12/2024',y:[384.00,394.00,383.00,392.50]},{ x:'07/15/2024',y:[393.00,396.50,390.50,396.00]},{ x:'07/16/2024',y:[397.50,397.50,390.50,392.50]},{ x:'07/17/2024',y:[393.00,394.50,389.00,390.00]},{ x:'07/18/2024',y:[386.00,389.00,381.00,385.00]},{ x:'07/19/2024',y:[385.00,385.00,373.00,373.00]},{ x:'07/22/2024',y:[373.00,375.00,356.50,370.50]},{ x:'07/23/2024',y:[374.00,376.00,368.00,376.00]},{ x:'07/26/2024',y:[371.50,373.00,358.50,364.00]},{ x:'07/29/2024',y:[369.50,369.50,354.50,360.00]},{ x:'07/30/2024',y:[360.00,365.00,351.50,361.50]},{ x:'07/31/2024',y:[355.50,362.50,350.00,360.00]},{ x:'08/01/2024',y:[366.00,368.00,363.00,368.00]},{ x:'08/02/2024',y:[360.50,365.50,357.50,357.50]},{ x:'08/05/2024',y:[347.50,348.00,324.50,328.50]},{ x:'08/06/2024',y:[333.00,339.00,318.00,334.00]},{ x:'08/07/2024',y:[334.00,352.00,334.00,351.00]},{ x:'08/08/2024',y:[348.00,350.00,344.00,346.00]},{ x:'08/09/2024',y:[350.00,356.00,350.00,354.50]},{ x:'08/12/2024',y:[358.00,361.00,354.50,361.00]},{ x:'08/13/2024',y:[360.00,365.00,358.00,365.00]},{ x:'08/14/2024',y:[378.00,378.00,364.50,367.00]},{ x:'08/15/2024',y:[367.00,369.50,361.00,364.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6121 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());