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:'05/16/2023',y:[531.00,534.00,517.00,520.00]},{ x:'05/17/2023',y:[525.00,570.00,522.00,557.00]},{ x:'05/18/2023',y:[560.00,575.00,548.00,558.00]},{ x:'05/19/2023',y:[566.00,585.00,555.00,578.00]},{ x:'05/22/2023',y:[577.00,605.00,574.00,599.00]},{ x:'05/23/2023',y:[599.00,605.00,563.00,565.00]},{ x:'05/24/2023',y:[571.00,573.00,554.00,563.00]},{ x:'05/25/2023',y:[569.00,582.00,557.00,560.00]},{ x:'05/26/2023',y:[565.00,576.00,553.00,556.00]},{ x:'05/29/2023',y:[561.00,567.00,550.00,550.00]},{ x:'05/30/2023',y:[552.00,564.00,532.00,538.00]},{ x:'05/31/2023',y:[545.00,552.00,515.00,527.00]},{ x:'06/01/2023',y:[529.00,554.00,525.00,553.00]},{ x:'06/02/2023',y:[562.00,572.00,501.00,506.00]},{ x:'06/05/2023',y:[506.00,530.00,502.00,522.00]},{ x:'06/06/2023',y:[529.00,562.00,518.00,550.00]},{ x:'06/07/2023',y:[557.00,565.00,527.00,533.00]},{ x:'06/08/2023',y:[535.00,539.00,512.00,518.00]},{ x:'06/09/2023',y:[525.00,527.00,514.00,514.00]},{ x:'06/12/2023',y:[515.00,523.00,506.00,516.00]},{ x:'06/13/2023',y:[522.00,560.00,520.00,531.00]},{ x:'06/14/2023',y:[536.00,537.00,515.00,528.00]},{ x:'06/15/2023',y:[530.00,547.00,525.00,544.00]},{ x:'06/16/2023',y:[549.00,573.00,540.00,562.00]},{ x:'06/19/2023',y:[568.00,571.00,543.00,544.00]},{ x:'06/20/2023',y:[547.00,548.00,526.00,530.00]},{ x:'06/21/2023',y:[532.00,535.00,524.00,533.00]},{ x:'06/26/2023',y:[527.00,529.00,511.00,515.00]},{ x:'06/27/2023',y:[519.00,526.00,512.00,517.00]},{ x:'06/28/2023',y:[522.00,557.00,518.00,542.00]},{ x:'06/29/2023',y:[547.00,578.00,546.00,575.00]},{ x:'06/30/2023',y:[580.00,589.00,546.00,552.00]},{ x:'07/03/2023',y:[556.00,557.00,522.00,555.00]},{ x:'07/04/2023',y:[555.00,594.00,552.00,590.00]},{ x:'07/05/2023',y:[595.00,649.00,594.00,649.00]},{ x:'07/06/2023',y:[651.00,666.00,636.00,660.00]},{ x:'07/07/2023',y:[658.00,665.00,635.00,655.00]},{ x:'07/10/2023',y:[653.00,664.00,640.00,658.00]},{ x:'07/11/2023',y:[673.00,698.00,669.00,679.00]},{ x:'07/12/2023',y:[683.00,736.00,683.00,722.00]},{ x:'07/13/2023',y:[730.00,745.00,687.00,712.00]},{ x:'07/14/2023',y:[730.00,757.00,723.00,757.00]},{ x:'07/17/2023',y:[765.00,779.00,748.00,767.00]},{ x:'07/18/2023',y:[777.00,795.00,769.00,779.00]},{ x:'07/19/2023',y:[790.00,795.00,765.00,774.00]},{ x:'07/20/2023',y:[781.00,818.00,774.00,806.00]},{ x:'07/21/2023',y:[794.00,842.00,792.00,841.00]},{ x:'07/24/2023',y:[857.00,880.00,828.00,829.00]},{ x:'07/25/2023',y:[899.00,911.00,878.00,911.00]},{ x:'07/26/2023',y:[926.00,978.00,890.00,898.00]},{ x:'07/27/2023',y:[860.00,968.00,848.00,925.00]},{ x:'07/28/2023',y:[960.00,975.00,933.00,950.00]},{ x:'07/31/2023',y:[970.00,997.00,938.00,938.00]},{ x:'08/01/2023',y:[960.00,963.00,845.00,850.00]},{ x:'08/02/2023',y:[856.00,893.00,830.00,841.00]},{ x:'08/04/2023',y:[858.00,863.00,828.00,842.00]},{ x:'08/07/2023',y:[849.00,924.00,845.00,907.00]},{ x:'08/08/2023',y:[938.00,956.00,880.00,899.00]},{ x:'08/09/2023',y:[905.00,914.00,817.00,833.00]},{ x:'08/10/2023',y:[829.00,829.00,750.00,750.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4763 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());