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:'01/22/2024',y:[133.80,134.35,133.35,133.80]},{ x:'01/23/2024',y:[133.90,134.25,133.50,134.05]},{ x:'01/24/2024',y:[134.15,134.40,133.95,134.00]},{ x:'01/25/2024',y:[135.05,135.70,134.90,135.65]},{ x:'01/26/2024',y:[135.65,135.95,135.30,135.65]},{ x:'01/29/2024',y:[135.65,136.65,135.60,136.50]},{ x:'01/30/2024',y:[136.35,136.65,136.05,136.15]},{ x:'01/31/2024',y:[135.25,135.30,134.35,134.35]},{ x:'02/01/2024',y:[134.35,134.50,133.60,134.35]},{ x:'02/02/2024',y:[135.00,135.20,134.65,135.10]},{ x:'02/05/2024',y:[135.10,136.20,135.00,135.95]},{ x:'02/15/2024',y:[142.20,142.70,141.40,142.35]},{ x:'02/16/2024',y:[142.35,142.35,141.20,141.30]},{ x:'02/19/2024',y:[141.00,141.25,140.60,141.10]},{ x:'02/20/2024',y:[140.55,142.00,140.40,141.65]},{ x:'02/21/2024',y:[141.40,141.50,141.05,141.20]},{ x:'02/22/2024',y:[142.95,143.05,141.85,142.80]},{ x:'02/23/2024',y:[143.45,144.10,143.30,143.75]},{ x:'02/26/2024',y:[143.70,144.00,143.00,143.95]},{ x:'02/27/2024',y:[143.95,144.20,142.65,143.35]},{ x:'02/29/2024',y:[143.00,143.95,142.70,143.30]},{ x:'03/01/2024',y:[143.55,143.95,142.80,142.80]},{ 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]} ] }], 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());