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/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]},{ x:'07/03/2024',y:[184.80,185.15,184.15,184.90]},{ x:'07/04/2024',y:[188.20,190.70,188.20,190.70]},{ x:'07/05/2024',y:[191.40,191.40,189.70,189.80]},{ x:'07/12/2024',y:[196.65,196.85,194.60,194.75]},{ x:'07/15/2024',y:[195.20,196.60,194.30,194.85]},{ x:'07/16/2024',y:[194.85,198.95,194.85,196.25]},{ x:'07/17/2024',y:[196.00,196.00,192.90,194.00]},{ x:'07/18/2024',y:[188.45,189.65,187.00,189.40]},{ x:'07/19/2024',y:[186.55,187.00,183.60,183.90]},{ x:'07/22/2024',y:[183.00,183.00,176.50,177.35]},{ x:'07/23/2024',y:[180.75,183.10,180.15,183.10]},{ x:'07/26/2024',y:[174.50,175.30,173.30,174.55]},{ x:'07/29/2024',y:[177.65,177.90,175.00,175.95]},{ x:'07/30/2024',y:[174.60,177.10,172.60,176.45]},{ x:'07/31/2024',y:[174.75,176.45,174.00,176.25]},{ x:'08/01/2024',y:[181.80,181.80,178.25,179.80]},{ x:'08/02/2024',y:[173.80,174.30,170.00,170.05]},{ x:'08/05/2024',y:[163.20,164.85,153.05,153.45]},{ x:'08/06/2024',y:[159.50,165.00,155.10,162.25]},{ x:'08/07/2024',y:[164.35,170.30,164.35,169.55]},{ x:'08/08/2024',y:[165.05,167.00,163.80,165.65]},{ x:'08/09/2024',y:[171.00,172.45,169.70,171.50]},{ x:'08/12/2024',y:[172.80,174.95,172.50,173.70]},{ x:'08/13/2024',y:[174.90,174.95,173.70,174.30]},{ x:'08/14/2024',y:[176.75,177.20,175.30,176.15]},{ x:'08/15/2024',y:[175.70,176.40,174.55,175.25]} ] }], 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());