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:[410.00,415.00,406.50,413.50]},{ x:'01/23/2024',y:[417.50,417.50,404.00,410.00]},{ x:'01/24/2024',y:[410.00,410.00,400.00,400.50]},{ x:'01/25/2024',y:[406.00,407.50,399.00,400.50]},{ x:'01/26/2024',y:[407.50,419.00,396.00,402.00]},{ x:'01/29/2024',y:[399.50,401.50,396.00,396.50]},{ x:'01/30/2024',y:[395.50,402.50,393.50,401.00]},{ x:'01/31/2024',y:[396.50,398.00,380.50,385.50]},{ x:'02/01/2024',y:[385.00,395.00,384.00,393.50]},{ x:'02/02/2024',y:[396.00,401.00,390.00,390.00]},{ x:'02/05/2024',y:[390.00,392.50,382.50,387.00]},{ x:'02/15/2024',y:[391.00,391.50,374.00,390.00]},{ x:'02/16/2024',y:[392.00,408.50,389.00,404.00]},{ x:'02/19/2024',y:[411.00,419.00,402.50,405.50]},{ x:'02/20/2024',y:[406.00,410.00,397.50,403.50]},{ x:'02/21/2024',y:[405.00,411.00,398.50,406.00]},{ x:'02/22/2024',y:[411.00,425.00,408.50,421.00]},{ x:'02/23/2024',y:[420.50,424.50,410.50,410.50]},{ x:'02/26/2024',y:[409.50,425.00,408.00,415.50]},{ x:'02/27/2024',y:[416.00,423.00,407.50,411.50]},{ x:'02/29/2024',y:[412.50,420.00,410.00,417.00]},{ x:'03/01/2024',y:[416.00,416.50,400.00,401.50]},{ x:'03/04/2024',y:[402.50,425.00,402.50,421.00]},{ x:'03/05/2024',y:[424.50,438.00,415.50,418.50]},{ x:'03/06/2024',y:[419.00,424.50,408.00,412.00]},{ x:'03/07/2024',y:[415.00,415.50,390.00,390.00]},{ x:'03/08/2024',y:[391.50,396.00,380.50,384.00]},{ x:'03/11/2024',y:[380.50,404.50,380.50,402.50]},{ x:'03/12/2024',y:[401.00,402.50,387.50,387.50]},{ x:'03/13/2024',y:[389.00,391.50,350.50,352.00]},{ x:'03/14/2024',y:[355.00,374.00,344.00,371.00]},{ x:'03/15/2024',y:[367.50,378.00,362.50,378.00]},{ x:'03/18/2024',y:[375.00,376.00,365.50,372.50]},{ x:'03/19/2024',y:[369.50,371.00,361.00,361.50]},{ x:'03/20/2024',y:[360.50,363.50,356.00,361.00]},{ x:'03/21/2024',y:[367.50,368.50,354.00,354.50]},{ x:'03/22/2024',y:[355.50,367.00,355.00,367.00]},{ x:'03/25/2024',y:[363.00,369.50,350.00,350.00]},{ x:'03/26/2024',y:[351.00,356.00,343.50,347.50]},{ x:'03/27/2024',y:[349.00,350.00,335.00,336.50]},{ x:'03/28/2024',y:[330.00,332.50,323.00,327.00]},{ x:'03/29/2024',y:[332.50,336.50,325.50,328.00]},{ x:'04/01/2024',y:[329.00,342.50,328.50,339.00]},{ x:'04/02/2024',y:[337.50,338.00,319.00,319.00]},{ x:'04/03/2024',y:[319.00,322.00,315.00,319.50]},{ x:'04/08/2024',y:[321.00,324.00,315.50,317.50]},{ x:'04/09/2024',y:[321.50,331.00,319.00,328.00]},{ x:'04/10/2024',y:[334.50,356.00,332.00,355.50]},{ x:'04/11/2024',y:[357.00,374.50,353.00,372.50]},{ x:'04/12/2024',y:[370.00,396.00,366.00,387.00]},{ x:'04/15/2024',y:[393.00,398.50,386.50,396.50]},{ x:'04/16/2024',y:[389.00,395.00,365.00,369.50]},{ x:'04/17/2024',y:[366.00,374.50,358.50,368.50]},{ x:'04/18/2024',y:[361.50,381.00,359.00,373.00]},{ x:'04/19/2024',y:[364.00,365.50,336.00,336.00]},{ x:'04/22/2024',y:[332.00,341.00,327.00,330.50]},{ x:'04/23/2024',y:[333.50,347.50,333.50,344.00]},{ x:'04/24/2024',y:[370.00,378.00,369.50,378.00]},{ x:'04/25/2024',y:[380.00,399.00,374.00,379.00]},{ x:'04/26/2024',y:[385.50,388.00,367.50,388.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6415 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());