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:'11/11/2022',y:[249.50,260.00,249.50,259.50]},{ x:'11/14/2022',y:[265.00,280.00,263.00,278.00]},{ x:'11/15/2022',y:[275.00,286.00,270.00,285.00]},{ x:'11/16/2022',y:[284.00,289.00,282.50,287.00]},{ x:'11/17/2022',y:[287.00,289.50,281.00,285.00]},{ x:'11/18/2022',y:[286.50,288.50,279.00,282.00]},{ x:'11/21/2022',y:[279.50,279.50,267.50,268.00]},{ x:'11/22/2022',y:[264.00,268.50,260.00,268.50]},{ x:'11/23/2022',y:[269.00,272.50,268.00,271.00]},{ x:'11/24/2022',y:[273.50,281.00,273.00,280.50]},{ x:'11/25/2022',y:[280.50,282.00,276.00,277.50]},{ x:'11/28/2022',y:[272.50,287.00,271.00,282.50]},{ x:'11/29/2022',y:[282.50,294.00,280.50,291.50]},{ x:'11/30/2022',y:[291.00,299.00,287.50,291.00]},{ x:'12/01/2022',y:[295.00,297.50,289.00,289.00]},{ x:'12/02/2022',y:[285.00,291.00,281.00,285.50]},{ x:'12/05/2022',y:[285.00,291.50,285.00,286.00]},{ x:'12/06/2022',y:[288.50,288.50,278.00,278.00]},{ x:'12/07/2022',y:[280.00,285.00,277.00,283.00]},{ x:'12/08/2022',y:[280.00,285.00,280.00,282.00]},{ x:'12/09/2022',y:[283.00,286.00,274.00,275.50]},{ x:'12/12/2022',y:[275.00,282.00,272.00,280.00]},{ x:'12/13/2022',y:[278.50,278.50,271.50,272.00]},{ x:'12/14/2022',y:[274.50,290.00,274.50,288.50]},{ x:'12/15/2022',y:[286.50,293.50,284.00,293.00]},{ x:'12/16/2022',y:[285.00,293.00,284.00,285.50]},{ x:'12/19/2022',y:[281.50,288.50,280.50,283.50]},{ x:'12/20/2022',y:[281.00,287.00,272.00,274.00]},{ x:'12/21/2022',y:[270.00,280.00,270.00,278.00]},{ x:'12/22/2022',y:[277.50,286.00,277.50,282.50]},{ x:'12/23/2022',y:[276.00,283.00,276.00,278.50]},{ x:'12/26/2022',y:[279.00,280.00,276.50,279.00]},{ x:'12/27/2022',y:[280.00,283.50,280.00,280.50]},{ x:'12/28/2022',y:[280.00,286.00,277.00,285.00]},{ x:'12/29/2022',y:[284.50,295.50,282.50,293.00]},{ x:'12/30/2022',y:[294.00,298.50,291.00,294.50]},{ x:'01/03/2023',y:[298.00,299.50,287.50,293.50]},{ x:'01/04/2023',y:[294.50,299.50,292.50,299.00]},{ x:'01/05/2023',y:[300.00,300.00,292.50,299.00]},{ x:'01/06/2023',y:[299.00,301.00,295.50,297.50]},{ x:'01/09/2023',y:[302.50,313.50,302.00,309.00]},{ x:'01/10/2023',y:[309.00,313.50,304.00,308.00]},{ x:'01/11/2023',y:[311.00,312.00,308.00,309.50]},{ x:'01/12/2023',y:[312.00,316.00,310.50,315.50]},{ x:'01/13/2023',y:[316.00,321.00,314.50,320.00]},{ x:'01/16/2023',y:[320.50,332.50,320.00,330.00]},{ x:'01/17/2023',y:[329.50,329.50,315.00,321.00]},{ x:'01/30/2023',y:[327.00,333.50,315.00,333.50]},{ x:'01/31/2023',y:[333.00,333.00,310.00,311.50]},{ x:'02/01/2023',y:[312.00,315.50,308.00,315.50]},{ x:'02/02/2023',y:[315.50,317.00,310.00,315.50]},{ x:'02/03/2023',y:[312.50,322.50,312.50,320.00]},{ x:'02/06/2023',y:[320.00,320.50,314.50,316.00]},{ x:'02/07/2023',y:[314.00,332.00,314.00,329.00]},{ x:'02/08/2023',y:[329.50,334.50,315.00,326.50]},{ x:'02/09/2023',y:[321.50,326.50,316.00,321.00]},{ x:'02/10/2023',y:[318.00,322.50,316.00,320.50]},{ x:'02/13/2023',y:[317.00,321.00,316.50,319.00]},{ x:'02/14/2023',y:[323.00,333.00,322.00,330.00]},{ x:'02/15/2023',y:[330.50,348.00,327.00,341.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8464 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());