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:'10/20/2023',y:[60.40,61.30,60.40,61.30]},{ x:'10/23/2023',y:[62.00,63.50,61.20,62.20]},{ x:'10/24/2023',y:[62.20,62.50,61.90,62.50]},{ x:'10/25/2023',y:[63.70,65.70,63.70,65.60]},{ x:'10/26/2023',y:[65.60,65.60,65.60,65.60]},{ x:'10/27/2023',y:[65.50,66.50,64.10,64.10]},{ x:'10/31/2023',y:[64.30,64.70,63.50,63.50]},{ x:'11/01/2023',y:[63.50,63.50,63.50,63.50]},{ x:'11/02/2023',y:[64.60,64.60,64.50,64.50]},{ x:'11/03/2023',y:[64.00,66.20,64.00,66.10]},{ x:'11/06/2023',y:[65.40,66.50,65.40,66.10]},{ x:'11/07/2023',y:[66.10,72.70,66.00,72.70]},{ x:'11/08/2023',y:[72.70,79.90,72.00,79.90]},{ x:'11/09/2023',y:[80.70,80.70,75.20,77.40]},{ x:'11/10/2023',y:[77.40,80.00,73.60,73.60]},{ x:'11/13/2023',y:[73.10,74.80,73.10,74.00]},{ x:'11/14/2023',y:[74.50,75.10,73.60,74.00]},{ x:'11/15/2023',y:[76.00,77.60,74.40,74.40]},{ x:'11/16/2023',y:[76.20,76.40,74.80,75.00]},{ x:'11/17/2023',y:[76.40,77.20,75.00,75.70]},{ x:'11/20/2023',y:[76.70,76.70,74.70,74.70]},{ x:'11/21/2023',y:[74.70,75.60,74.70,75.60]},{ x:'11/22/2023',y:[76.30,76.30,75.20,75.20]},{ x:'11/23/2023',y:[76.00,77.60,75.40,75.70]},{ x:'11/24/2023',y:[76.30,76.30,75.00,75.00]},{ x:'11/27/2023',y:[75.00,76.60,74.00,75.80]},{ x:'11/28/2023',y:[75.80,80.20,75.80,78.00]},{ x:'11/29/2023',y:[78.00,79.10,76.50,77.80]},{ x:'11/30/2023',y:[78.00,85.50,78.00,85.50]},{ x:'12/01/2023',y:[88.00,94.00,86.60,94.00]},{ x:'12/04/2023',y:[95.00,103.00,90.90,90.90]},{ x:'12/05/2023',y:[91.50,93.70,89.00,89.10]},{ x:'12/06/2023',y:[89.10,90.00,85.20,86.60]},{ x:'12/07/2023',y:[88.30,94.30,88.30,88.90]},{ x:'12/08/2023',y:[90.30,90.80,88.10,89.00]},{ x:'12/11/2023',y:[92.90,97.90,92.00,97.90]},{ x:'12/12/2023',y:[101.00,107.50,100.00,107.50]},{ x:'12/18/2023',y:[115.50,119.50,110.50,119.50]},{ x:'12/19/2023',y:[121.00,123.50,114.00,115.50]},{ x:'01/10/2024',y:[175.00,177.00,156.00,156.00]},{ x:'01/11/2024',y:[158.00,160.00,153.00,155.50]},{ x:'01/12/2024',y:[158.00,158.00,145.00,146.50]},{ x:'01/15/2024',y:[147.50,152.00,147.50,150.00]},{ x:'01/16/2024',y:[150.50,151.50,148.00,149.50]},{ x:'01/17/2024',y:[152.00,152.00,147.00,148.50]},{ x:'01/18/2024',y:[148.50,150.50,143.00,144.00]},{ x:'01/19/2024',y:[146.00,146.00,142.50,144.50]},{ x:'01/22/2024',y:[142.00,154.00,142.00,152.00]},{ x:'01/23/2024',y:[150.50,152.50,149.00,149.50]},{ x:'01/24/2024',y:[150.00,164.00,150.00,164.00]},{ x:'01/25/2024',y:[172.00,178.00,153.00,160.00]},{ x:'01/26/2024',y:[159.00,161.50,149.00,149.00]},{ x:'01/29/2024',y:[147.00,148.00,137.50,138.00]},{ x:'01/30/2024',y:[140.00,142.50,135.00,137.00]},{ x:'01/31/2024',y:[136.00,140.00,136.00,138.00]},{ x:'02/01/2024',y:[137.50,139.00,130.50,131.00]},{ x:'02/02/2024',y:[131.00,132.50,126.50,131.50]},{ x:'02/05/2024',y:[131.50,132.00,123.50,125.00]},{ x:'02/15/2024',y:[128.50,128.50,119.00,119.50]},{ x:'02/16/2024',y:[120.50,124.00,119.50,121.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3086 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());