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/23/2024',y:[132.85,133.25,132.35,133.05]},{ x:'01/24/2024',y:[133.00,133.40,132.85,132.95]},{ x:'01/25/2024',y:[133.95,135.00,133.90,135.00]},{ x:'01/26/2024',y:[134.80,135.10,134.20,134.80]},{ x:'01/29/2024',y:[134.80,135.40,134.60,135.40]},{ x:'01/30/2024',y:[135.40,136.00,135.10,135.45]},{ x:'01/31/2024',y:[134.45,134.45,133.20,133.20]},{ x:'02/01/2024',y:[133.20,133.25,132.15,133.25]},{ x:'02/02/2024',y:[133.60,134.70,133.60,134.70]},{ x:'02/05/2024',y:[134.90,136.00,134.55,136.00]},{ x:'02/15/2024',y:[143.70,145.00,142.50,143.45]},{ x:'02/16/2024',y:[143.55,143.55,141.90,142.00]},{ x:'02/19/2024',y:[141.80,141.80,140.45,141.30]},{ x:'02/20/2024',y:[141.10,142.60,141.00,142.60]},{ x:'02/21/2024',y:[141.25,141.65,140.90,141.30]},{ x:'02/22/2024',y:[143.25,143.30,142.20,143.30]},{ x:'02/23/2024',y:[144.35,145.00,144.10,144.75]},{ x:'02/26/2024',y:[144.90,145.15,144.00,145.05]},{ x:'02/27/2024',y:[145.30,145.30,143.20,144.30]},{ x:'02/29/2024',y:[143.65,144.70,143.30,144.05]},{ x:'03/01/2024',y:[144.65,144.80,143.95,144.00]},{ x:'03/04/2024',y:[146.95,149.25,146.95,149.05]},{ x:'03/05/2024',y:[150.00,150.95,149.45,150.70]},{ x:'03/06/2024',y:[149.60,151.50,148.30,151.50]},{ x:'03/07/2024',y:[153.55,155.80,153.05,155.10]},{ x:'03/08/2024',y:[159.55,159.95,155.35,156.70]},{ x:'03/11/2024',y:[155.95,156.60,154.55,155.25]},{ x:'03/12/2024',y:[154.65,157.00,154.00,157.00]},{ x:'03/13/2024',y:[159.15,159.15,156.75,157.40]},{ x:'03/14/2024',y:[157.00,157.45,155.15,156.40]},{ x:'03/15/2024',y:[155.45,156.40,155.15,155.25]},{ x:'03/18/2024',y:[155.20,156.95,155.00,156.95]},{ x:'03/19/2024',y:[156.10,156.60,155.35,156.40]},{ x:'03/20/2024',y:[156.60,157.65,155.00,155.85]},{ x:'03/21/2024',y:[157.85,160.00,157.85,160.00]},{ x:'03/22/2024',y:[160.60,160.60,158.40,160.15]},{ x:'03/25/2024',y:[159.85,160.55,159.15,159.80]},{ x:'03/26/2024',y:[160.20,161.25,157.65,159.30]},{ x:'03/27/2024',y:[158.95,159.45,158.30,159.10]},{ x:'03/28/2024',y:[158.80,159.05,157.25,158.75]},{ x:'03/29/2024',y:[158.45,159.65,158.40,159.30]},{ x:'04/01/2024',y:[160.00,160.25,158.70,158.80]},{ x:'04/02/2024',y:[159.25,162.00,159.25,162.00]},{ x:'04/03/2024',y:[161.20,161.20,159.75,160.75]},{ x:'04/08/2024',y:[161.00,161.95,160.70,161.10]},{ x:'04/09/2024',y:[161.60,165.75,161.60,165.50]},{ x:'04/10/2024',y:[166.00,166.00,164.55,165.35]},{ x:'04/11/2024',y:[165.00,165.20,164.10,165.20]},{ x:'04/12/2024',y:[165.35,166.10,164.85,165.10]},{ x:'04/15/2024',y:[164.40,164.40,161.95,162.50]},{ x:'04/16/2024',y:[160.60,160.70,157.20,158.55]},{ x:'04/17/2024',y:[159.90,160.95,159.05,160.75]},{ x:'04/18/2024',y:[154.40,156.85,152.35,156.85]},{ x:'04/19/2024',y:[152.00,152.30,144.95,148.05]},{ x:'04/22/2024',y:[147.35,147.35,144.25,144.25]},{ x:'04/23/2024',y:[146.30,146.75,145.10,145.90]},{ x:'04/24/2024',y:[148.50,151.90,148.50,151.60]},{ x:'04/25/2024',y:[149.80,149.90,148.30,148.55]},{ x:'04/26/2024',y:[151.60,152.30,151.05,151.25]},{ x:'04/29/2024',y:[153.00,153.75,152.70,153.40]} ] }], 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());