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:'03/23/2023',y:[170.00,180.00,169.00,179.00]},{ x:'03/24/2023',y:[182.00,183.00,179.00,181.50]},{ x:'03/27/2023',y:[181.50,181.50,177.00,178.50]},{ x:'03/28/2023',y:[178.50,183.50,176.50,177.50]},{ x:'03/29/2023',y:[179.50,181.00,176.00,178.50]},{ x:'03/30/2023',y:[179.00,179.50,177.50,178.00]},{ x:'03/31/2023',y:[179.50,179.50,177.00,177.50]},{ x:'04/06/2023',y:[176.50,177.50,173.50,177.50]},{ x:'04/07/2023',y:[178.00,182.00,178.00,180.50]},{ x:'04/10/2023',y:[182.00,182.00,177.00,177.00]},{ x:'04/11/2023',y:[177.00,178.50,176.00,178.00]},{ x:'04/12/2023',y:[178.00,179.00,176.00,177.00]},{ x:'04/13/2023',y:[175.50,180.50,175.50,179.50]},{ x:'04/14/2023',y:[181.50,181.50,178.00,178.00]},{ x:'04/17/2023',y:[178.00,179.00,177.00,177.00]},{ x:'04/18/2023',y:[177.50,179.00,176.50,178.00]},{ x:'04/19/2023',y:[177.50,178.50,174.00,174.00]},{ x:'04/20/2023',y:[174.00,177.00,173.50,175.50]},{ x:'04/21/2023',y:[174.50,181.50,174.00,178.00]},{ x:'04/24/2023',y:[178.50,179.50,175.00,176.50]},{ x:'04/25/2023',y:[178.00,179.00,172.00,173.00]},{ x:'04/26/2023',y:[175.50,178.50,174.00,178.00]},{ x:'04/27/2023',y:[177.50,180.00,177.00,179.00]},{ x:'04/28/2023',y:[191.50,194.50,188.50,190.00]},{ x:'05/02/2023',y:[194.00,194.00,189.00,191.50]},{ x:'05/03/2023',y:[191.50,191.50,182.50,183.50]},{ x:'05/04/2023',y:[184.50,191.00,183.00,189.50]},{ x:'05/05/2023',y:[189.50,191.50,188.00,190.00]},{ x:'05/08/2023',y:[191.50,193.00,188.50,191.00]},{ x:'05/09/2023',y:[188.00,191.00,184.50,190.50]},{ x:'05/10/2023',y:[191.00,191.00,188.50,190.00]},{ 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]} ] }], 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());