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:'11/23/2022',y:[484.00,485.00,475.00,480.00]},{ x:'11/24/2022',y:[480.00,483.00,467.00,468.50]},{ x:'11/25/2022',y:[469.50,475.00,441.50,446.50]},{ x:'11/28/2022',y:[446.50,447.50,428.50,440.00]},{ x:'11/29/2022',y:[442.00,443.50,433.00,442.00]},{ x:'11/30/2022',y:[450.00,454.00,443.00,450.00]},{ x:'12/01/2022',y:[458.00,458.00,450.50,454.50]},{ x:'12/02/2022',y:[451.00,461.00,442.00,442.50]},{ x:'12/05/2022',y:[442.00,448.00,432.00,433.00]},{ x:'12/06/2022',y:[436.50,457.00,435.00,454.50]},{ x:'12/07/2022',y:[455.00,472.50,454.00,470.00]},{ x:'12/08/2022',y:[475.00,475.00,445.00,447.50]},{ x:'12/09/2022',y:[452.00,473.00,452.00,464.00]},{ x:'12/12/2022',y:[457.00,469.00,454.00,468.00]},{ x:'12/13/2022',y:[474.50,476.50,462.50,464.50]},{ x:'12/14/2022',y:[465.50,474.50,461.00,474.50]},{ x:'12/15/2022',y:[473.00,487.50,467.50,474.50]},{ x:'12/16/2022',y:[471.00,471.00,456.50,457.00]},{ x:'12/19/2022',y:[457.50,464.50,449.00,464.00]},{ x:'12/20/2022',y:[466.00,473.50,450.50,452.00]},{ x:'12/21/2022',y:[458.00,460.50,446.50,447.50]},{ x:'12/22/2022',y:[452.00,455.00,446.00,449.00]},{ x:'12/23/2022',y:[453.00,456.50,446.00,447.50]},{ x:'12/26/2022',y:[455.00,471.00,447.00,470.00]},{ x:'12/27/2022',y:[471.00,483.50,470.50,482.50]},{ x:'12/28/2022',y:[482.50,497.00,481.50,490.50]},{ x:'12/29/2022',y:[493.50,498.00,484.50,488.50]},{ x:'12/30/2022',y:[495.50,503.00,493.00,497.50]},{ x:'01/03/2023',y:[501.00,501.00,485.00,488.50]},{ x:'01/04/2023',y:[485.00,531.00,485.00,530.00]},{ x:'01/05/2023',y:[530.00,550.00,520.00,540.00]},{ x:'01/06/2023',y:[533.00,539.00,522.00,531.00]},{ x:'01/09/2023',y:[530.00,534.00,518.00,518.00]},{ x:'01/10/2023',y:[523.00,546.00,523.00,533.00]},{ x:'01/11/2023',y:[537.00,543.00,527.00,537.00]},{ x:'01/12/2023',y:[537.00,537.00,527.00,530.00]},{ x:'01/13/2023',y:[535.00,541.00,527.00,527.00]},{ x:'01/16/2023',y:[527.00,545.00,527.00,538.00]},{ x:'01/17/2023',y:[542.00,561.00,526.00,529.00]},{ x:'01/30/2023',y:[536.00,547.00,529.00,534.00]},{ x:'01/31/2023',y:[528.00,535.00,517.00,520.00]},{ x:'02/01/2023',y:[521.00,529.00,517.00,525.00]},{ x:'02/02/2023',y:[526.00,535.00,524.00,531.00]},{ x:'02/03/2023',y:[534.00,534.00,516.00,519.00]},{ x:'02/06/2023',y:[519.00,524.00,510.00,519.00]},{ x:'02/07/2023',y:[523.00,532.00,520.00,531.00]},{ x:'02/08/2023',y:[535.00,543.00,532.00,532.00]},{ x:'02/09/2023',y:[532.00,541.00,529.00,541.00]},{ x:'02/10/2023',y:[540.00,575.00,527.00,532.00]},{ x:'02/13/2023',y:[540.00,557.00,528.00,530.00]},{ x:'02/14/2023',y:[540.00,564.00,532.00,564.00]},{ x:'02/15/2023',y:[546.00,551.00,536.00,540.00]},{ x:'02/16/2023',y:[545.00,591.00,545.00,585.00]},{ x:'02/17/2023',y:[580.00,580.00,561.00,569.00]},{ x:'02/20/2023',y:[568.00,569.00,554.00,559.00]},{ x:'02/21/2023',y:[565.00,575.00,553.00,559.00]},{ x:'02/22/2023',y:[551.00,580.00,547.00,580.00]},{ x:'02/23/2023',y:[574.00,614.00,574.00,603.00]},{ x:'02/24/2023',y:[609.00,615.00,586.00,593.00]},{ x:'03/01/2023',y:[563.00,614.00,563.00,614.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5904 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());