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:[79.90,80.90,79.90,80.60]},{ x:'01/23/2024',y:[80.80,81.00,80.00,80.30]},{ x:'01/24/2024',y:[80.90,80.90,80.00,80.10]},{ x:'01/25/2024',y:[80.40,80.70,79.40,79.50]},{ x:'01/26/2024',y:[79.10,80.50,79.10,79.30]},{ x:'01/29/2024',y:[79.20,80.90,79.00,80.80]},{ x:'01/30/2024',y:[80.90,81.50,79.80,79.80]},{ x:'01/31/2024',y:[79.80,80.70,79.60,79.80]},{ x:'02/01/2024',y:[80.10,80.10,79.00,79.10]},{ x:'02/02/2024',y:[79.50,79.90,78.30,78.90]},{ x:'02/05/2024',y:[79.30,80.50,78.50,79.60]},{ x:'02/15/2024',y:[86.00,87.50,86.00,87.50]},{ x:'02/16/2024',y:[88.40,94.30,88.10,92.80]},{ x:'02/19/2024',y:[93.00,93.50,91.30,92.50]},{ x:'02/20/2024',y:[93.20,93.20,90.50,91.20]},{ x:'02/21/2024',y:[91.00,91.50,89.10,89.60]},{ x:'02/22/2024',y:[91.00,92.60,89.40,89.70]},{ x:'02/23/2024',y:[90.40,92.50,90.10,90.60]},{ x:'02/26/2024',y:[91.60,91.60,89.80,89.90]},{ x:'02/27/2024',y:[91.60,93.40,90.20,90.70]},{ x:'02/29/2024',y:[90.80,96.70,90.10,95.30]},{ x:'03/01/2024',y:[96.00,96.40,93.40,93.60]},{ x:'03/04/2024',y:[94.80,97.90,94.10,96.00]},{ x:'03/05/2024',y:[96.80,105.50,96.40,105.50]},{ x:'03/06/2024',y:[104.50,116.00,102.00,116.00]},{ x:'03/07/2024',y:[117.50,119.00,111.00,113.00]},{ x:'03/08/2024',y:[118.00,120.00,102.00,102.50]},{ x:'03/11/2024',y:[101.50,110.50,101.50,105.50]},{ x:'03/12/2024',y:[105.50,110.50,103.50,108.00]},{ x:'03/13/2024',y:[111.00,112.00,104.50,108.50]},{ x:'03/14/2024',y:[108.50,109.50,103.00,105.50]},{ x:'03/15/2024',y:[105.00,107.50,103.00,103.00]},{ x:'03/18/2024',y:[103.00,106.00,102.50,103.50]},{ x:'03/19/2024',y:[104.00,105.50,103.00,103.00]},{ x:'03/20/2024',y:[104.00,105.50,101.00,102.50]},{ x:'03/21/2024',y:[102.50,103.00,97.10,100.50]},{ x:'03/22/2024',y:[104.00,109.00,102.00,103.50]},{ x:'03/25/2024',y:[106.00,113.50,105.00,113.50]},{ x:'03/26/2024',y:[115.00,117.50,109.50,111.50]},{ x:'03/27/2024',y:[111.00,118.00,110.50,115.00]},{ x:'03/28/2024',y:[126.50,126.50,126.50,126.50]},{ x:'03/29/2024',y:[139.00,139.00,139.00,139.00]},{ x:'04/01/2024',y:[152.50,152.50,146.00,152.50]},{ x:'04/02/2024',y:[151.50,162.00,147.00,155.50]},{ x:'04/03/2024',y:[152.50,171.00,152.50,171.00]},{ x:'04/08/2024',y:[171.00,172.00,160.50,163.00]},{ x:'04/09/2024',y:[165.00,169.50,159.00,167.50]},{ x:'04/10/2024',y:[165.00,178.00,163.50,174.50]},{ x:'04/11/2024',y:[171.00,174.50,166.00,169.00]},{ x:'04/12/2024',y:[172.50,179.00,170.00,175.00]},{ x:'04/15/2024',y:[170.00,173.00,163.50,167.00]},{ x:'04/16/2024',y:[160.00,160.00,150.50,150.50]},{ x:'04/17/2024',y:[150.50,158.00,150.00,151.00]},{ x:'04/18/2024',y:[149.50,157.00,149.50,151.00]},{ x:'04/19/2024',y:[148.00,153.50,136.00,136.00]},{ x:'04/22/2024',y:[137.50,141.00,131.50,134.50]},{ x:'04/23/2024',y:[137.50,141.50,132.00,133.00]},{ x:'04/24/2024',y:[137.50,146.00,137.00,146.00]},{ x:'04/25/2024',y:[146.00,151.00,135.50,142.00]},{ x:'04/26/2024',y:[147.00,151.00,141.00,142.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6197 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());