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:'07/05/2023',y:[270.00,272.00,254.00,265.00]},{ x:'07/06/2023',y:[257.50,271.50,256.50,264.00]},{ x:'07/07/2023',y:[262.50,269.00,253.00,261.00]},{ x:'07/10/2023',y:[263.00,280.50,261.00,273.50]},{ x:'07/11/2023',y:[277.00,282.50,273.50,276.50]},{ x:'07/12/2023',y:[281.00,304.00,280.50,304.00]},{ x:'07/13/2023',y:[312.00,333.00,290.50,295.50]},{ x:'07/14/2023',y:[305.00,309.50,281.50,296.00]},{ x:'07/17/2023',y:[290.50,306.50,290.00,293.50]},{ x:'07/18/2023',y:[300.00,319.00,286.50,312.50]},{ x:'07/19/2023',y:[317.00,321.00,297.50,298.50]},{ x:'07/20/2023',y:[300.00,308.00,297.00,305.00]},{ x:'07/21/2023',y:[291.50,332.00,291.00,322.50]},{ x:'07/24/2023',y:[325.00,354.50,321.00,354.50]},{ x:'07/25/2023',y:[360.00,382.50,348.00,352.50]},{ x:'07/26/2023',y:[340.00,348.00,330.50,333.00]},{ x:'07/27/2023',y:[341.00,347.50,327.00,332.00]},{ x:'07/28/2023',y:[338.00,348.50,329.00,347.50]},{ x:'07/31/2023',y:[359.00,361.00,313.00,314.00]},{ x:'08/01/2023',y:[314.00,326.50,301.00,319.00]},{ x:'08/02/2023',y:[320.00,327.00,291.50,297.00]},{ x:'08/04/2023',y:[291.00,318.00,288.00,306.00]},{ x:'08/07/2023',y:[316.00,336.50,312.50,336.50]},{ x:'08/08/2023',y:[342.50,352.00,330.00,333.50]},{ x:'08/09/2023',y:[323.50,348.50,322.50,328.50]},{ x:'08/10/2023',y:[306.00,314.50,296.00,296.00]},{ x:'08/11/2023',y:[300.00,308.00,296.00,300.50]},{ x:'08/14/2023',y:[287.50,301.50,284.00,296.00]},{ x:'08/15/2023',y:[310.00,322.00,308.00,316.00]},{ x:'08/16/2023',y:[311.00,334.50,309.00,334.50]},{ x:'08/17/2023',y:[328.00,339.00,325.00,331.00]},{ x:'08/18/2023',y:[329.00,333.00,304.00,312.00]},{ x:'08/21/2023',y:[318.00,320.00,306.50,310.50]},{ x:'08/22/2023',y:[323.50,341.50,323.50,335.50]},{ x:'08/23/2023',y:[334.50,337.00,327.50,334.50]},{ x:'08/24/2023',y:[356.00,367.50,339.00,354.00]},{ x:'08/25/2023',y:[335.00,353.50,335.00,342.50]},{ x:'08/28/2023',y:[347.50,351.00,327.00,345.00]},{ x:'08/29/2023',y:[349.50,357.50,346.00,354.00]},{ x:'08/30/2023',y:[362.50,372.50,354.00,354.00]},{ x:'08/31/2023',y:[345.50,351.50,338.00,341.00]},{ x:'09/01/2023',y:[341.00,346.50,322.00,323.00]},{ x:'09/04/2023',y:[323.50,329.00,314.00,316.00]},{ x:'09/05/2023',y:[316.00,321.50,304.00,311.00]},{ x:'09/06/2023',y:[314.50,316.50,305.00,306.50]},{ x:'09/07/2023',y:[303.00,314.50,299.00,314.50]},{ x:'09/08/2023',y:[310.00,321.00,307.50,307.50]},{ x:'09/11/2023',y:[313.00,313.00,277.00,279.50]},{ x:'09/12/2023',y:[278.50,283.00,269.00,270.50]},{ x:'09/13/2023',y:[272.00,273.00,264.00,267.50]},{ x:'09/14/2023',y:[276.00,283.00,273.00,278.00]},{ x:'09/15/2023',y:[279.50,279.50,270.50,271.50]},{ x:'09/18/2023',y:[265.50,267.50,253.50,260.00]},{ x:'09/19/2023',y:[261.00,264.00,252.00,253.50]},{ x:'09/20/2023',y:[252.00,273.50,252.00,263.50]},{ x:'09/21/2023',y:[260.00,272.00,254.50,268.50]},{ x:'09/22/2023',y:[267.00,279.00,262.50,279.00]},{ x:'09/25/2023',y:[279.00,279.50,271.50,274.50]},{ x:'09/26/2023',y:[277.50,283.50,275.50,275.50]},{ x:'09/27/2023',y:[277.50,284.50,274.50,284.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2376 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());