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:'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]},{ x:'04/29/2024',y:[384.00,398.00,382.00,398.00]},{ x:'04/30/2024',y:[400.50,436.50,396.00,436.50]},{ x:'05/02/2024',y:[425.00,434.50,417.50,426.00]},{ x:'05/03/2024',y:[435.00,435.00,417.50,423.00]},{ x:'05/06/2024',y:[423.00,425.50,398.50,404.00]},{ x:'05/07/2024',y:[408.00,413.50,395.00,410.00]},{ x:'05/08/2024',y:[407.00,408.50,401.00,407.00]},{ x:'05/09/2024',y:[408.00,420.00,405.00,416.00]},{ x:'05/10/2024',y:[419.50,421.00,405.50,414.50]},{ x:'05/13/2024',y:[410.50,417.00,402.00,412.50]},{ x:'05/14/2024',y:[410.00,414.00,403.00,413.50]},{ x:'05/15/2024',y:[407.50,413.00,398.50,410.00]},{ x:'05/16/2024',y:[428.00,451.00,426.00,450.00]},{ x:'05/17/2024',y:[445.00,453.50,431.00,443.00]},{ x:'05/20/2024',y:[441.00,443.00,419.50,420.00]},{ x:'05/21/2024',y:[420.00,428.50,415.50,419.00]},{ x:'05/22/2024',y:[419.00,443.00,416.50,439.00]},{ x:'05/23/2024',y:[438.00,480.00,437.00,478.00]},{ x:'05/24/2024',y:[468.00,478.50,463.50,476.50]},{ x:'06/11/2024',y:[484.00,498.00,479.00,482.00]},{ x:'06/12/2024',y:[480.00,495.00,478.50,484.00]},{ x:'06/13/2024',y:[490.00,510.00,488.00,501.00]},{ x:'06/14/2024',y:[505.00,527.00,501.00,526.00]},{ x:'06/17/2024',y:[530.00,548.00,521.00,525.00]},{ x:'06/18/2024',y:[520.00,525.00,502.00,510.00]},{ x:'06/19/2024',y:[517.00,524.00,505.00,505.00]},{ x:'06/20/2024',y:[516.00,528.00,510.00,520.00]},{ x:'06/21/2024',y:[513.00,529.00,501.00,517.00]},{ x:'06/24/2024',y:[517.00,517.00,505.00,507.00]},{ x:'06/25/2024',y:[510.00,510.00,496.00,500.00]},{ x:'06/26/2024',y:[503.00,506.00,484.00,485.50]},{ x:'06/27/2024',y:[479.50,479.50,462.00,466.50]},{ x:'06/28/2024',y:[470.50,476.50,461.50,462.00]},{ x:'07/01/2024',y:[462.00,465.50,442.00,444.50]},{ x:'07/02/2024',y:[449.00,453.50,435.00,440.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());