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/10/2024',y:[596.00,612.00,595.00,606.00]},{ x:'04/11/2024',y:[606.00,615.00,601.00,615.00]},{ x:'04/12/2024',y:[616.00,639.00,615.00,630.00]},{ x:'04/15/2024',y:[629.00,629.00,613.00,618.00]},{ x:'04/16/2024',y:[613.00,614.00,602.00,602.00]},{ x:'04/17/2024',y:[608.00,624.00,606.00,621.00]},{ x:'04/18/2024',y:[616.00,627.00,614.00,615.00]},{ x:'04/19/2024',y:[606.00,607.00,578.00,588.00]},{ x:'04/22/2024',y:[584.00,591.00,573.00,574.00]},{ x:'04/23/2024',y:[582.00,588.00,571.00,583.00]},{ x:'04/24/2024',y:[588.00,605.00,586.00,601.00]},{ x:'04/25/2024',y:[598.00,605.00,595.00,597.00]},{ x:'04/26/2024',y:[598.00,614.00,598.00,603.00]},{ x:'04/29/2024',y:[609.00,625.00,608.00,625.00]},{ x:'04/30/2024',y:[619.00,625.00,615.00,618.00]},{ x:'05/02/2024',y:[610.00,623.00,606.00,616.00]},{ x:'05/03/2024',y:[623.00,635.00,619.00,634.00]},{ x:'05/06/2024',y:[640.00,642.00,633.00,635.00]},{ x:'05/07/2024',y:[640.00,646.00,633.00,640.00]},{ x:'05/08/2024',y:[593.00,611.00,591.00,605.00]},{ x:'05/09/2024',y:[598.00,600.00,585.00,592.00]},{ x:'05/10/2024',y:[593.00,597.00,587.00,588.00]},{ x:'05/13/2024',y:[589.00,592.00,579.00,587.00]},{ x:'05/14/2024',y:[587.00,591.00,578.00,583.00]},{ x:'05/15/2024',y:[583.00,588.00,579.00,579.00]},{ x:'05/16/2024',y:[585.00,592.00,582.00,591.00]},{ x:'05/17/2024',y:[591.00,603.00,588.00,603.00]},{ x:'05/20/2024',y:[605.00,612.00,602.00,612.00]},{ x:'05/21/2024',y:[610.00,611.00,602.00,606.00]},{ x:'05/22/2024',y:[612.00,614.00,601.00,614.00]},{ x:'05/23/2024',y:[610.00,624.00,608.00,624.00]},{ x:'05/24/2024',y:[605.00,619.00,605.00,610.00]},{ x:'06/11/2024',y:[598.00,602.00,595.00,595.00]},{ x:'06/12/2024',y:[595.00,610.00,595.00,607.00]},{ x:'06/13/2024',y:[614.00,617.00,607.00,608.00]},{ x:'06/14/2024',y:[611.00,615.00,608.00,614.00]},{ x:'06/17/2024',y:[615.00,622.00,614.00,622.00]},{ x:'06/18/2024',y:[628.00,630.00,613.00,617.00]},{ x:'06/19/2024',y:[622.00,630.00,618.00,629.00]},{ x:'06/20/2024',y:[626.00,627.00,615.00,619.00]},{ x:'06/21/2024',y:[614.00,618.00,611.00,618.00]},{ x:'06/24/2024',y:[614.00,617.00,605.00,617.00]},{ x:'06/25/2024',y:[617.00,617.00,600.00,604.00]},{ x:'06/26/2024',y:[600.00,613.00,595.00,613.00]},{ x:'06/27/2024',y:[606.00,608.00,602.00,606.00]},{ x:'06/28/2024',y:[606.00,611.00,604.00,606.00]},{ x:'07/01/2024',y:[608.00,620.00,608.00,620.00]},{ x:'07/02/2024',y:[617.00,628.00,612.00,624.00]},{ x:'07/03/2024',y:[620.00,620.00,609.00,619.00]},{ x:'07/04/2024',y:[616.00,620.00,610.00,620.00]},{ x:'07/05/2024',y:[620.00,622.00,616.00,618.00]},{ x:'07/12/2024',y:[575.00,575.00,566.00,567.00]},{ x:'07/15/2024',y:[570.00,571.00,561.00,563.00]},{ x:'07/16/2024',y:[564.00,564.00,555.00,558.00]},{ x:'07/17/2024',y:[559.00,562.00,552.00,554.00]},{ x:'07/18/2024',y:[549.00,554.00,540.00,554.00]},{ x:'07/19/2024',y:[552.00,553.00,543.00,543.00]},{ x:'07/22/2024',y:[543.00,547.00,524.00,524.00]},{ x:'07/23/2024',y:[550.00,550.00,533.00,541.00]},{ x:'07/26/2024',y:[525.00,548.00,524.00,544.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3034 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());