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:'01/22/2024',y:[408.00,410.50,406.00,406.00]},{ x:'01/23/2024',y:[408.50,410.00,406.50,410.00]},{ x:'01/24/2024',y:[409.00,411.00,401.50,406.00]},{ x:'01/25/2024',y:[405.00,408.50,402.00,405.00]},{ x:'01/26/2024',y:[405.00,405.00,396.00,399.50]},{ x:'01/29/2024',y:[399.50,407.00,396.00,404.00]},{ x:'01/30/2024',y:[402.50,406.00,400.00,402.50]},{ x:'01/31/2024',y:[399.00,406.00,398.50,406.00]},{ x:'02/01/2024',y:[401.00,401.50,387.00,389.50]},{ x:'02/02/2024',y:[391.00,395.50,390.50,395.50]},{ x:'02/05/2024',y:[392.00,397.50,389.00,392.00]},{ x:'02/15/2024',y:[392.50,392.50,384.00,385.50]},{ x:'02/16/2024',y:[387.00,391.00,383.00,390.00]},{ x:'02/19/2024',y:[391.00,398.00,391.00,397.50]},{ x:'02/20/2024',y:[395.50,400.00,395.50,396.50]},{ x:'02/21/2024',y:[399.00,421.00,399.00,418.50]},{ x:'02/22/2024',y:[421.00,431.50,418.50,423.00]},{ x:'02/23/2024',y:[425.00,426.00,418.50,420.00]},{ x:'02/26/2024',y:[423.00,436.00,423.00,435.00]},{ x:'02/27/2024',y:[435.00,439.00,426.00,427.00]},{ x:'02/29/2024',y:[428.00,434.00,423.50,426.50]},{ x:'03/01/2024',y:[422.50,428.50,421.00,421.00]},{ x:'03/04/2024',y:[421.00,435.00,421.00,434.50]},{ x:'03/05/2024',y:[434.50,447.00,433.00,446.00]},{ x:'03/06/2024',y:[435.00,443.00,433.50,443.00]},{ x:'03/07/2024',y:[444.00,487.00,444.00,487.00]},{ x:'03/08/2024',y:[490.00,500.00,465.00,495.50]},{ x:'03/11/2024',y:[490.00,492.00,466.50,477.00]},{ x:'03/12/2024',y:[476.50,523.00,474.50,506.00]},{ x:'03/13/2024',y:[514.00,556.00,511.00,556.00]},{ x:'03/14/2024',y:[551.00,551.00,501.00,501.00]},{ x:'03/15/2024',y:[476.00,498.50,465.50,469.00]},{ x:'03/18/2024',y:[472.00,478.00,460.50,471.00]},{ x:'03/19/2024',y:[474.00,508.00,474.00,488.00]},{ x:'03/20/2024',y:[505.00,517.00,480.00,487.00]},{ x:'03/21/2024',y:[495.00,500.00,470.00,470.00]},{ x:'03/22/2024',y:[472.50,473.00,449.00,456.00]},{ x:'03/25/2024',y:[455.50,461.50,438.00,438.00]},{ x:'03/26/2024',y:[443.50,453.00,430.50,437.50]},{ x:'03/27/2024',y:[445.00,464.00,442.00,456.50]},{ x:'03/28/2024',y:[462.00,464.00,450.00,451.50]},{ x:'03/29/2024',y:[453.00,456.50,437.00,448.00]},{ x:'04/01/2024',y:[443.00,445.00,434.00,434.00]},{ x:'04/02/2024',y:[434.50,441.00,434.50,437.00]},{ x:'04/03/2024',y:[438.00,442.50,430.00,438.00]},{ x:'04/08/2024',y:[437.00,438.50,428.00,434.50]},{ x:'04/09/2024',y:[434.00,437.50,431.00,437.00]},{ x:'04/10/2024',y:[439.00,439.50,427.00,427.00]},{ x:'04/11/2024',y:[427.00,433.00,421.00,433.00]},{ x:'04/12/2024',y:[429.00,431.00,424.00,430.00]},{ x:'04/15/2024',y:[429.50,433.00,427.00,430.50]},{ x:'04/16/2024',y:[427.50,427.50,416.00,416.50]},{ x:'04/17/2024',y:[416.50,423.00,415.50,416.00]},{ x:'04/18/2024',y:[419.50,431.50,413.50,431.50]},{ x:'04/19/2024',y:[428.00,428.00,408.00,413.00]},{ x:'04/22/2024',y:[415.00,420.50,411.00,417.50]},{ x:'04/23/2024',y:[418.50,420.00,412.00,415.00]},{ x:'04/24/2024',y:[419.50,423.50,416.00,423.50]},{ x:'04/25/2024',y:[423.50,426.50,421.00,423.50]},{ x:'04/26/2024',y:[426.50,433.00,423.00,430.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());