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/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]},{ x:'04/29/2024',y:[720.00,722.00,703.00,713.00]},{ x:'04/30/2024',y:[707.00,712.00,690.00,703.00]},{ x:'05/02/2024',y:[699.00,712.00,690.00,701.00]},{ x:'05/03/2024',y:[710.00,727.00,707.00,710.00]},{ x:'05/06/2024',y:[721.00,725.00,716.00,720.00]},{ x:'05/07/2024',y:[727.00,740.00,718.00,720.00]},{ x:'05/08/2024',y:[721.00,728.00,714.00,724.00]},{ x:'05/09/2024',y:[725.00,732.00,688.00,688.00]},{ x:'05/10/2024',y:[697.00,699.00,685.00,693.00]},{ x:'05/13/2024',y:[624.00,624.00,624.00,624.00]},{ x:'05/14/2024',y:[582.00,598.00,563.00,585.00]},{ x:'05/15/2024',y:[596.00,603.00,583.00,588.00]},{ x:'05/16/2024',y:[593.00,608.00,588.00,589.00]},{ x:'05/17/2024',y:[590.00,598.00,579.00,581.00]},{ x:'05/20/2024',y:[583.00,586.00,575.00,584.00]},{ x:'05/21/2024',y:[589.00,595.00,580.00,584.00]},{ x:'05/22/2024',y:[581.00,584.00,573.00,577.00]},{ x:'05/23/2024',y:[585.00,585.00,569.00,569.00]},{ x:'05/24/2024',y:[567.00,577.00,564.00,574.00]},{ x:'06/11/2024',y:[600.00,607.00,595.00,605.00]},{ x:'06/12/2024',y:[605.00,617.00,601.00,614.00]},{ x:'06/13/2024',y:[621.00,643.00,618.00,625.00]},{ x:'06/14/2024',y:[625.00,632.00,620.00,630.00]},{ x:'06/17/2024',y:[625.00,642.00,625.00,633.00]},{ x:'06/18/2024',y:[640.00,641.00,629.00,633.00]},{ x:'06/19/2024',y:[638.00,638.00,613.00,614.00]},{ x:'06/20/2024',y:[615.00,625.00,614.00,624.00]},{ x:'06/21/2024',y:[622.00,622.00,606.00,610.00]},{ x:'06/24/2024',y:[609.00,615.00,603.00,611.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());