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:[74.50,76.00,74.50,75.10]},{ x:'01/23/2024',y:[75.10,76.30,74.90,76.20]},{ x:'01/24/2024',y:[76.30,78.00,76.30,77.60]},{ x:'01/25/2024',y:[77.60,78.00,76.20,76.20]},{ x:'01/26/2024',y:[76.50,76.70,74.90,75.10]},{ x:'01/29/2024',y:[75.10,75.40,74.70,75.10]},{ x:'01/30/2024',y:[75.10,75.80,74.00,75.00]},{ x:'01/31/2024',y:[75.00,75.50,74.50,75.00]},{ x:'02/01/2024',y:[75.10,75.70,74.70,75.30]},{ x:'02/02/2024',y:[75.60,76.00,75.30,75.40]},{ x:'02/05/2024',y:[75.60,76.00,74.50,75.00]},{ x:'02/15/2024',y:[75.40,78.00,74.70,76.00]},{ x:'02/16/2024',y:[78.50,79.50,77.20,79.00]},{ x:'02/19/2024',y:[80.20,84.90,79.60,83.70]},{ x:'02/20/2024',y:[83.40,83.90,81.90,82.60]},{ x:'02/21/2024',y:[82.90,85.30,82.90,83.30]},{ x:'02/22/2024',y:[83.30,85.30,82.50,84.60]},{ x:'02/23/2024',y:[84.60,87.20,84.30,85.90]},{ x:'02/26/2024',y:[86.60,87.90,85.70,87.30]},{ x:'02/27/2024',y:[87.90,88.20,85.90,87.60]},{ x:'02/29/2024',y:[88.00,89.40,87.20,89.10]},{ x:'03/01/2024',y:[89.20,89.70,88.70,89.40]},{ x:'03/04/2024',y:[89.70,89.70,86.40,88.50]},{ x:'03/05/2024',y:[88.50,91.50,88.50,89.10]},{ x:'03/06/2024',y:[90.50,90.80,89.20,90.20]},{ x:'03/07/2024',y:[91.40,91.70,88.40,89.40]},{ x:'03/08/2024',y:[90.90,91.10,86.80,89.90]},{ x:'03/11/2024',y:[89.90,91.70,89.90,90.10]},{ x:'03/12/2024',y:[91.00,91.00,88.70,89.50]},{ x:'03/13/2024',y:[90.30,90.80,88.40,88.70]},{ x:'03/14/2024',y:[88.80,89.70,87.90,88.00]},{ x:'03/15/2024',y:[88.00,89.20,87.60,88.10]},{ x:'03/18/2024',y:[88.90,89.80,88.20,89.20]},{ x:'03/19/2024',y:[89.50,90.90,89.40,90.40]},{ x:'03/20/2024',y:[91.20,91.30,89.00,90.30]},{ x:'03/21/2024',y:[90.70,91.10,89.00,89.80]},{ x:'03/22/2024',y:[90.20,91.00,89.90,90.50]},{ x:'03/25/2024',y:[91.10,95.30,91.10,93.60]},{ x:'03/26/2024',y:[93.10,94.80,93.10,93.30]},{ x:'03/27/2024',y:[94.70,96.20,93.50,95.00]},{ x:'03/28/2024',y:[96.20,97.60,94.20,95.20]},{ x:'03/29/2024',y:[95.20,97.70,95.10,97.40]},{ x:'04/01/2024',y:[99.90,107.00,98.00,107.00]},{ x:'04/02/2024',y:[109.00,115.00,106.00,112.50]},{ x:'04/03/2024',y:[113.00,115.50,110.50,114.50]},{ x:'04/08/2024',y:[118.00,118.00,112.50,116.00]},{ x:'04/09/2024',y:[116.50,118.00,108.00,108.50]},{ x:'04/10/2024',y:[119.00,119.00,105.00,105.00]},{ x:'04/11/2024',y:[105.00,110.50,104.50,109.00]},{ x:'04/12/2024',y:[108.50,111.00,107.50,108.50]},{ x:'04/15/2024',y:[109.00,114.00,108.00,109.50]},{ x:'04/16/2024',y:[107.50,109.00,99.20,104.00]},{ x:'04/17/2024',y:[106.00,109.00,105.50,107.00]},{ x:'04/18/2024',y:[107.00,108.00,105.00,107.50]},{ x:'04/19/2024',y:[108.00,108.00,101.00,104.00]},{ x:'04/22/2024',y:[104.00,106.00,101.50,103.00]},{ x:'04/23/2024',y:[106.00,110.00,106.00,107.00]},{ x:'04/24/2024',y:[107.50,109.50,107.00,108.00]},{ x:'04/25/2024',y:[109.50,112.50,109.00,109.50]},{ x:'04/26/2024',y:[111.00,111.50,108.00,108.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1786 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());