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:'02/15/2023',y:[294.00,315.00,294.00,310.00]},{ x:'02/16/2023',y:[310.50,315.50,301.00,306.00]},{ x:'02/17/2023',y:[303.50,308.50,294.00,301.00]},{ x:'02/20/2023',y:[300.00,314.50,300.00,312.50]},{ x:'02/21/2023',y:[312.00,329.00,310.00,318.00]},{ x:'02/22/2023',y:[316.00,324.00,303.50,324.00]},{ x:'02/23/2023',y:[322.00,356.00,320.00,356.00]},{ x:'02/24/2023',y:[368.00,376.00,327.00,339.00]},{ x:'03/01/2023',y:[338.00,344.00,305.50,307.50]},{ x:'03/02/2023',y:[313.00,321.50,306.00,318.00]},{ x:'03/03/2023',y:[322.00,348.50,320.00,338.00]},{ x:'03/06/2023',y:[345.00,353.50,342.00,348.00]},{ x:'03/07/2023',y:[351.00,359.00,347.50,347.50]},{ x:'03/08/2023',y:[352.00,353.50,320.00,341.00]},{ x:'03/09/2023',y:[343.00,344.50,330.00,335.00]},{ x:'03/10/2023',y:[328.00,330.50,317.00,321.50]},{ x:'03/13/2023',y:[320.00,324.50,310.00,321.50]},{ x:'03/14/2023',y:[317.50,321.00,296.50,299.00]},{ x:'03/15/2023',y:[309.00,312.00,302.00,302.00]},{ x:'03/16/2023',y:[298.00,309.00,298.00,307.00]},{ x:'03/17/2023',y:[309.50,314.50,295.00,306.50]},{ x:'03/20/2023',y:[308.50,313.50,305.00,305.00]},{ x:'03/21/2023',y:[310.00,318.50,305.50,308.00]},{ x:'03/22/2023',y:[312.00,338.00,312.00,330.50]},{ x:'03/23/2023',y:[333.00,343.50,321.50,333.00]},{ x:'03/24/2023',y:[330.00,333.00,303.00,307.00]},{ x:'03/27/2023',y:[309.50,332.00,307.00,322.50]},{ x:'03/28/2023',y:[328.00,331.00,312.00,320.50]},{ x:'03/29/2023',y:[327.50,330.00,325.00,329.50]},{ x:'03/30/2023',y:[334.50,336.00,329.50,335.00]},{ x:'03/31/2023',y:[337.00,350.00,337.00,348.00]},{ x:'04/06/2023',y:[351.50,364.00,351.50,364.00]},{ x:'04/07/2023',y:[379.50,400.00,370.00,400.00]},{ x:'04/10/2023',y:[406.50,439.00,400.00,437.00]},{ x:'04/11/2023',y:[433.50,437.00,420.00,437.00]},{ 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]} ] }], 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());