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:'03/23/2023',y:[420.00,448.50,415.50,439.50]},{ x:'03/24/2023',y:[441.00,452.50,432.50,451.00]},{ x:'03/27/2023',y:[449.00,496.00,445.50,488.00]},{ x:'03/28/2023',y:[491.00,499.50,468.00,474.00]},{ x:'03/29/2023',y:[481.50,484.50,468.00,469.50]},{ x:'03/30/2023',y:[474.50,490.50,471.50,479.50]},{ x:'03/31/2023',y:[480.50,487.50,473.50,476.50]},{ x:'04/06/2023',y:[472.00,478.50,468.00,476.50]},{ x:'04/07/2023',y:[482.50,488.50,475.50,486.50]},{ x:'04/10/2023',y:[483.50,491.50,481.00,486.50]},{ x:'04/11/2023',y:[495.00,508.00,488.50,489.00]},{ x:'04/12/2023',y:[493.00,499.00,492.50,493.00]},{ x:'04/13/2023',y:[495.00,495.00,480.00,480.00]},{ x:'04/14/2023',y:[481.50,486.50,475.00,479.50]},{ x:'04/17/2023',y:[478.50,484.50,473.00,475.00]},{ x:'04/18/2023',y:[475.00,479.50,470.50,475.00]},{ x:'04/19/2023',y:[475.00,479.00,469.00,469.00]},{ x:'04/20/2023',y:[468.00,476.50,462.50,463.50]},{ x:'04/21/2023',y:[466.00,466.50,443.00,449.00]},{ x:'04/24/2023',y:[446.50,460.00,445.00,451.50]},{ x:'04/25/2023',y:[453.50,454.00,430.00,437.50]},{ x:'04/26/2023',y:[436.00,443.00,429.50,436.00]},{ x:'04/27/2023',y:[437.00,458.50,431.50,450.00]},{ x:'04/28/2023',y:[452.50,462.00,452.50,455.00]},{ x:'05/02/2023',y:[455.50,476.00,455.00,476.00]},{ x:'05/03/2023',y:[471.00,473.50,466.50,471.00]},{ x:'05/04/2023',y:[470.00,482.50,470.00,470.00]},{ x:'05/05/2023',y:[476.00,481.00,470.00,472.00]},{ x:'05/08/2023',y:[473.00,482.50,473.00,480.00]},{ x:'05/09/2023',y:[481.50,486.00,468.50,483.50]},{ x:'05/10/2023',y:[484.00,488.50,474.00,480.00]},{ x:'05/11/2023',y:[481.00,482.00,460.00,460.50]},{ x:'05/12/2023',y:[467.00,468.00,457.00,464.50]},{ x:'05/15/2023',y:[464.50,468.50,458.00,462.00]},{ x:'05/16/2023',y:[467.00,477.00,467.00,469.50]},{ x:'05/17/2023',y:[475.50,486.00,475.00,486.00]},{ x:'05/18/2023',y:[496.00,504.00,489.00,496.50]},{ x:'05/19/2023',y:[500.00,536.00,498.00,532.00]},{ x:'05/22/2023',y:[532.00,559.00,530.00,548.00]},{ x:'05/23/2023',y:[540.00,552.00,538.00,547.00]},{ x:'05/24/2023',y:[545.00,546.00,533.00,546.00]},{ x:'05/25/2023',y:[560.00,573.00,547.00,562.00]},{ x:'05/26/2023',y:[576.00,615.00,575.00,598.00]},{ x:'05/29/2023',y:[613.00,624.00,596.00,616.00]},{ x:'05/30/2023',y:[621.00,629.00,610.00,622.00]},{ x:'05/31/2023',y:[624.00,624.00,594.00,598.00]},{ x:'06/01/2023',y:[596.00,609.00,592.00,603.00]},{ x:'06/02/2023',y:[614.00,614.00,597.00,597.00]},{ x:'06/05/2023',y:[600.00,607.00,596.00,604.00]},{ x:'06/06/2023',y:[606.00,610.00,595.00,604.00]},{ x:'06/07/2023',y:[607.00,626.00,603.00,615.00]},{ x:'06/08/2023',y:[608.00,611.00,590.00,595.00]},{ x:'06/09/2023',y:[600.00,613.00,594.00,608.00]},{ x:'06/12/2023',y:[618.00,640.00,601.00,619.00]},{ x:'06/13/2023',y:[628.00,641.00,622.00,633.00]},{ x:'06/14/2023',y:[632.00,639.00,610.00,616.00]},{ x:'06/15/2023',y:[621.00,646.00,620.00,644.00]},{ x:'06/16/2023',y:[644.00,645.00,632.00,635.00]},{ x:'06/19/2023',y:[636.00,652.00,631.00,646.00]},{ x:'06/20/2023',y:[649.00,679.00,645.00,666.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3653 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());