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:'05/11/2023',y:[190.50,190.50,183.50,183.50]},{ x:'05/12/2023',y:[183.50,189.00,183.50,188.50]},{ x:'05/15/2023',y:[186.00,187.50,185.50,187.50]},{ x:'05/16/2023',y:[189.50,190.50,188.50,190.00]},{ x:'05/17/2023',y:[190.00,194.50,190.00,194.50]},{ x:'05/18/2023',y:[195.00,197.00,194.50,196.00]},{ x:'05/19/2023',y:[197.50,201.50,197.00,201.50]},{ x:'05/22/2023',y:[204.00,207.00,200.50,201.00]},{ x:'05/23/2023',y:[202.00,203.00,196.50,198.00]},{ x:'05/24/2023',y:[197.50,197.50,190.50,194.50]},{ x:'05/25/2023',y:[194.00,200.00,192.50,197.50]},{ x:'05/26/2023',y:[203.00,217.00,202.50,217.00]},{ x:'05/29/2023',y:[234.00,237.50,220.00,226.50]},{ x:'05/30/2023',y:[225.50,227.50,221.00,226.00]},{ x:'05/31/2023',y:[225.00,237.00,224.00,233.00]},{ x:'06/01/2023',y:[222.00,229.00,217.00,225.50]},{ x:'06/02/2023',y:[226.00,226.00,218.00,219.00]},{ x:'06/05/2023',y:[219.00,222.00,216.00,219.00]},{ x:'06/06/2023',y:[219.00,225.50,218.50,223.50]},{ x:'06/07/2023',y:[223.50,229.50,223.00,228.00]},{ x:'06/08/2023',y:[227.00,228.50,222.50,225.00]},{ x:'06/09/2023',y:[228.00,228.00,223.50,228.00]},{ x:'06/12/2023',y:[228.00,234.00,226.50,228.00]},{ x:'06/13/2023',y:[234.00,248.50,232.50,246.00]},{ x:'06/14/2023',y:[246.00,252.50,243.00,246.00]},{ x:'06/15/2023',y:[247.50,257.50,245.00,255.00]},{ x:'06/16/2023',y:[254.00,260.00,246.00,258.00]},{ x:'06/19/2023',y:[254.00,259.00,252.50,258.00]},{ x:'06/20/2023',y:[260.50,263.50,253.50,255.00]},{ x:'06/21/2023',y:[257.00,257.00,247.50,252.00]},{ x:'06/26/2023',y:[241.00,252.00,240.00,249.00]},{ x:'06/27/2023',y:[248.00,248.50,242.50,244.50]},{ x:'06/28/2023',y:[246.00,250.00,241.00,242.50]},{ x:'06/29/2023',y:[245.00,249.00,243.00,246.00]},{ x:'06/30/2023',y:[245.50,252.00,242.00,250.50]},{ x:'07/03/2023',y:[250.00,257.00,249.50,256.50]},{ x:'07/04/2023',y:[265.00,276.00,263.00,272.00]},{ x:'07/05/2023',y:[273.50,279.50,266.50,270.50]},{ x:'07/06/2023',y:[267.00,268.00,260.00,264.00]},{ x:'07/07/2023',y:[265.50,269.00,255.00,256.50]},{ x:'07/10/2023',y:[260.00,260.00,250.50,251.50]},{ x:'07/11/2023',y:[254.00,265.00,254.00,261.00]},{ x:'07/12/2023',y:[265.50,278.50,265.00,271.50]},{ x:'07/13/2023',y:[275.50,279.50,262.50,266.50]},{ x:'07/14/2023',y:[270.00,284.00,270.00,282.00]},{ x:'07/17/2023',y:[268.00,274.00,260.50,267.50]},{ x:'07/18/2023',y:[266.00,269.50,260.50,266.50]},{ x:'07/19/2023',y:[270.00,276.00,267.50,269.50]},{ x:'07/20/2023',y:[265.50,268.00,260.50,268.00]},{ x:'07/21/2023',y:[262.50,281.00,260.00,279.50]},{ x:'07/24/2023',y:[275.50,280.50,273.50,275.50]},{ x:'07/25/2023',y:[283.00,289.50,277.00,279.00]},{ x:'07/26/2023',y:[285.00,285.50,275.50,276.00]},{ x:'07/27/2023',y:[272.50,273.50,267.50,270.00]},{ x:'07/28/2023',y:[271.00,289.00,270.00,289.00]},{ x:'07/31/2023',y:[289.00,291.50,275.50,276.00]},{ x:'08/01/2023',y:[280.00,299.50,274.00,282.00]},{ x:'08/02/2023',y:[281.50,281.50,260.00,261.50]},{ x:'08/04/2023',y:[260.00,264.50,253.00,261.50]},{ x:'08/07/2023',y:[260.00,277.00,260.00,271.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2360 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());