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/12/2024',y:[488.00,489.50,481.00,482.00]},{ x:'01/15/2024',y:[488.00,527.00,487.50,516.00]},{ x:'01/16/2024',y:[510.00,525.00,510.00,520.00]},{ x:'01/17/2024',y:[523.00,525.00,510.00,513.00]},{ x:'01/18/2024',y:[514.00,519.00,502.00,508.00]},{ x:'01/19/2024',y:[515.00,518.00,512.00,516.00]},{ x:'01/22/2024',y:[535.00,548.00,530.00,534.00]},{ x:'01/23/2024',y:[536.00,545.00,534.00,540.00]},{ x:'01/24/2024',y:[546.00,553.00,537.00,539.00]},{ x:'01/25/2024',y:[545.00,545.00,536.00,539.00]},{ x:'01/26/2024',y:[542.00,542.00,520.00,521.00]},{ x:'01/29/2024',y:[528.00,530.00,520.00,526.00]},{ x:'01/30/2024',y:[530.00,530.00,520.00,520.00]},{ x:'01/31/2024',y:[524.00,533.00,521.00,528.00]},{ x:'02/01/2024',y:[529.00,539.00,525.00,538.00]},{ x:'02/02/2024',y:[539.00,542.00,534.00,539.00]},{ x:'02/05/2024',y:[538.00,540.00,530.00,537.00]},{ x:'02/15/2024',y:[544.00,555.00,538.00,544.00]},{ x:'02/16/2024',y:[543.00,543.00,532.00,537.00]},{ x:'02/19/2024',y:[540.00,558.00,534.00,556.00]},{ x:'02/20/2024',y:[551.00,557.00,547.00,556.00]},{ x:'02/21/2024',y:[557.00,577.00,553.00,573.00]},{ x:'02/22/2024',y:[588.00,609.00,578.00,609.00]},{ x:'02/23/2024',y:[612.00,629.00,609.00,615.00]},{ x:'02/26/2024',y:[612.00,613.00,589.00,598.00]},{ x:'02/27/2024',y:[615.00,637.00,607.00,624.00]},{ x:'02/29/2024',y:[618.00,631.00,614.00,628.00]},{ x:'03/01/2024',y:[628.00,633.00,618.00,623.00]},{ x:'03/04/2024',y:[631.00,643.00,622.00,626.00]},{ x:'03/05/2024',y:[616.00,621.00,609.00,619.00]},{ x:'03/06/2024',y:[616.00,630.00,616.00,629.00]},{ x:'03/07/2024',y:[629.00,635.00,604.00,611.00]},{ x:'03/08/2024',y:[614.00,618.00,590.00,598.00]},{ x:'03/11/2024',y:[617.00,627.00,593.00,605.00]},{ x:'03/12/2024',y:[609.00,620.00,603.00,615.00]},{ x:'03/13/2024',y:[620.00,627.00,583.00,590.00]},{ x:'03/14/2024',y:[591.00,594.00,574.00,586.00]},{ x:'03/15/2024',y:[591.00,595.00,582.00,587.00]},{ x:'03/18/2024',y:[600.00,610.00,596.00,606.00]},{ x:'03/19/2024',y:[609.00,622.00,601.00,609.00]},{ x:'03/20/2024',y:[613.00,617.00,601.00,601.00]},{ x:'03/21/2024',y:[636.00,661.00,632.00,661.00]},{ x:'03/22/2024',y:[671.00,677.00,632.00,653.00]},{ x:'03/25/2024',y:[660.00,685.00,652.00,680.00]},{ x:'03/26/2024',y:[690.00,695.00,652.00,663.00]},{ x:'03/27/2024',y:[662.00,683.00,662.00,678.00]},{ x:'03/28/2024',y:[687.00,703.00,685.00,690.00]},{ x:'03/29/2024',y:[695.00,714.00,689.00,708.00]},{ x:'04/11/2024',y:[731.00,738.00,714.00,721.00]},{ x:'04/12/2024',y:[729.00,785.00,729.00,748.00]},{ x:'04/15/2024',y:[735.00,749.00,731.00,741.00]},{ x:'04/16/2024',y:[733.00,734.00,702.00,715.00]},{ x:'04/17/2024',y:[729.00,751.00,727.00,750.00]},{ x:'04/18/2024',y:[743.00,764.00,743.00,756.00]},{ x:'04/19/2024',y:[740.00,740.00,692.00,710.00]},{ x:'04/22/2024',y:[698.00,700.00,661.00,662.00]},{ x:'04/23/2024',y:[674.00,677.00,655.00,662.00]},{ x:'04/24/2024',y:[676.00,694.00,672.00,688.00]},{ x:'04/25/2024',y:[680.00,711.00,675.00,696.00]},{ x:'04/26/2024',y:[704.00,721.00,697.00,710.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8299 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());