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:'01/12/2023',y:[251.00,272.00,242.50,272.00]},{ x:'01/13/2023',y:[264.00,268.00,250.50,254.50]},{ x:'01/16/2023',y:[251.50,279.50,251.00,275.00]},{ x:'01/17/2023',y:[275.00,283.50,268.50,276.00]},{ x:'01/30/2023',y:[276.00,291.50,276.00,283.00]},{ x:'01/31/2023',y:[285.00,293.00,277.00,288.00]},{ x:'02/01/2023',y:[289.00,297.50,266.00,271.00]},{ x:'02/02/2023',y:[273.00,274.50,266.00,269.50]},{ x:'02/03/2023',y:[269.50,269.50,253.50,260.50]},{ x:'02/06/2023',y:[260.00,274.00,255.50,267.00]},{ x:'02/07/2023',y:[280.00,293.50,276.50,293.50]},{ x:'02/08/2023',y:[294.50,308.00,289.00,299.50]},{ x:'02/09/2023',y:[298.50,306.50,290.50,291.50]},{ x:'02/10/2023',y:[296.00,306.50,285.50,286.00]},{ x:'02/13/2023',y:[287.50,294.00,282.00,289.50]},{ x:'02/14/2023',y:[291.00,300.00,289.00,297.50]},{ 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]} ] }], 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());