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:'06/01/2023',y:[755.00,761.00,748.00,748.00]},{ x:'06/02/2023',y:[754.00,762.00,750.00,751.00]},{ x:'06/05/2023',y:[757.00,767.00,757.00,759.00]},{ x:'06/06/2023',y:[760.00,764.00,752.00,757.00]},{ x:'06/07/2023',y:[759.00,769.00,756.00,768.00]},{ x:'06/08/2023',y:[770.00,775.00,763.00,768.00]},{ x:'06/09/2023',y:[768.00,770.00,761.00,764.00]},{ x:'06/12/2023',y:[769.00,769.00,763.00,767.00]},{ x:'06/13/2023',y:[770.00,782.00,768.00,779.00]},{ x:'06/14/2023',y:[781.00,782.00,776.00,780.00]},{ x:'06/15/2023',y:[777.00,779.00,765.00,766.00]},{ x:'06/16/2023',y:[760.00,765.00,751.00,751.00]},{ x:'06/19/2023',y:[769.00,793.00,764.00,785.00]},{ x:'06/20/2023',y:[708.00,725.00,691.00,691.00]},{ x:'06/21/2023',y:[689.00,696.00,683.00,693.00]},{ x:'06/26/2023',y:[688.00,690.00,685.00,685.00]},{ x:'06/27/2023',y:[680.00,688.00,680.00,681.00]},{ x:'06/28/2023',y:[692.00,697.00,685.00,695.00]},{ x:'06/29/2023',y:[704.00,705.00,695.00,696.00]},{ x:'06/30/2023',y:[692.00,692.00,686.00,688.00]},{ x:'07/03/2023',y:[692.00,698.00,690.00,691.00]},{ x:'07/04/2023',y:[696.00,702.00,691.00,700.00]},{ x:'07/05/2023',y:[703.00,703.00,696.00,697.00]},{ x:'07/06/2023',y:[692.00,699.00,688.00,690.00]},{ x:'07/07/2023',y:[686.00,686.00,680.00,682.00]},{ x:'07/10/2023',y:[680.00,686.00,673.00,673.00]},{ x:'07/11/2023',y:[682.00,687.00,676.00,686.00]},{ x:'07/12/2023',y:[689.00,689.00,680.00,685.00]},{ x:'07/13/2023',y:[692.00,693.00,680.00,680.00]},{ x:'07/14/2023',y:[686.00,698.00,685.00,692.00]},{ x:'07/17/2023',y:[692.00,692.00,681.00,683.00]},{ x:'07/18/2023',y:[680.00,686.00,678.00,683.00]},{ x:'07/19/2023',y:[690.00,699.00,689.00,696.00]},{ x:'07/20/2023',y:[697.00,697.00,689.00,692.00]},{ x:'07/21/2023',y:[677.00,683.00,652.00,682.00]},{ x:'07/24/2023',y:[679.00,690.00,673.00,675.00]},{ x:'07/25/2023',y:[675.00,679.00,665.00,665.00]},{ x:'07/26/2023',y:[665.00,670.00,654.00,655.00]},{ x:'07/27/2023',y:[658.00,661.00,654.00,658.00]},{ x:'07/28/2023',y:[660.00,666.00,655.00,658.00]},{ x:'07/31/2023',y:[691.00,698.00,684.00,690.00]},{ x:'08/01/2023',y:[700.00,715.00,695.00,713.00]},{ x:'08/02/2023',y:[712.00,720.00,704.00,709.00]},{ x:'08/04/2023',y:[710.00,711.00,699.00,706.00]},{ x:'08/07/2023',y:[709.00,712.00,703.00,706.00]},{ x:'08/08/2023',y:[705.00,705.00,690.00,690.00]},{ x:'08/09/2023',y:[689.00,702.00,686.00,701.00]},{ x:'08/10/2023',y:[702.00,703.00,688.00,693.00]},{ x:'08/11/2023',y:[688.00,689.00,675.00,679.00]},{ x:'08/14/2023',y:[672.00,673.00,666.00,672.00]},{ x:'08/15/2023',y:[682.00,684.00,676.00,678.00]},{ x:'08/16/2023',y:[698.00,698.00,683.00,689.00]},{ x:'08/17/2023',y:[680.00,681.00,673.00,674.00]},{ x:'08/18/2023',y:[670.00,679.00,669.00,674.00]},{ x:'08/21/2023',y:[678.00,679.00,667.00,669.00]},{ x:'08/22/2023',y:[675.00,682.00,668.00,672.00]},{ x:'08/23/2023',y:[672.00,676.00,670.00,671.00]},{ x:'08/24/2023',y:[682.00,692.00,680.00,691.00]},{ x:'08/25/2023',y:[692.00,695.00,687.00,694.00]},{ x:'08/28/2023',y:[700.00,709.00,698.00,701.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2454 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());