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/25/2024',y:[602.00,609.00,601.00,609.00]},{ x:'04/26/2024',y:[604.00,611.00,604.00,609.00]},{ x:'04/29/2024',y:[614.00,630.00,614.00,622.00]},{ x:'04/30/2024',y:[618.00,625.00,617.00,620.00]},{ x:'05/02/2024',y:[622.00,624.00,616.00,620.00]},{ x:'05/03/2024',y:[623.00,630.00,623.00,623.00]},{ x:'05/06/2024',y:[627.00,639.00,625.00,625.00]},{ x:'05/07/2024',y:[634.00,634.00,618.00,618.00]},{ x:'05/08/2024',y:[620.00,620.00,614.00,618.00]},{ x:'05/09/2024',y:[619.00,619.00,609.00,609.00]},{ x:'05/10/2024',y:[609.00,615.00,607.00,612.00]},{ x:'05/13/2024',y:[613.00,622.00,613.00,619.00]},{ x:'05/14/2024',y:[628.00,638.00,621.00,621.00]},{ x:'05/15/2024',y:[630.00,633.00,621.00,623.00]},{ x:'05/16/2024',y:[631.00,635.00,627.00,632.00]},{ x:'05/17/2024',y:[630.00,632.00,623.00,624.00]},{ x:'05/20/2024',y:[632.00,633.00,624.00,627.00]},{ x:'05/21/2024',y:[631.00,631.00,615.00,615.00]},{ x:'05/22/2024',y:[621.00,622.00,613.00,614.00]},{ x:'05/23/2024',y:[607.00,610.00,606.00,606.00]},{ x:'05/24/2024',y:[609.00,611.00,603.00,605.00]},{ x:'06/11/2024',y:[629.00,635.00,626.00,626.00]},{ x:'06/12/2024',y:[626.00,633.00,626.00,626.00]},{ x:'06/13/2024',y:[634.00,634.00,627.00,630.00]},{ x:'06/14/2024',y:[630.00,635.00,628.00,635.00]},{ x:'06/17/2024',y:[635.00,637.00,632.00,633.00]},{ x:'06/18/2024',y:[633.00,638.00,632.00,636.00]},{ x:'06/19/2024',y:[636.00,641.00,634.00,640.00]},{ x:'06/20/2024',y:[624.00,640.00,621.00,640.00]},{ x:'06/21/2024',y:[633.00,651.00,633.00,641.00]},{ x:'06/24/2024',y:[639.00,639.00,625.00,635.00]},{ x:'06/25/2024',y:[643.00,643.00,629.00,642.00]},{ x:'06/26/2024',y:[635.00,638.00,617.00,617.00]},{ x:'06/27/2024',y:[610.00,615.00,608.00,613.00]},{ x:'06/28/2024',y:[613.00,624.00,611.00,622.00]},{ x:'07/01/2024',y:[621.00,623.00,612.00,612.00]},{ x:'07/02/2024',y:[607.00,618.00,606.00,606.00]},{ x:'07/03/2024',y:[614.00,614.00,607.00,613.00]},{ x:'07/04/2024',y:[617.00,620.00,614.00,618.00]},{ x:'07/05/2024',y:[621.00,621.00,616.00,620.00]},{ x:'07/12/2024',y:[625.00,627.00,620.00,625.00]},{ x:'07/15/2024',y:[628.00,628.00,620.00,620.00]},{ x:'07/16/2024',y:[619.00,643.00,619.00,643.00]},{ x:'07/17/2024',y:[643.00,643.00,624.00,624.00]},{ x:'07/18/2024',y:[627.00,641.00,622.00,640.00]},{ x:'07/19/2024',y:[633.00,634.00,618.00,630.00]},{ x:'07/22/2024',y:[630.00,639.00,621.00,639.00]},{ x:'07/23/2024',y:[639.00,645.00,637.00,644.00]},{ x:'07/26/2024',y:[649.00,649.00,641.00,648.00]},{ x:'07/29/2024',y:[650.00,666.00,649.00,655.00]},{ x:'07/30/2024',y:[656.00,656.00,641.00,649.00]},{ x:'07/31/2024',y:[649.00,653.00,643.00,647.00]},{ x:'08/01/2024',y:[655.00,662.00,649.00,654.00]},{ x:'08/02/2024',y:[645.00,653.00,639.00,653.00]},{ x:'08/05/2024',y:[639.00,650.00,605.00,618.00]},{ x:'08/06/2024',y:[639.00,639.00,600.00,607.00]},{ x:'08/07/2024',y:[600.00,612.00,598.00,610.00]},{ x:'08/08/2024',y:[597.00,611.00,597.00,600.00]},{ x:'08/09/2024',y:[603.00,617.00,599.00,601.00]},{ x:'08/12/2024',y:[609.00,615.00,606.00,608.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2207 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());