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:'11/24/2023',y:[131.30,131.65,131.05,131.20]},{ x:'11/27/2023',y:[131.20,131.85,130.10,130.35]},{ x:'11/28/2023',y:[130.40,131.80,130.30,131.25]},{ x:'11/29/2023',y:[131.30,132.20,131.05,131.15]},{ x:'11/30/2023',y:[131.30,131.50,130.65,131.35]},{ x:'12/01/2023',y:[131.00,131.80,130.80,131.80]},{ x:'12/04/2023',y:[131.80,132.00,130.90,131.30]},{ x:'12/05/2023',y:[130.60,130.60,129.90,130.35]},{ x:'12/06/2023',y:[130.40,131.40,130.40,130.80]},{ x:'12/07/2023',y:[130.60,130.65,130.00,130.00]},{ x:'12/08/2023',y:[131.15,131.60,130.90,131.05]},{ x:'12/11/2023',y:[131.05,131.35,130.65,131.20]},{ x:'12/12/2023',y:[131.90,132.05,131.35,131.50]},{ x:'12/18/2023',y:[133.65,133.90,132.60,133.90]},{ x:'12/19/2023',y:[133.80,133.80,132.75,133.40]},{ x:'01/10/2024',y:[132.40,132.65,132.00,132.30]},{ x:'01/11/2024',y:[132.45,133.25,132.35,132.85]},{ x:'01/12/2024',y:[132.20,133.05,131.95,132.65]},{ x:'01/15/2024',y:[133.30,133.55,132.65,133.00]},{ x:'01/16/2024',y:[132.05,132.30,131.10,131.65]},{ x:'01/17/2024',y:[130.00,130.00,127.30,127.45]},{ x:'01/18/2024',y:[127.90,128.55,127.90,128.30]},{ x:'01/19/2024',y:[131.70,133.10,131.10,132.90]},{ 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]} ] }], 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());