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/24/2023',y:[322.00,329.00,314.00,315.50]},{ x:'03/27/2023',y:[311.50,320.00,304.00,307.50]},{ x:'03/28/2023',y:[310.00,314.50,296.00,301.00]},{ x:'03/29/2023',y:[305.00,307.50,294.00,301.50]},{ x:'03/30/2023',y:[308.50,308.50,304.00,305.00]},{ x:'03/31/2023',y:[305.00,312.50,303.50,308.50]},{ x:'04/06/2023',y:[305.00,313.00,304.00,311.00]},{ x:'04/07/2023',y:[309.50,311.00,307.00,308.00]},{ x:'04/10/2023',y:[309.00,312.00,306.00,309.00]},{ x:'04/11/2023',y:[310.00,321.00,309.50,316.00]},{ x:'04/12/2023',y:[314.00,315.00,310.00,312.00]},{ x:'04/13/2023',y:[308.00,312.50,307.50,308.50]},{ x:'04/14/2023',y:[310.50,315.50,310.50,311.50]},{ x:'04/17/2023',y:[310.00,322.00,310.00,319.00]},{ x:'04/18/2023',y:[318.50,327.00,316.00,322.00]},{ x:'04/19/2023',y:[322.00,322.00,316.50,317.00]},{ x:'04/20/2023',y:[319.50,319.50,310.00,311.00]},{ x:'04/21/2023',y:[318.00,341.00,318.00,336.50]},{ x:'04/24/2023',y:[330.00,354.00,319.00,337.00]},{ x:'04/25/2023',y:[345.00,355.00,334.50,343.00]},{ x:'04/26/2023',y:[349.00,350.00,330.00,337.50]},{ x:'04/27/2023',y:[336.50,338.50,328.00,328.50]},{ x:'04/28/2023',y:[334.50,335.00,330.00,334.00]},{ x:'05/02/2023',y:[338.00,347.00,334.50,346.50]},{ x:'05/03/2023',y:[345.50,350.50,338.50,339.00]},{ x:'05/04/2023',y:[344.50,344.50,333.00,337.50]},{ x:'05/05/2023',y:[335.00,348.50,335.00,346.50]},{ x:'05/08/2023',y:[347.50,355.00,333.00,338.00]},{ x:'05/09/2023',y:[350.50,350.50,340.00,343.00]},{ x:'05/10/2023',y:[349.50,358.00,343.00,351.00]},{ x:'05/11/2023',y:[360.00,382.00,352.00,374.00]},{ x:'05/12/2023',y:[370.50,379.50,370.00,374.00]},{ x:'05/15/2023',y:[373.50,373.50,361.50,366.00]},{ x:'05/16/2023',y:[368.00,373.00,363.50,368.00]},{ x:'05/17/2023',y:[366.50,376.50,364.00,372.00]},{ x:'05/18/2023',y:[378.00,389.00,373.50,373.50]},{ x:'05/19/2023',y:[383.00,400.00,368.50,374.00]},{ x:'05/22/2023',y:[379.50,391.00,377.00,388.50]},{ x:'05/23/2023',y:[384.00,390.00,378.00,386.50]},{ x:'05/24/2023',y:[390.00,399.50,384.00,392.50]},{ x:'05/25/2023',y:[400.00,431.50,400.00,429.00]},{ x:'05/26/2023',y:[440.00,471.50,431.50,471.50]},{ x:'05/29/2023',y:[491.00,505.00,470.00,476.00]},{ x:'05/30/2023',y:[479.00,485.00,455.00,468.00]},{ x:'05/31/2023',y:[468.00,482.50,466.50,477.50]},{ x:'06/01/2023',y:[475.50,518.00,475.50,514.00]},{ x:'06/02/2023',y:[525.00,544.00,511.00,528.00]},{ x:'06/05/2023',y:[534.00,573.00,520.00,520.00]},{ x:'06/06/2023',y:[523.00,545.00,517.00,525.00]},{ x:'06/07/2023',y:[550.00,577.00,541.00,577.00]},{ x:'06/08/2023',y:[612.00,612.00,520.00,522.00]},{ x:'06/09/2023',y:[530.00,544.00,530.00,530.00]},{ x:'06/12/2023',y:[534.00,537.00,509.00,530.00]},{ x:'06/13/2023',y:[540.00,572.00,527.00,531.00]},{ x:'06/14/2023',y:[532.00,568.00,531.00,537.00]},{ x:'06/15/2023',y:[539.00,551.00,529.00,537.00]},{ x:'06/16/2023',y:[542.00,548.00,533.00,543.00]},{ x:'06/19/2023',y:[548.00,558.00,536.00,553.00]},{ x:'06/20/2023',y:[550.00,561.00,541.00,545.00]},{ x:'06/21/2023',y:[546.00,572.00,546.00,563.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3131 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());