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/12/2023',y:[433.50,445.00,432.50,436.50]},{ x:'04/13/2023',y:[433.00,440.00,421.50,438.50]},{ x:'04/14/2023',y:[438.50,471.00,435.00,471.00]},{ x:'04/17/2023',y:[475.00,495.00,472.00,478.50]},{ x:'04/18/2023',y:[483.50,483.50,454.50,454.50]},{ x:'04/19/2023',y:[463.00,480.00,459.00,480.00]},{ x:'04/20/2023',y:[490.00,490.00,461.50,465.00]},{ x:'04/21/2023',y:[467.50,467.50,433.00,435.00]},{ x:'04/24/2023',y:[418.00,448.00,418.00,447.00]},{ x:'04/25/2023',y:[449.00,449.00,422.50,427.50]},{ x:'04/26/2023',y:[429.00,440.50,418.00,435.00]},{ x:'04/27/2023',y:[445.00,453.00,411.00,428.00]},{ x:'04/28/2023',y:[431.50,470.50,430.00,470.50]},{ x:'05/02/2023',y:[479.00,517.00,479.00,517.00]},{ x:'05/03/2023',y:[520.00,530.00,509.00,530.00]},{ x:'05/04/2023',y:[528.00,556.00,504.00,545.00]},{ x:'05/05/2023',y:[545.00,557.00,532.00,548.00]},{ x:'05/08/2023',y:[536.00,537.00,511.00,511.00]},{ x:'05/09/2023',y:[518.00,534.00,515.00,515.00]},{ x:'05/10/2023',y:[520.00,549.00,520.00,528.00]},{ x:'05/11/2023',y:[538.00,544.00,515.00,520.00]},{ x:'05/12/2023',y:[530.00,549.00,513.00,546.00]},{ x:'05/15/2023',y:[538.00,550.00,522.00,522.00]},{ x:'05/16/2023',y:[531.00,534.00,517.00,520.00]},{ x:'05/17/2023',y:[525.00,570.00,522.00,557.00]},{ x:'05/18/2023',y:[560.00,575.00,548.00,558.00]},{ x:'05/19/2023',y:[566.00,585.00,555.00,578.00]},{ x:'05/22/2023',y:[577.00,605.00,574.00,599.00]},{ x:'05/23/2023',y:[599.00,605.00,563.00,565.00]},{ x:'05/24/2023',y:[571.00,573.00,554.00,563.00]},{ x:'05/25/2023',y:[569.00,582.00,557.00,560.00]},{ x:'05/26/2023',y:[565.00,576.00,553.00,556.00]},{ x:'05/29/2023',y:[561.00,567.00,550.00,550.00]},{ x:'05/30/2023',y:[552.00,564.00,532.00,538.00]},{ x:'05/31/2023',y:[545.00,552.00,515.00,527.00]},{ x:'06/01/2023',y:[529.00,554.00,525.00,553.00]},{ x:'06/02/2023',y:[562.00,572.00,501.00,506.00]},{ x:'06/05/2023',y:[506.00,530.00,502.00,522.00]},{ x:'06/06/2023',y:[529.00,562.00,518.00,550.00]},{ x:'06/07/2023',y:[557.00,565.00,527.00,533.00]},{ x:'06/08/2023',y:[535.00,539.00,512.00,518.00]},{ x:'06/09/2023',y:[525.00,527.00,514.00,514.00]},{ x:'06/12/2023',y:[515.00,523.00,506.00,516.00]},{ x:'06/13/2023',y:[522.00,560.00,520.00,531.00]},{ x:'06/14/2023',y:[536.00,537.00,515.00,528.00]},{ x:'06/15/2023',y:[530.00,547.00,525.00,544.00]},{ x:'06/16/2023',y:[549.00,573.00,540.00,562.00]},{ x:'06/19/2023',y:[568.00,571.00,543.00,544.00]},{ x:'06/20/2023',y:[547.00,548.00,526.00,530.00]},{ x:'06/21/2023',y:[532.00,535.00,524.00,533.00]},{ x:'06/26/2023',y:[527.00,529.00,511.00,515.00]},{ x:'06/27/2023',y:[519.00,526.00,512.00,517.00]},{ x:'06/28/2023',y:[522.00,557.00,518.00,542.00]},{ x:'06/29/2023',y:[547.00,578.00,546.00,575.00]},{ x:'06/30/2023',y:[580.00,589.00,546.00,552.00]},{ x:'07/03/2023',y:[556.00,557.00,522.00,555.00]},{ x:'07/04/2023',y:[555.00,594.00,552.00,590.00]},{ x:'07/05/2023',y:[595.00,649.00,594.00,649.00]},{ x:'07/06/2023',y:[651.00,666.00,636.00,660.00]},{ x:'07/07/2023',y:[658.00,665.00,635.00,655.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4763 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());