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:'04/26/2024',y:[264.00,270.00,264.00,268.00]},{ x:'04/29/2024',y:[268.00,273.00,268.00,273.00]},{ x:'04/30/2024',y:[273.00,273.00,269.50,272.50]},{ x:'05/02/2024',y:[271.50,272.50,266.50,272.50]},{ x:'05/03/2024',y:[276.00,278.00,270.00,270.00]},{ x:'05/06/2024',y:[274.00,278.00,271.50,272.00]},{ x:'05/07/2024',y:[274.00,276.50,268.00,270.00]},{ x:'05/08/2024',y:[270.00,272.50,268.00,272.50]},{ x:'05/09/2024',y:[273.50,273.50,262.50,263.00]},{ x:'05/10/2024',y:[264.00,266.00,257.00,259.00]},{ x:'05/13/2024',y:[253.00,255.00,249.00,253.50]},{ x:'05/14/2024',y:[254.00,259.00,254.00,258.50]},{ x:'05/15/2024',y:[259.00,267.50,259.00,265.00]},{ x:'05/16/2024',y:[268.50,275.00,268.50,270.50]},{ x:'05/17/2024',y:[272.50,273.00,266.00,268.00]},{ x:'05/20/2024',y:[269.00,271.50,263.00,263.00]},{ x:'05/21/2024',y:[262.50,266.00,259.50,260.00]},{ x:'05/22/2024',y:[262.50,281.00,262.00,279.00]},{ x:'05/23/2024',y:[279.00,283.50,274.00,276.00]},{ x:'05/24/2024',y:[273.00,284.00,270.00,278.00]},{ x:'06/11/2024',y:[316.00,318.50,306.00,309.00]},{ x:'06/12/2024',y:[310.00,314.50,304.00,311.00]},{ x:'06/13/2024',y:[313.00,342.00,312.00,340.00]},{ x:'06/14/2024',y:[346.00,373.00,338.50,343.50]},{ x:'06/17/2024',y:[350.50,351.00,332.50,335.00]},{ x:'06/18/2024',y:[337.00,352.00,336.00,344.50]},{ x:'06/19/2024',y:[346.00,346.00,333.50,333.50]},{ x:'06/20/2024',y:[336.50,356.00,336.00,355.00]},{ x:'06/21/2024',y:[351.00,365.00,348.00,357.00]},{ x:'06/24/2024',y:[360.50,360.50,340.00,340.50]},{ x:'06/25/2024',y:[340.50,346.50,330.00,346.00]},{ x:'06/26/2024',y:[350.00,359.50,347.00,355.00]},{ x:'06/27/2024',y:[356.00,357.50,347.00,348.00]},{ x:'06/28/2024',y:[350.00,355.50,348.00,348.00]},{ x:'07/01/2024',y:[353.00,359.50,348.00,348.00]},{ x:'07/02/2024',y:[347.50,351.50,341.00,342.00]},{ x:'07/03/2024',y:[346.00,349.00,341.00,345.50]},{ x:'07/04/2024',y:[349.00,357.50,349.00,353.00]},{ x:'07/05/2024',y:[352.00,370.00,352.00,366.00]},{ x:'07/12/2024',y:[365.50,367.50,347.00,349.50]},{ x:'07/15/2024',y:[354.50,355.00,343.00,346.00]},{ x:'07/16/2024',y:[349.50,352.50,343.00,347.50]},{ x:'07/17/2024',y:[349.00,352.00,338.50,343.50]},{ x:'07/18/2024',y:[331.00,336.00,328.00,334.00]},{ x:'07/19/2024',y:[333.00,334.00,320.50,323.00]},{ x:'07/22/2024',y:[322.00,322.50,307.00,311.00]},{ x:'07/23/2024',y:[318.50,320.00,315.00,320.00]},{ x:'07/26/2024',y:[304.00,318.00,303.00,316.00]},{ x:'07/29/2024',y:[319.00,322.00,313.00,315.00]},{ x:'07/30/2024',y:[310.00,317.50,305.50,316.00]},{ x:'07/31/2024',y:[313.00,329.00,310.50,327.50]},{ x:'08/01/2024',y:[334.00,337.50,328.00,337.50]},{ x:'08/02/2024',y:[322.50,323.50,304.00,304.00]},{ x:'08/05/2024',y:[281.00,286.50,274.00,274.00]},{ x:'08/06/2024',y:[280.00,282.50,248.50,265.00]},{ x:'08/07/2024',y:[270.00,281.50,267.00,278.50]},{ x:'08/08/2024',y:[265.50,278.50,265.50,270.50]},{ x:'08/09/2024',y:[280.00,285.00,278.50,282.00]},{ x:'08/12/2024',y:[283.50,293.00,283.50,290.50]},{ x:'08/13/2024',y:[294.50,294.50,286.50,290.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6789 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());