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:[663.00,666.00,622.00,626.00]},{ x:'04/30/2024',y:[645.00,662.00,641.00,654.00]},{ x:'05/02/2024',y:[636.00,664.00,624.00,656.00]},{ x:'05/03/2024',y:[670.00,672.00,645.00,662.00]},{ x:'05/06/2024',y:[675.00,698.00,660.00,662.00]},{ x:'05/07/2024',y:[674.00,682.00,655.00,674.00]},{ x:'05/08/2024',y:[674.00,678.00,661.00,663.00]},{ x:'05/09/2024',y:[669.00,676.00,638.00,654.00]},{ x:'05/10/2024',y:[657.00,658.00,637.00,638.00]},{ x:'05/13/2024',y:[650.00,666.00,626.00,626.00]},{ x:'05/14/2024',y:[628.00,646.00,621.00,645.00]},{ x:'05/15/2024',y:[659.00,672.00,643.00,644.00]},{ x:'05/16/2024',y:[656.00,677.00,650.00,651.00]},{ x:'05/17/2024',y:[656.00,667.00,651.00,660.00]},{ x:'05/20/2024',y:[662.00,667.00,637.00,638.00]},{ x:'05/21/2024',y:[641.00,650.00,635.00,650.00]},{ x:'05/22/2024',y:[650.00,662.00,648.00,660.00]},{ x:'05/23/2024',y:[671.00,725.00,665.00,708.00]},{ x:'05/24/2024',y:[703.00,713.00,690.00,706.00]},{ x:'06/11/2024',y:[646.00,675.00,643.00,665.00]},{ x:'06/12/2024',y:[662.00,688.00,638.00,688.00]},{ x:'06/13/2024',y:[716.00,721.00,698.00,712.00]},{ x:'06/14/2024',y:[717.00,744.00,707.00,739.00]},{ x:'06/17/2024',y:[750.00,756.00,719.00,723.00]},{ x:'06/18/2024',y:[734.00,737.00,703.00,713.00]},{ x:'06/19/2024',y:[719.00,720.00,701.00,704.00]},{ x:'06/20/2024',y:[707.00,745.00,707.00,740.00]},{ x:'06/21/2024',y:[726.00,742.00,714.00,731.00]},{ x:'06/24/2024',y:[725.00,731.00,711.00,714.00]},{ x:'06/25/2024',y:[707.00,710.00,686.00,701.00]},{ x:'06/26/2024',y:[710.00,749.00,710.00,740.00]},{ x:'06/27/2024',y:[730.00,755.00,730.00,736.00]},{ x:'06/28/2024',y:[756.00,773.00,745.00,765.00]},{ x:'07/01/2024',y:[765.00,786.00,741.00,743.00]},{ x:'07/02/2024',y:[743.00,756.00,730.00,752.00]},{ x:'07/03/2024',y:[757.00,770.00,743.00,745.00]},{ x:'07/04/2024',y:[758.00,768.00,748.00,752.00]},{ x:'07/05/2024',y:[759.00,767.00,748.00,764.00]},{ x:'07/12/2024',y:[707.00,721.00,701.00,709.00]},{ x:'07/15/2024',y:[712.00,713.00,694.00,702.00]},{ x:'07/16/2024',y:[704.00,709.00,690.00,691.00]},{ x:'07/17/2024',y:[694.00,710.00,690.00,690.00]},{ x:'07/18/2024',y:[670.00,680.00,653.00,675.00]},{ x:'07/19/2024',y:[676.00,698.00,670.00,687.00]},{ x:'07/22/2024',y:[696.00,697.00,628.00,634.00]},{ x:'07/23/2024',y:[647.00,676.00,643.00,669.00]},{ x:'07/26/2024',y:[623.00,636.00,612.00,613.00]},{ x:'07/29/2024',y:[628.00,628.00,588.00,590.00]},{ x:'07/30/2024',y:[600.00,643.00,593.00,639.00]},{ x:'07/31/2024',y:[631.00,656.00,628.00,636.00]},{ x:'08/01/2024',y:[668.00,668.00,648.00,655.00]},{ x:'08/02/2024',y:[608.00,640.00,592.00,594.00]},{ x:'08/05/2024',y:[536.00,549.00,535.00,535.00]},{ x:'08/06/2024',y:[561.00,561.00,484.00,526.00]},{ x:'08/07/2024',y:[533.00,576.00,528.00,559.00]},{ x:'08/08/2024',y:[541.00,549.00,521.00,530.00]},{ x:'08/09/2024',y:[560.00,582.00,554.00,568.00]},{ x:'08/12/2024',y:[580.00,605.00,573.00,585.00]},{ x:'08/13/2024',y:[602.00,605.00,576.00,587.00]},{ x:'08/14/2024',y:[606.00,617.00,593.00,597.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3017 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());