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:'06/02/2023',y:[525.00,544.00,511.00,528.00]},{ x:'06/05/2023',y:[534.00,573.00,520.00,520.00]},{ x:'06/06/2023',y:[523.00,545.00,517.00,525.00]},{ x:'06/07/2023',y:[550.00,577.00,541.00,577.00]},{ x:'06/08/2023',y:[612.00,612.00,520.00,522.00]},{ x:'06/09/2023',y:[530.00,544.00,530.00,530.00]},{ x:'06/12/2023',y:[534.00,537.00,509.00,530.00]},{ x:'06/13/2023',y:[540.00,572.00,527.00,531.00]},{ x:'06/14/2023',y:[532.00,568.00,531.00,537.00]},{ x:'06/15/2023',y:[539.00,551.00,529.00,537.00]},{ x:'06/16/2023',y:[542.00,548.00,533.00,543.00]},{ x:'06/19/2023',y:[548.00,558.00,536.00,553.00]},{ x:'06/20/2023',y:[550.00,561.00,541.00,545.00]},{ x:'06/21/2023',y:[546.00,572.00,546.00,563.00]},{ x:'06/26/2023',y:[550.00,556.00,525.00,542.00]},{ x:'06/27/2023',y:[542.00,555.00,526.00,526.00]},{ x:'06/28/2023',y:[539.00,539.00,490.50,493.50]},{ x:'06/29/2023',y:[506.00,510.00,498.00,507.00]},{ x:'06/30/2023',y:[514.00,546.00,500.00,543.00]},{ x:'07/03/2023',y:[553.00,566.00,543.00,562.00]},{ x:'07/04/2023',y:[568.00,609.00,568.00,599.00]},{ x:'07/05/2023',y:[601.00,601.00,572.00,578.00]},{ x:'07/06/2023',y:[575.00,608.00,569.00,574.00]},{ x:'07/07/2023',y:[572.00,589.00,554.00,557.00]},{ x:'07/10/2023',y:[570.00,583.00,561.00,575.00]},{ x:'07/11/2023',y:[585.00,609.00,583.00,609.00]},{ x:'07/12/2023',y:[619.00,626.00,562.00,566.00]},{ x:'07/13/2023',y:[570.00,583.00,550.00,570.00]},{ x:'07/14/2023',y:[579.00,603.00,570.00,596.00]},{ x:'07/17/2023',y:[601.00,618.00,598.00,600.00]},{ x:'07/18/2023',y:[608.00,612.00,572.00,591.00]},{ x:'07/19/2023',y:[596.00,605.00,577.00,584.00]},{ x:'07/20/2023',y:[588.00,607.00,584.00,606.00]},{ x:'07/21/2023',y:[584.00,604.00,561.00,601.00]},{ x:'07/24/2023',y:[606.00,612.00,589.00,593.00]},{ x:'07/25/2023',y:[606.00,622.00,580.00,590.00]},{ x:'07/26/2023',y:[597.00,649.00,597.00,649.00]},{ x:'07/27/2023',y:[612.00,640.00,595.00,595.00]},{ x:'07/28/2023',y:[602.00,654.00,596.00,654.00]},{ x:'07/31/2023',y:[654.00,714.00,654.00,662.00]},{ x:'08/01/2023',y:[699.00,699.00,600.00,613.00]},{ x:'08/02/2023',y:[606.00,615.00,552.00,552.00]},{ x:'08/04/2023',y:[565.00,595.00,546.00,571.00]},{ x:'08/07/2023',y:[573.00,604.00,571.00,594.00]},{ x:'08/08/2023',y:[605.00,609.00,582.00,593.00]},{ x:'08/09/2023',y:[575.00,585.00,534.00,535.00]},{ x:'08/10/2023',y:[535.00,535.00,492.00,500.00]},{ x:'08/11/2023',y:[520.00,520.00,496.00,500.00]},{ x:'08/14/2023',y:[499.00,516.00,486.00,510.00]},{ x:'08/15/2023',y:[521.00,526.00,504.00,504.00]},{ x:'08/16/2023',y:[497.50,510.00,492.50,507.00]},{ x:'08/17/2023',y:[500.00,557.00,498.00,555.00]},{ x:'08/18/2023',y:[554.00,584.00,550.00,572.00]},{ x:'08/21/2023',y:[598.00,598.00,541.00,555.00]},{ x:'08/22/2023',y:[567.00,578.00,538.00,540.00]},{ x:'08/23/2023',y:[540.00,546.00,510.00,526.00]},{ x:'08/24/2023',y:[543.00,555.00,528.00,543.00]},{ x:'08/25/2023',y:[537.00,564.00,530.00,530.00]},{ x:'08/28/2023',y:[534.00,546.00,526.00,527.00]},{ x:'08/29/2023',y:[530.00,544.00,520.00,544.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3131 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());