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:'01/23/2024',y:[386.00,387.00,375.00,375.00]},{ x:'01/24/2024',y:[377.00,378.50,367.50,372.00]},{ x:'01/25/2024',y:[378.00,382.00,368.00,370.00]},{ x:'01/26/2024',y:[367.50,367.50,355.00,356.00]},{ x:'01/29/2024',y:[356.00,379.50,356.00,374.00]},{ x:'01/30/2024',y:[386.50,404.00,377.00,392.50]},{ x:'01/31/2024',y:[384.50,386.00,376.50,376.50]},{ x:'02/01/2024',y:[376.00,394.50,376.00,386.50]},{ x:'02/02/2024',y:[399.00,425.00,398.00,425.00]},{ x:'02/05/2024',y:[428.50,441.00,414.00,426.50]},{ x:'02/15/2024',y:[447.50,469.00,440.50,469.00]},{ x:'02/16/2024',y:[470.50,471.00,439.00,447.00]},{ x:'02/19/2024',y:[447.00,452.00,439.00,441.50]},{ x:'02/20/2024',y:[443.00,449.00,425.50,447.50]},{ x:'02/21/2024',y:[443.00,459.00,434.00,445.00]},{ x:'02/22/2024',y:[470.00,474.50,449.00,467.00]},{ x:'02/23/2024',y:[471.00,475.00,456.50,457.50]},{ x:'02/26/2024',y:[462.00,470.50,448.00,470.00]},{ x:'02/27/2024',y:[470.00,510.00,459.50,496.00]},{ x:'02/29/2024',y:[494.50,545.00,483.50,534.00]},{ x:'03/01/2024',y:[539.00,584.00,529.00,559.00]},{ x:'03/04/2024',y:[566.00,584.00,563.00,572.00]},{ x:'03/05/2024',y:[572.00,589.00,564.00,571.00]},{ x:'03/06/2024',y:[571.00,628.00,570.00,628.00]},{ x:'03/07/2024',y:[628.00,658.00,571.00,591.00]},{ x:'03/08/2024',y:[594.00,608.00,561.00,571.00]},{ x:'03/11/2024',y:[580.00,628.00,580.00,628.00]},{ x:'03/12/2024',y:[651.00,690.00,636.00,690.00]},{ x:'03/13/2024',y:[720.00,745.00,667.00,677.00]},{ x:'03/14/2024',y:[656.00,663.00,610.00,662.00]},{ x:'03/15/2024',y:[649.00,718.00,649.00,670.00]},{ x:'03/18/2024',y:[685.00,724.00,683.00,724.00]},{ x:'03/19/2024',y:[720.00,745.00,652.00,655.00]},{ x:'03/20/2024',y:[684.00,704.00,659.00,667.00]},{ x:'03/21/2024',y:[688.00,725.00,672.00,696.00]},{ x:'03/22/2024',y:[707.00,729.00,695.00,702.00]},{ x:'03/25/2024',y:[711.00,723.00,698.00,698.00]},{ x:'03/26/2024',y:[705.00,711.00,653.00,666.00]},{ x:'03/27/2024',y:[661.00,680.00,653.00,680.00]},{ x:'03/28/2024',y:[680.00,685.00,648.00,659.00]},{ x:'03/29/2024',y:[662.00,698.00,658.00,689.00]},{ x:'04/01/2024',y:[700.00,725.00,685.00,723.00]},{ x:'04/02/2024',y:[740.00,749.00,713.00,730.00]},{ x:'04/03/2024',y:[730.00,803.00,719.00,796.00]},{ x:'04/08/2024',y:[802.00,860.00,802.00,860.00]},{ x:'04/09/2024',y:[842.00,873.00,822.00,865.00]},{ x:'04/10/2024',y:[863.00,870.00,809.00,809.00]},{ x:'04/11/2024',y:[809.00,820.00,755.00,757.00]},{ x:'04/12/2024',y:[768.00,785.00,758.00,772.00]},{ x:'04/15/2024',y:[769.00,806.00,760.00,776.00]},{ x:'04/16/2024',y:[745.00,762.00,724.00,740.00]},{ x:'04/17/2024',y:[766.00,799.00,765.00,799.00]},{ x:'04/18/2024',y:[793.00,823.00,788.00,803.00]},{ x:'04/19/2024',y:[788.00,798.00,731.00,777.00]},{ x:'04/22/2024',y:[747.00,766.00,700.00,700.00]},{ x:'04/23/2024',y:[725.00,729.00,691.00,701.00]},{ x:'04/24/2024',y:[744.00,771.00,740.00,771.00]},{ x:'04/25/2024',y:[766.00,812.00,764.00,770.00]},{ x:'04/26/2024',y:[831.00,847.00,798.00,826.00]},{ x:'04/29/2024',y:[846.00,847.00,796.00,796.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3324 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());