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/12/2024',y:[312.50,333.00,306.00,315.00]},{ x:'03/13/2024',y:[319.50,323.50,291.50,305.00]},{ x:'03/14/2024',y:[302.50,303.00,290.00,298.50]},{ x:'03/15/2024',y:[295.00,307.50,294.50,297.50]},{ x:'03/18/2024',y:[302.50,327.00,302.50,327.00]},{ x:'03/19/2024',y:[324.00,328.00,316.50,318.50]},{ x:'03/20/2024',y:[324.00,338.50,317.00,320.50]},{ x:'03/21/2024',y:[331.00,352.50,326.00,352.50]},{ x:'03/22/2024',y:[355.50,387.50,354.50,387.50]},{ x:'03/25/2024',y:[395.00,401.00,376.50,390.50]},{ x:'03/26/2024',y:[388.00,400.00,363.50,370.00]},{ x:'03/27/2024',y:[374.00,383.50,363.50,383.00]},{ x:'03/28/2024',y:[378.00,382.50,371.50,379.00]},{ x:'03/29/2024',y:[380.00,383.00,363.50,366.00]},{ x:'04/11/2024',y:[353.50,358.50,348.00,356.00]},{ x:'04/12/2024',y:[356.00,366.00,348.50,360.00]},{ x:'04/15/2024',y:[357.00,358.00,331.00,337.50]},{ x:'04/16/2024',y:[333.00,334.50,320.00,327.00]},{ x:'04/17/2024',y:[331.50,351.00,329.00,335.00]},{ x:'04/18/2024',y:[330.00,364.00,329.00,364.00]},{ x:'04/19/2024',y:[364.00,374.00,334.00,351.50]},{ x:'04/22/2024',y:[344.00,359.00,332.50,333.50]},{ x:'04/23/2024',y:[342.00,347.50,328.00,329.00]},{ 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]} ] }], 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());