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/19/2023',y:[324.00,344.50,317.50,329.00]},{ x:'07/20/2023',y:[335.50,345.00,326.00,345.00]},{ x:'07/21/2023',y:[338.00,379.50,337.50,379.50]},{ x:'07/24/2023',y:[389.50,403.00,371.50,377.50]},{ x:'07/25/2023',y:[374.00,389.00,374.00,377.50]},{ x:'07/26/2023',y:[350.00,350.00,340.00,340.00]},{ x:'07/27/2023',y:[322.00,331.00,310.00,331.00]},{ x:'07/28/2023',y:[323.00,325.00,310.50,319.50]},{ x:'07/31/2023',y:[324.50,334.50,298.50,326.00]},{ x:'08/01/2023',y:[328.50,328.50,311.50,312.00]},{ x:'08/02/2023',y:[308.00,315.00,281.00,281.00]},{ x:'08/04/2023',y:[274.50,288.00,267.00,281.50]},{ x:'08/07/2023',y:[286.50,309.50,285.00,307.50]},{ x:'08/08/2023',y:[307.00,307.00,287.50,295.50]},{ x:'08/09/2023',y:[289.00,307.00,289.00,301.00]},{ x:'08/10/2023',y:[296.50,298.50,275.00,280.00]},{ x:'08/11/2023',y:[286.00,304.50,285.00,293.50]},{ x:'08/14/2023',y:[291.00,308.50,290.50,304.00]},{ x:'08/15/2023',y:[322.50,334.00,316.00,334.00]},{ x:'08/16/2023',y:[333.50,346.00,325.00,341.00]},{ x:'08/17/2023',y:[339.50,373.00,336.50,357.00]},{ x:'08/18/2023',y:[357.50,367.00,321.50,328.00]},{ x:'08/21/2023',y:[344.50,348.00,329.50,335.50]},{ x:'08/22/2023',y:[350.50,352.00,339.50,341.00]},{ x:'08/23/2023',y:[343.00,344.00,324.00,340.50]},{ x:'08/24/2023',y:[352.00,356.00,326.50,333.00]},{ x:'08/25/2023',y:[320.50,345.00,320.00,334.00]},{ x:'08/28/2023',y:[340.50,342.00,323.00,335.00]},{ x:'08/29/2023',y:[339.00,344.50,331.00,335.50]},{ x:'08/30/2023',y:[342.00,356.50,341.00,342.00]},{ x:'08/31/2023',y:[341.50,349.50,339.50,345.00]},{ x:'09/01/2023',y:[349.00,357.00,334.50,335.00]},{ x:'09/04/2023',y:[340.50,345.00,336.00,345.00]},{ x:'09/05/2023',y:[344.00,357.50,339.50,357.00]},{ x:'09/06/2023',y:[359.50,372.00,352.00,367.00]},{ x:'09/07/2023',y:[365.00,374.00,358.00,369.50]},{ x:'09/08/2023',y:[364.00,366.50,353.00,360.00]},{ x:'09/11/2023',y:[363.50,366.50,340.50,346.50]},{ x:'09/12/2023',y:[351.00,353.00,321.50,325.50]},{ x:'09/13/2023',y:[328.00,348.00,322.00,348.00]},{ x:'09/14/2023',y:[354.00,360.50,348.50,356.50]},{ x:'09/15/2023',y:[362.00,365.00,338.00,338.00]},{ x:'09/18/2023',y:[335.50,346.00,333.00,344.50]},{ x:'09/19/2023',y:[345.00,345.00,317.50,322.50]},{ x:'09/20/2023',y:[323.00,326.50,312.00,315.50]},{ x:'09/21/2023',y:[312.00,312.50,295.00,298.00]},{ x:'09/22/2023',y:[295.00,307.50,291.50,304.50]},{ x:'09/25/2023',y:[306.00,318.00,303.50,309.50]},{ x:'09/26/2023',y:[311.50,315.00,303.00,303.00]},{ x:'09/27/2023',y:[300.00,306.50,295.00,306.00]},{ x:'09/28/2023',y:[308.50,314.50,304.00,306.00]},{ x:'10/02/2023',y:[312.00,319.00,310.50,312.50]},{ x:'10/03/2023',y:[314.00,316.00,303.00,304.00]},{ x:'10/04/2023',y:[299.00,304.50,297.50,303.00]},{ x:'10/05/2023',y:[306.00,321.50,304.00,321.00]},{ x:'10/06/2023',y:[321.00,323.00,315.00,323.00]},{ x:'10/11/2023',y:[329.00,344.50,328.00,331.00]},{ x:'10/12/2023',y:[337.50,345.00,334.00,345.00]},{ x:'10/13/2023',y:[342.00,344.00,332.00,343.00]},{ x:'10/18/2023',y:[353.50,358.50,341.00,351.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3035 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());