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:'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]},{ x:'06/25/2024',y:[605.00,606.00,589.00,599.00]},{ x:'06/26/2024',y:[604.00,605.00,597.00,602.00]},{ x:'06/27/2024',y:[598.00,603.00,594.00,594.00]},{ x:'06/28/2024',y:[590.00,619.00,590.00,617.00]},{ x:'07/01/2024',y:[615.00,621.00,610.00,610.00]},{ x:'07/02/2024',y:[615.00,615.00,606.00,608.00]},{ x:'07/03/2024',y:[616.00,623.00,613.00,621.00]},{ x:'07/04/2024',y:[625.00,630.00,616.00,628.00]},{ x:'07/05/2024',y:[627.00,627.00,611.00,618.00]},{ x:'07/12/2024',y:[602.00,602.00,594.00,595.00]},{ x:'07/15/2024',y:[599.00,601.00,593.00,599.00]},{ x:'07/16/2024',y:[599.00,619.00,599.00,617.00]},{ x:'07/17/2024',y:[621.00,628.00,600.00,603.00]},{ x:'07/18/2024',y:[596.00,600.00,590.00,595.00]},{ x:'07/19/2024',y:[594.00,600.00,576.00,576.00]},{ x:'07/22/2024',y:[577.00,580.00,540.00,555.00]},{ x:'07/23/2024',y:[561.00,566.00,556.00,559.00]},{ x:'07/26/2024',y:[532.00,538.00,517.00,532.00]},{ x:'07/29/2024',y:[541.00,541.00,510.00,516.00]},{ x:'07/30/2024',y:[515.00,516.00,502.00,514.00]},{ x:'07/31/2024',y:[510.00,516.00,506.00,513.00]},{ x:'08/01/2024',y:[527.00,531.00,518.00,524.00]},{ x:'08/02/2024',y:[511.00,514.00,492.00,492.50]},{ x:'08/05/2024',y:[467.00,467.50,443.50,443.50]},{ x:'08/06/2024',y:[450.00,458.00,428.00,453.00]},{ x:'08/07/2024',y:[453.00,479.00,450.50,474.00]},{ x:'08/08/2024',y:[464.00,475.50,459.00,469.00]},{ x:'08/09/2024',y:[483.00,489.00,480.00,482.00]},{ x:'08/12/2024',y:[479.00,498.50,479.00,490.50]},{ x:'08/13/2024',y:[497.00,506.00,493.00,499.00]},{ x:'08/14/2024',y:[509.00,513.00,504.00,504.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());