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:[92.00,97.20,88.20,93.80]},{ x:'01/23/2024',y:[93.60,98.20,93.40,97.50]},{ x:'01/24/2024',y:[98.10,99.00,95.50,96.50]},{ x:'01/25/2024',y:[96.20,97.00,93.50,93.50]},{ x:'01/26/2024',y:[92.20,93.90,90.70,91.10]},{ x:'01/29/2024',y:[90.80,92.80,88.80,92.30]},{ x:'01/30/2024',y:[93.00,95.20,91.50,93.80]},{ x:'01/31/2024',y:[93.20,103.00,92.60,103.00]},{ x:'02/01/2024',y:[107.00,113.00,105.50,113.00]},{ x:'02/02/2024',y:[119.50,124.00,119.00,124.00]},{ x:'02/05/2024',y:[131.50,135.50,112.00,112.00]},{ x:'02/15/2024',y:[110.00,114.50,106.50,108.00]},{ x:'02/16/2024',y:[109.50,118.50,109.00,118.50]},{ x:'02/19/2024',y:[120.00,120.50,111.50,111.50]},{ x:'02/20/2024',y:[111.50,117.50,103.00,112.00]},{ x:'02/21/2024',y:[112.00,113.00,106.50,112.00]},{ x:'02/22/2024',y:[113.50,114.00,108.00,109.00]},{ x:'02/23/2024',y:[112.00,113.00,107.50,107.50]},{ x:'02/26/2024',y:[108.50,117.50,107.50,115.50]},{ x:'02/27/2024',y:[116.00,126.00,113.50,119.50]},{ x:'02/29/2024',y:[122.00,126.00,119.50,121.50]},{ x:'03/01/2024',y:[121.50,122.50,115.50,119.00]},{ x:'03/04/2024',y:[119.50,121.00,114.00,114.50]},{ x:'03/05/2024',y:[116.50,117.50,107.50,113.00]},{ x:'03/06/2024',y:[112.00,114.00,107.50,109.00]},{ x:'03/07/2024',y:[109.00,110.00,99.70,100.00]},{ x:'03/08/2024',y:[100.50,101.00,93.00,94.10]},{ x:'03/11/2024',y:[94.50,97.60,94.40,94.90]},{ x:'03/12/2024',y:[96.50,97.40,94.80,95.30]},{ x:'03/13/2024',y:[96.60,96.60,87.60,90.00]},{ x:'03/14/2024',y:[90.50,92.20,87.00,87.00]},{ x:'03/15/2024',y:[87.60,88.50,84.00,84.70]},{ x:'03/18/2024',y:[85.40,89.00,84.00,85.90]},{ x:'03/19/2024',y:[85.60,88.00,84.10,84.60]},{ x:'03/20/2024',y:[84.60,88.00,84.00,84.90]},{ x:'03/21/2024',y:[85.80,86.80,84.60,86.00]},{ x:'03/22/2024',y:[85.80,86.60,84.70,85.20]},{ x:'03/25/2024',y:[85.00,86.70,85.00,85.50]},{ x:'03/26/2024',y:[86.40,86.40,82.00,82.90]},{ x:'03/27/2024',y:[83.00,83.40,80.80,81.20]},{ x:'03/28/2024',y:[81.80,84.90,79.90,84.00]},{ x:'03/29/2024',y:[84.70,90.00,84.30,84.60]},{ x:'04/01/2024',y:[86.50,90.70,86.00,86.30]},{ x:'04/02/2024',y:[86.90,94.20,85.70,93.30]},{ x:'04/03/2024',y:[92.70,101.00,91.80,98.10]},{ x:'04/08/2024',y:[100.50,103.50,94.30,95.50]},{ x:'04/09/2024',y:[95.40,96.50,91.30,92.00]},{ x:'04/10/2024',y:[92.60,93.10,90.00,90.00]},{ x:'04/11/2024',y:[90.00,92.60,88.30,89.30]},{ x:'04/12/2024',y:[89.20,89.20,85.70,86.10]},{ x:'04/15/2024',y:[85.10,85.10,83.00,83.00]},{ x:'04/16/2024',y:[83.70,88.50,83.00,86.10]},{ x:'04/17/2024',y:[86.80,93.80,86.80,91.50]},{ x:'04/18/2024',y:[90.00,95.70,88.70,88.70]},{ x:'04/19/2024',y:[88.70,92.40,84.90,90.90]},{ x:'04/22/2024',y:[90.90,93.40,84.00,84.00]},{ x:'04/23/2024',y:[85.80,88.60,84.10,85.90]},{ x:'04/24/2024',y:[87.00,92.60,87.00,92.50]},{ x:'04/25/2024',y:[92.00,92.00,88.60,88.60]},{ x:'04/26/2024',y:[89.10,92.00,87.00,87.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6684 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());