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/04/2024',y:[145.00,147.20,144.85,146.95]},{ x:'03/05/2024',y:[147.75,148.55,147.35,148.15]},{ x:'03/06/2024',y:[147.00,149.05,146.40,148.85]},{ x:'03/07/2024',y:[151.00,153.00,150.75,152.30]},{ x:'03/08/2024',y:[155.60,156.45,153.00,154.45]},{ x:'03/11/2024',y:[153.85,154.20,152.55,152.90]},{ x:'03/12/2024',y:[152.20,154.60,152.10,154.50]},{ x:'03/13/2024',y:[155.55,156.15,154.95,155.25]},{ x:'03/14/2024',y:[154.90,155.80,154.30,155.10]},{ x:'03/15/2024',y:[154.30,154.75,153.00,153.00]},{ x:'03/18/2024',y:[153.00,154.50,153.00,154.40]},{ x:'03/19/2024',y:[153.40,154.55,153.00,154.05]},{ x:'03/20/2024',y:[154.20,155.30,153.00,153.20]},{ x:'03/21/2024',y:[155.55,157.70,155.55,157.40]},{ x:'03/22/2024',y:[157.50,158.25,156.50,157.20]},{ x:'03/25/2024',y:[157.20,158.00,156.95,157.50]},{ x:'03/26/2024',y:[158.30,159.20,156.40,157.60]},{ x:'03/27/2024',y:[157.40,157.85,156.90,157.65]},{ x:'03/28/2024',y:[157.30,157.30,155.90,156.90]},{ x:'03/29/2024',y:[156.90,158.40,156.90,157.90]},{ x:'04/01/2024',y:[158.20,158.75,157.25,157.40]},{ x:'04/02/2024',y:[158.45,159.65,158.40,159.65]},{ x:'04/03/2024',y:[158.65,158.90,157.80,158.55]},{ x:'04/08/2024',y:[158.65,159.85,158.55,159.45]},{ x:'04/09/2024',y:[160.00,163.35,159.90,163.25]},{ x:'04/10/2024',y:[162.75,163.30,162.45,163.00]},{ x:'04/11/2024',y:[162.05,162.50,161.65,162.50]},{ x:'04/12/2024',y:[162.60,162.80,161.95,162.10]},{ x:'04/15/2024',y:[160.25,160.55,159.60,160.00]},{ x:'04/16/2024',y:[158.30,158.30,154.75,155.65]},{ x:'04/17/2024',y:[155.95,157.70,155.90,157.40]},{ x:'04/18/2024',y:[156.35,158.95,155.80,158.95]},{ x:'04/19/2024',y:[154.10,154.15,149.50,150.90]},{ x:'04/22/2024',y:[150.40,151.75,149.70,150.45]},{ x:'04/23/2024',y:[152.15,152.45,151.30,151.90]},{ x:'04/24/2024',y:[154.00,156.50,154.00,156.35]},{ x:'04/25/2024',y:[154.10,154.45,153.25,153.50]},{ x:'04/26/2024',y:[156.00,156.80,155.50,156.00]},{ x:'04/29/2024',y:[157.30,159.10,157.30,158.80]},{ x:'04/30/2024',y:[158.60,159.35,158.25,158.25]},{ x:'05/02/2024',y:[157.35,157.35,156.00,156.15]},{ x:'05/03/2024',y:[158.55,158.65,156.45,156.95]},{ x:'05/06/2024',y:[159.00,160.15,159.00,159.20]},{ x:'05/07/2024',y:[160.25,160.55,159.50,160.10]},{ x:'05/08/2024',y:[160.00,160.80,159.65,160.70]},{ x:'05/09/2024',y:[160.75,161.25,160.40,160.50]},{ x:'05/10/2024',y:[161.25,162.10,160.55,161.65]},{ x:'05/13/2024',y:[163.35,163.90,162.95,163.30]},{ x:'05/14/2024',y:[163.20,164.45,162.70,164.40]},{ x:'05/15/2024',y:[165.60,167.85,165.50,166.65]},{ x:'05/16/2024',y:[168.95,169.75,167.10,167.45]},{ x:'05/17/2024',y:[167.55,167.70,166.70,167.25]},{ x:'05/20/2024',y:[167.25,167.40,165.30,167.20]},{ x:'05/21/2024',y:[166.40,167.15,165.85,167.00]},{ x:'05/22/2024',y:[167.20,170.00,167.20,170.00]},{ x:'05/23/2024',y:[170.30,171.45,170.00,171.30]},{ x:'05/24/2024',y:[169.30,170.80,169.30,170.60]},{ x:'06/11/2024',y:[173.15,174.25,172.90,173.30]},{ x:'06/12/2024',y:[173.30,176.45,173.30,176.40]},{ x:'06/13/2024',y:[178.90,180.50,177.80,178.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0050 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());