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/06/2023',y:[573.00,573.00,546.00,548.00]},{ x:'04/07/2023',y:[547.00,554.00,545.00,545.00]},{ x:'04/10/2023',y:[546.00,555.00,546.00,550.00]},{ x:'04/11/2023',y:[552.00,555.00,536.00,538.00]},{ x:'04/12/2023',y:[534.00,545.00,526.00,540.00]},{ x:'04/13/2023',y:[542.00,544.00,535.00,535.00]},{ x:'04/14/2023',y:[542.00,555.00,536.00,551.00]},{ x:'04/17/2023',y:[553.00,557.00,542.00,545.00]},{ x:'04/18/2023',y:[545.00,551.00,542.00,542.00]},{ x:'04/19/2023',y:[544.00,546.00,535.00,535.00]},{ x:'04/20/2023',y:[534.00,536.00,527.00,527.00]},{ x:'04/21/2023',y:[528.00,528.00,503.00,505.00]},{ x:'04/24/2023',y:[505.00,524.00,505.00,520.00]},{ x:'04/25/2023',y:[520.00,525.00,512.00,518.00]},{ x:'04/26/2023',y:[515.00,520.00,510.00,513.00]},{ x:'04/27/2023',y:[515.00,526.00,514.00,523.00]},{ x:'04/28/2023',y:[528.00,536.00,524.00,535.00]},{ x:'05/02/2023',y:[543.00,544.00,532.00,534.00]},{ x:'05/03/2023',y:[534.00,543.00,528.00,538.00]},{ x:'05/04/2023',y:[543.00,545.00,536.00,538.00]},{ x:'05/05/2023',y:[549.00,552.00,540.00,540.00]},{ x:'05/08/2023',y:[548.00,562.00,545.00,556.00]},{ x:'05/09/2023',y:[565.00,569.00,553.00,559.00]},{ x:'05/10/2023',y:[563.00,565.00,556.00,559.00]},{ x:'05/11/2023',y:[563.00,564.00,556.00,560.00]},{ x:'05/12/2023',y:[556.00,566.00,556.00,564.00]},{ x:'05/15/2023',y:[567.00,567.00,546.00,548.00]},{ x:'05/16/2023',y:[555.00,555.00,546.00,546.00]},{ x:'05/17/2023',y:[546.00,553.00,544.00,549.00]},{ x:'05/18/2023',y:[551.00,560.00,551.00,554.00]},{ x:'05/19/2023',y:[555.00,556.00,546.00,547.00]},{ x:'05/22/2023',y:[547.00,550.00,544.00,548.00]},{ x:'05/23/2023',y:[549.00,560.00,546.00,558.00]},{ x:'05/24/2023',y:[555.00,556.00,550.00,552.00]},{ x:'05/25/2023',y:[559.00,559.00,552.00,558.00]},{ x:'05/26/2023',y:[556.00,558.00,550.00,550.00]},{ x:'05/29/2023',y:[552.00,565.00,551.00,562.00]},{ x:'05/30/2023',y:[561.00,563.00,554.00,555.00]},{ x:'05/31/2023',y:[555.00,575.00,554.00,567.00]},{ x:'06/01/2023',y:[565.00,600.00,565.00,595.00]},{ x:'06/02/2023',y:[602.00,645.00,602.00,631.00]},{ x:'06/05/2023',y:[645.00,655.00,626.00,631.00]},{ x:'06/06/2023',y:[636.00,648.00,623.00,628.00]},{ x:'06/07/2023',y:[633.00,642.00,627.00,630.00]},{ x:'06/08/2023',y:[641.00,644.00,630.00,633.00]},{ x:'06/09/2023',y:[639.00,639.00,612.00,616.00]},{ x:'06/12/2023',y:[617.00,630.00,612.00,617.00]},{ x:'06/13/2023',y:[627.00,627.00,618.00,622.00]},{ x:'06/14/2023',y:[622.00,626.00,617.00,619.00]},{ x:'06/15/2023',y:[620.00,620.00,605.00,608.00]},{ x:'06/16/2023',y:[608.00,613.00,604.00,608.00]},{ x:'06/19/2023',y:[615.00,615.00,607.00,609.00]},{ x:'06/20/2023',y:[612.00,638.00,610.00,624.00]},{ x:'06/21/2023',y:[624.00,624.00,607.00,608.00]},{ x:'06/26/2023',y:[610.00,629.00,605.00,624.00]},{ x:'06/27/2023',y:[624.00,644.00,624.00,632.00]},{ x:'06/28/2023',y:[636.00,638.00,614.00,614.00]},{ x:'06/29/2023',y:[621.00,622.00,614.00,618.00]},{ x:'06/30/2023',y:[620.00,630.00,612.00,618.00]},{ x:'07/03/2023',y:[620.00,622.00,608.00,610.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3293 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());