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/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]},{ x:'06/14/2024',y:[178.95,180.00,177.80,180.00]},{ x:'06/17/2024',y:[179.20,180.45,178.80,180.00]},{ x:'06/18/2024',y:[182.50,183.05,182.00,183.00]},{ x:'06/19/2024',y:[184.75,188.90,184.75,187.95]},{ x:'06/20/2024',y:[187.95,189.75,187.80,189.75]},{ x:'06/21/2024',y:[187.10,189.20,186.95,188.60]},{ x:'06/24/2024',y:[186.50,186.50,183.55,184.00]},{ x:'06/25/2024',y:[181.95,183.90,180.80,183.90]},{ x:'06/26/2024',y:[184.95,186.10,184.25,185.35]},{ x:'06/27/2024',y:[183.60,185.30,183.40,185.30]},{ x:'06/28/2024',y:[185.30,187.40,184.65,186.45]},{ x:'07/01/2024',y:[186.55,188.05,186.25,186.60]},{ x:'07/02/2024',y:[185.95,186.75,184.50,185.35]},{ x:'07/03/2024',y:[187.60,187.60,186.40,187.60]},{ x:'07/04/2024',y:[190.60,192.65,190.60,192.50]},{ x:'07/05/2024',y:[192.60,192.85,191.55,191.80]},{ x:'07/12/2024',y:[198.20,198.35,196.00,196.35]},{ x:'07/15/2024',y:[197.65,198.10,196.10,196.70]},{ x:'07/16/2024',y:[196.55,199.00,196.00,196.85]},{ x:'07/17/2024',y:[196.40,196.50,193.60,194.10]},{ x:'07/18/2024',y:[188.60,190.90,188.20,190.60]},{ x:'07/19/2024',y:[188.75,189.00,186.20,186.25]},{ x:'07/22/2024',y:[185.40,185.40,180.05,180.70]},{ x:'07/23/2024',y:[183.70,186.30,183.70,186.30]},{ x:'07/26/2024',y:[178.05,179.45,177.10,179.00]},{ x:'07/29/2024',y:[181.80,182.00,179.95,180.60]},{ x:'07/30/2024',y:[179.25,181.30,177.50,180.60]},{ x:'07/31/2024',y:[178.85,181.15,178.60,180.85]},{ x:'08/01/2024',y:[185.00,185.10,182.70,184.00]},{ x:'08/02/2024',y:[178.15,178.90,174.70,174.70]},{ x:'08/05/2024',y:[166.65,166.65,158.40,158.75]},{ x:'08/06/2024',y:[167.30,170.40,160.80,167.50]},{ x:'08/07/2024',y:[169.85,174.75,169.00,174.15]},{ x:'08/08/2024',y:[171.05,172.40,169.00,170.55]},{ x:'08/09/2024',y:[175.00,176.90,174.50,175.85]},{ x:'08/12/2024',y:[177.25,179.80,177.25,178.05]},{ x:'08/13/2024',y:[179.30,179.50,178.00,178.50]},{ x:'08/14/2024',y:[180.35,181.85,179.95,180.75]} ] }], 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());