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/21/2024',y:[157.85,160.00,157.85,160.00]},{ x:'03/22/2024',y:[160.60,160.60,158.40,160.15]},{ x:'03/25/2024',y:[159.85,160.55,159.15,159.80]},{ x:'03/26/2024',y:[160.20,161.25,157.65,159.30]},{ x:'03/27/2024',y:[158.95,159.45,158.30,159.10]},{ x:'03/28/2024',y:[158.80,159.05,157.25,158.75]},{ x:'03/29/2024',y:[158.45,159.65,158.40,159.30]},{ x:'04/01/2024',y:[160.00,160.25,158.70,158.80]},{ x:'04/02/2024',y:[159.25,162.00,159.25,162.00]},{ x:'04/03/2024',y:[161.20,161.20,159.75,160.75]},{ x:'04/08/2024',y:[161.00,161.95,160.70,161.10]},{ x:'04/09/2024',y:[161.60,165.75,161.60,165.50]},{ x:'04/10/2024',y:[166.00,166.00,164.55,165.35]},{ x:'04/11/2024',y:[165.00,165.20,164.10,165.20]},{ x:'04/12/2024',y:[165.35,166.10,164.85,165.10]},{ x:'04/15/2024',y:[164.40,164.40,161.95,162.50]},{ x:'04/16/2024',y:[160.60,160.70,157.20,158.55]},{ x:'04/17/2024',y:[159.90,160.95,159.05,160.75]},{ x:'04/18/2024',y:[154.40,156.85,152.35,156.85]},{ x:'04/19/2024',y:[152.00,152.30,144.95,148.05]},{ x:'04/22/2024',y:[147.35,147.35,144.25,144.25]},{ x:'04/23/2024',y:[146.30,146.75,145.10,145.90]},{ x:'04/24/2024',y:[148.50,151.90,148.50,151.60]},{ x:'04/25/2024',y:[149.80,149.90,148.30,148.55]},{ x:'04/26/2024',y:[151.60,152.30,151.05,151.25]},{ x:'04/29/2024',y:[153.00,153.75,152.70,153.40]},{ x:'04/30/2024',y:[154.00,154.50,153.60,153.90]},{ x:'05/02/2024',y:[151.80,151.80,150.70,151.10]},{ x:'05/03/2024',y:[152.60,153.60,151.10,151.25]},{ x:'05/06/2024',y:[153.70,154.80,153.60,153.80]},{ x:'05/07/2024',y:[155.00,155.00,154.20,154.85]},{ x:'05/08/2024',y:[154.85,156.20,154.60,156.20]},{ x:'05/09/2024',y:[156.05,156.35,155.80,156.00]},{ x:'05/10/2024',y:[156.50,156.70,155.00,156.70]},{ x:'05/13/2024',y:[158.00,158.75,157.50,157.90]},{ x:'05/14/2024',y:[157.90,159.60,157.30,159.55]},{ x:'05/15/2024',y:[161.20,162.40,161.00,161.65]},{ x:'05/16/2024',y:[163.55,164.45,161.90,161.90]},{ x:'05/17/2024',y:[161.00,162.35,161.00,161.70]},{ x:'05/20/2024',y:[162.00,162.00,159.45,161.20]},{ x:'05/21/2024',y:[161.80,161.80,160.60,161.65]},{ x:'05/22/2024',y:[162.85,165.50,162.60,165.45]},{ x:'05/23/2024',y:[166.65,167.75,165.65,167.60]},{ x:'05/24/2024',y:[164.50,167.20,164.50,166.85]},{ x:'06/11/2024',y:[170.10,170.50,169.20,169.65]},{ x:'06/12/2024',y:[169.60,173.40,169.60,173.40]},{ x:'06/13/2024',y:[176.00,178.25,175.25,176.60]},{ x:'06/14/2024',y:[176.10,177.50,174.95,177.50]},{ x:'06/17/2024',y:[177.40,178.15,176.65,177.55]},{ x:'06/18/2024',y:[179.90,181.35,179.90,181.10]},{ x:'06/19/2024',y:[184.00,187.90,183.50,187.65]},{ x:'06/20/2024',y:[187.90,188.15,186.40,188.05]},{ x:'06/21/2024',y:[186.50,187.25,185.00,186.50]},{ x:'06/24/2024',y:[184.25,184.30,181.25,181.70]},{ x:'06/25/2024',y:[178.50,181.65,177.80,181.65]},{ x:'06/26/2024',y:[183.05,184.05,182.30,183.80]},{ x:'06/27/2024',y:[182.30,183.40,181.05,183.25]},{ x:'06/28/2024',y:[183.45,185.40,182.80,184.80]},{ x:'07/01/2024',y:[184.85,186.20,184.25,184.40]},{ x:'07/02/2024',y:[184.15,184.80,182.35,182.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0052 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());