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/18/2023',y:[281.50,282.00,277.00,278.50]},{ x:'04/19/2023',y:[279.00,281.00,278.00,278.50]},{ x:'04/20/2023',y:[279.50,279.50,275.50,276.50]},{ x:'04/21/2023',y:[279.00,280.50,275.00,276.00]},{ x:'04/24/2023',y:[278.00,279.00,276.00,278.50]},{ x:'04/25/2023',y:[280.00,280.00,276.00,278.00]},{ x:'04/26/2023',y:[275.50,277.00,272.00,275.50]},{ x:'04/27/2023',y:[275.50,280.00,274.50,280.00]},{ x:'04/28/2023',y:[282.00,282.50,279.00,282.50]},{ x:'05/02/2023',y:[283.00,287.00,282.00,286.00]},{ x:'05/03/2023',y:[287.00,288.00,285.50,287.50]},{ x:'05/04/2023',y:[287.00,292.00,286.50,292.00]},{ x:'05/05/2023',y:[291.50,291.50,286.00,289.00]},{ x:'05/08/2023',y:[289.00,290.50,288.00,288.50]},{ x:'05/09/2023',y:[289.50,293.00,289.00,292.00]},{ x:'05/10/2023',y:[290.50,292.00,287.50,291.50]},{ x:'05/11/2023',y:[291.50,291.50,286.50,286.50]},{ x:'05/12/2023',y:[286.00,287.00,280.50,281.50]},{ x:'05/15/2023',y:[304.50,309.00,297.50,303.50]},{ x:'05/16/2023',y:[303.00,305.50,299.00,303.50]},{ x:'05/17/2023',y:[302.50,305.00,302.00,303.50]},{ x:'05/18/2023',y:[304.50,310.00,303.00,308.00]},{ x:'05/19/2023',y:[306.00,309.50,305.00,308.00]},{ x:'05/22/2023',y:[307.50,308.00,303.50,306.50]},{ x:'05/23/2023',y:[307.50,309.00,306.50,307.00]},{ x:'05/24/2023',y:[307.00,308.00,304.50,308.00]},{ x:'05/25/2023',y:[307.00,308.50,304.00,304.50]},{ x:'05/26/2023',y:[304.50,309.00,304.00,308.50]},{ x:'05/29/2023',y:[309.50,312.00,303.50,303.50]},{ x:'05/30/2023',y:[307.50,307.50,303.50,304.00]},{ x:'05/31/2023',y:[304.00,307.00,303.00,305.00]},{ x:'06/01/2023',y:[304.00,307.00,301.50,306.00]},{ x:'06/02/2023',y:[306.00,316.00,305.50,315.00]},{ x:'06/05/2023',y:[315.00,315.50,312.50,313.50]},{ x:'06/06/2023',y:[312.50,315.00,311.00,313.00]},{ x:'06/07/2023',y:[313.00,316.00,313.00,314.50]},{ x:'06/08/2023',y:[313.00,316.50,312.00,314.00]},{ x:'06/09/2023',y:[316.50,316.50,314.00,315.00]},{ x:'06/12/2023',y:[316.00,325.00,316.00,324.50]},{ x:'06/13/2023',y:[328.00,328.00,319.00,320.00]},{ x:'06/14/2023',y:[320.00,321.00,316.00,317.50]},{ x:'06/15/2023',y:[318.00,322.50,315.00,319.50]},{ x:'06/16/2023',y:[318.00,319.50,313.50,316.50]},{ x:'06/19/2023',y:[314.50,316.00,310.00,311.00]},{ x:'06/20/2023',y:[312.00,314.00,308.00,310.00]},{ x:'06/21/2023',y:[311.00,317.50,310.00,314.50]},{ x:'06/26/2023',y:[317.00,324.00,313.50,321.00]},{ x:'06/27/2023',y:[319.50,320.00,315.50,315.50]},{ x:'06/28/2023',y:[316.00,319.00,314.00,316.00]},{ x:'06/29/2023',y:[308.00,317.00,308.00,314.00]},{ x:'06/30/2023',y:[311.00,317.00,311.00,314.50]},{ x:'07/03/2023',y:[319.00,319.00,312.00,312.50]},{ x:'07/04/2023',y:[298.50,302.50,293.00,293.50]},{ x:'07/05/2023',y:[294.00,298.00,292.00,296.50]},{ x:'07/06/2023',y:[298.00,302.50,295.50,300.00]},{ x:'07/07/2023',y:[300.00,300.00,291.00,293.00]},{ x:'07/10/2023',y:[293.00,295.00,291.00,292.00]},{ x:'07/11/2023',y:[297.50,299.00,292.50,296.00]},{ x:'07/12/2023',y:[293.50,296.50,291.50,296.50]},{ x:'07/13/2023',y:[297.50,300.00,293.50,295.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2357 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());