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/24/2024',y:[341.00,361.50,341.00,361.50]},{ x:'04/25/2024',y:[362.00,375.00,360.50,368.00]},{ x:'04/26/2024',y:[384.00,399.00,370.00,383.50]},{ x:'04/29/2024',y:[395.00,396.50,384.00,394.00]},{ x:'04/30/2024',y:[400.00,433.00,397.00,433.00]},{ x:'05/02/2024',y:[431.50,438.00,419.00,423.00]},{ x:'05/03/2024',y:[432.00,442.50,413.00,417.00]},{ x:'05/06/2024',y:[422.00,423.50,406.00,412.00]},{ x:'05/07/2024',y:[415.00,420.00,400.50,409.00]},{ x:'05/08/2024',y:[407.00,418.50,399.00,414.50]},{ x:'05/09/2024',y:[422.00,430.00,418.00,425.00]},{ x:'05/10/2024',y:[430.00,433.00,415.00,422.50]},{ x:'05/13/2024',y:[427.00,427.00,417.50,424.00]},{ x:'05/14/2024',y:[420.00,430.00,419.00,429.00]},{ x:'05/15/2024',y:[429.00,436.00,426.50,427.00]},{ x:'05/16/2024',y:[437.00,440.00,430.00,437.00]},{ x:'05/17/2024',y:[434.50,442.50,434.50,442.50]},{ x:'05/20/2024',y:[445.00,445.00,427.00,427.00]},{ x:'05/21/2024',y:[426.00,436.00,425.00,436.00]},{ x:'05/22/2024',y:[434.50,443.50,433.50,439.00]},{ x:'05/23/2024',y:[446.50,482.00,446.50,478.00]},{ x:'05/24/2024',y:[472.00,501.00,457.00,495.00]},{ x:'06/11/2024',y:[477.50,482.00,467.00,475.00]},{ x:'06/12/2024',y:[481.50,481.50,477.00,478.00]},{ x:'06/13/2024',y:[485.00,488.00,478.50,487.00]},{ x:'06/14/2024',y:[502.00,505.00,495.00,505.00]},{ x:'06/17/2024',y:[515.00,533.00,498.50,504.00]},{ x:'06/18/2024',y:[507.00,511.00,455.00,474.50]},{ x:'06/19/2024',y:[476.00,481.00,462.00,470.00]},{ x:'06/20/2024',y:[470.00,486.50,462.00,482.00]},{ x:'06/21/2024',y:[481.50,481.50,463.00,464.00]},{ x:'06/24/2024',y:[464.00,470.00,453.00,464.00]},{ x:'06/25/2024',y:[459.00,472.50,445.00,469.00]},{ x:'06/26/2024',y:[469.00,492.00,467.00,486.50]},{ x:'06/27/2024',y:[481.50,486.00,474.00,474.00]},{ x:'06/28/2024',y:[476.00,493.50,476.00,482.00]},{ x:'07/01/2024',y:[479.00,484.00,450.00,450.00]},{ x:'07/02/2024',y:[450.00,464.00,445.50,464.00]},{ x:'07/03/2024',y:[462.50,505.00,462.50,492.00]},{ x:'07/04/2024',y:[499.00,500.00,480.00,482.50]},{ x:'07/05/2024',y:[485.00,494.00,478.00,490.00]},{ x:'07/12/2024',y:[450.50,460.00,445.50,454.00]},{ x:'07/15/2024',y:[455.50,455.50,409.00,409.00]},{ x:'07/16/2024',y:[406.50,425.00,398.00,400.50]},{ x:'07/17/2024',y:[401.50,412.00,392.50,396.00]},{ x:'07/18/2024',y:[387.00,390.50,382.50,390.00]},{ x:'07/19/2024',y:[390.50,399.00,385.00,385.00]},{ x:'07/22/2024',y:[387.00,390.00,367.00,374.00]},{ x:'07/23/2024',y:[380.00,392.00,378.00,391.00]},{ x:'07/26/2024',y:[367.00,383.00,365.00,374.00]},{ x:'07/29/2024',y:[379.00,380.00,337.00,344.50]},{ x:'07/30/2024',y:[348.00,364.00,340.00,361.50]},{ x:'07/31/2024',y:[357.50,364.50,348.00,351.50]},{ x:'08/01/2024',y:[361.50,369.00,358.00,364.00]},{ x:'08/02/2024',y:[355.00,355.00,328.00,328.00]},{ x:'08/05/2024',y:[295.50,296.00,295.50,295.50]},{ x:'08/06/2024',y:[298.50,298.50,266.00,282.00]},{ x:'08/07/2024',y:[282.00,310.00,282.00,310.00]},{ x:'08/08/2024',y:[303.50,320.00,293.00,297.00]},{ x:'08/09/2024',y:[317.50,323.50,310.50,314.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8996 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());