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:'12/06/2022',y:[169.50,174.50,164.50,164.50]},{ x:'12/07/2022',y:[163.00,173.00,163.00,165.50]},{ x:'12/08/2022',y:[165.00,172.00,165.00,171.00]},{ x:'12/09/2022',y:[175.00,188.00,170.00,185.00]},{ x:'12/12/2022',y:[186.50,193.00,174.50,177.50]},{ x:'12/13/2022',y:[179.00,181.50,171.00,173.00]},{ x:'12/14/2022',y:[174.50,179.00,172.00,177.00]},{ x:'12/15/2022',y:[177.50,183.00,177.00,179.00]},{ x:'12/16/2022',y:[175.00,181.00,173.50,176.50]},{ x:'12/19/2022',y:[171.50,176.00,171.50,173.00]},{ x:'12/20/2022',y:[175.00,183.50,168.00,168.50]},{ x:'12/21/2022',y:[173.00,185.00,173.00,185.00]},{ x:'12/22/2022',y:[188.00,189.50,174.00,180.00]},{ x:'12/23/2022',y:[176.00,178.50,171.00,172.00]},{ x:'12/26/2022',y:[172.00,172.50,168.00,169.00]},{ x:'12/27/2022',y:[172.00,182.50,171.00,178.50]},{ x:'12/28/2022',y:[175.50,184.00,175.50,180.00]},{ x:'12/29/2022',y:[180.50,188.50,177.50,187.00]},{ x:'12/30/2022',y:[189.50,195.00,178.00,178.00]},{ x:'01/03/2023',y:[180.00,195.50,179.00,195.50]},{ x:'01/04/2023',y:[195.50,214.00,194.00,209.50]},{ x:'01/05/2023',y:[207.00,209.50,203.50,208.00]},{ x:'01/06/2023',y:[205.00,213.00,199.00,213.00]},{ x:'01/09/2023',y:[213.00,234.00,211.00,234.00]},{ x:'01/10/2023',y:[234.00,248.00,231.00,246.00]},{ x:'01/11/2023',y:[247.00,252.00,241.00,251.00]},{ 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]} ] }], 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());