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/26/2024',y:[364.00,364.50,361.50,361.50]},{ x:'04/29/2024',y:[361.50,374.50,359.50,374.50]},{ x:'04/30/2024',y:[369.50,369.50,363.00,363.00]},{ x:'05/02/2024',y:[363.00,363.00,355.00,356.50]},{ x:'05/03/2024',y:[362.00,362.00,358.50,358.50]},{ x:'05/06/2024',y:[362.00,362.00,359.00,360.00]},{ x:'05/07/2024',y:[360.00,363.00,358.00,360.00]},{ x:'05/08/2024',y:[359.50,361.50,359.50,359.50]},{ x:'05/09/2024',y:[360.00,360.00,356.00,356.00]},{ x:'05/10/2024',y:[356.00,356.00,344.50,346.50]},{ x:'05/13/2024',y:[348.00,351.50,340.50,350.00]},{ x:'05/14/2024',y:[350.00,350.00,347.00,347.00]},{ x:'05/15/2024',y:[349.00,349.00,345.00,345.50]},{ x:'05/16/2024',y:[346.00,348.50,344.50,346.00]},{ x:'05/17/2024',y:[346.00,347.00,346.00,347.00]},{ x:'05/20/2024',y:[347.00,349.00,347.00,347.50]},{ x:'05/21/2024',y:[346.00,347.00,344.00,344.50]},{ x:'05/22/2024',y:[344.00,346.50,344.00,346.00]},{ x:'05/23/2024',y:[346.00,348.00,344.00,347.00]},{ x:'05/24/2024',y:[345.00,346.00,344.50,345.50]},{ x:'06/11/2024',y:[359.00,366.00,356.00,357.00]},{ x:'06/12/2024',y:[357.50,362.50,357.50,359.00]},{ x:'06/13/2024',y:[359.00,360.00,354.50,357.00]},{ x:'06/14/2024',y:[356.50,357.50,351.00,356.00]},{ x:'06/17/2024',y:[356.00,356.50,355.00,355.00]},{ x:'06/18/2024',y:[355.50,361.00,355.50,356.50]},{ x:'06/19/2024',y:[359.50,359.50,355.00,356.50]},{ x:'06/20/2024',y:[357.50,360.00,355.00,360.00]},{ x:'06/21/2024',y:[359.00,359.00,354.50,355.50]},{ x:'06/24/2024',y:[356.00,357.00,354.50,355.50]},{ x:'06/25/2024',y:[355.00,361.00,353.50,359.50]},{ x:'06/26/2024',y:[362.00,362.50,360.00,360.00]},{ x:'06/27/2024',y:[360.00,362.00,360.00,361.50]},{ x:'06/28/2024',y:[360.50,363.00,360.00,361.00]},{ x:'07/01/2024',y:[352.50,359.50,352.50,355.00]},{ x:'07/02/2024',y:[355.50,357.50,355.50,356.00]},{ x:'07/03/2024',y:[356.50,357.50,354.00,354.00]},{ x:'07/04/2024',y:[357.50,358.50,355.50,358.50]},{ x:'07/05/2024',y:[359.00,363.00,358.00,360.50]},{ x:'07/12/2024',y:[425.00,433.50,414.50,430.00]},{ x:'07/15/2024',y:[441.00,444.00,417.00,417.00]},{ x:'07/16/2024',y:[413.00,428.00,410.50,423.00]},{ x:'07/17/2024',y:[422.50,422.50,405.50,406.00]},{ x:'07/18/2024',y:[400.00,415.00,396.00,415.00]},{ x:'07/19/2024',y:[415.00,421.00,409.00,418.00]},{ x:'07/22/2024',y:[418.00,418.00,403.00,411.00]},{ x:'07/23/2024',y:[415.00,424.50,415.00,420.00]},{ x:'07/26/2024',y:[418.00,433.00,416.50,431.00]},{ x:'07/29/2024',y:[432.00,443.00,420.00,420.00]},{ x:'07/30/2024',y:[413.00,414.00,404.50,412.00]},{ x:'07/31/2024',y:[415.00,439.00,414.50,428.50]},{ x:'08/01/2024',y:[430.50,445.00,430.50,432.00]},{ x:'08/02/2024',y:[425.00,447.00,425.00,431.00]},{ x:'08/05/2024',y:[425.50,432.00,411.00,414.00]},{ x:'08/06/2024',y:[434.50,455.00,416.50,454.50]},{ x:'08/07/2024',y:[470.00,495.00,463.00,493.50]},{ x:'08/08/2024',y:[493.50,496.00,482.00,482.00]},{ x:'08/09/2024',y:[489.50,505.00,467.00,488.50]},{ x:'08/12/2024',y:[496.00,502.00,484.00,485.00]},{ x:'08/13/2024',y:[493.00,510.00,487.00,505.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6561 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());