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:'11/06/2023',y:[72.90,73.40,69.00,71.30]},{ x:'11/07/2023',y:[71.30,71.40,69.30,69.40]},{ x:'11/08/2023',y:[69.30,70.70,68.50,68.50]},{ x:'11/09/2023',y:[68.70,69.20,66.80,67.00]},{ x:'11/10/2023',y:[67.00,68.80,65.90,65.90]},{ x:'11/13/2023',y:[65.10,71.00,63.80,70.40]},{ x:'11/14/2023',y:[70.90,75.60,69.70,71.90]},{ x:'11/15/2023',y:[71.90,74.00,71.90,72.40]},{ x:'11/16/2023',y:[72.40,75.70,71.10,72.50]},{ x:'11/17/2023',y:[73.00,73.80,71.00,71.00]},{ x:'11/20/2023',y:[71.80,72.30,70.00,70.10]},{ x:'11/21/2023',y:[71.00,75.00,70.30,74.00]},{ x:'11/22/2023',y:[73.20,73.90,72.40,73.00]},{ x:'11/23/2023',y:[73.00,79.00,72.10,72.10]},{ x:'11/24/2023',y:[72.10,78.20,72.10,72.70]},{ x:'11/27/2023',y:[74.30,79.90,72.90,79.90]},{ x:'11/28/2023',y:[87.70,87.80,84.70,87.80]},{ x:'11/29/2023',y:[88.60,96.50,88.20,96.50]},{ x:'11/30/2023',y:[102.50,106.00,101.50,106.00]},{ x:'12/01/2023',y:[110.00,110.50,98.70,99.20]},{ x:'12/04/2023',y:[99.20,99.70,94.00,94.00]},{ x:'12/05/2023',y:[94.50,101.00,89.60,90.00]},{ x:'12/06/2023',y:[90.20,99.00,89.20,99.00]},{ x:'12/07/2023',y:[100.00,104.00,96.00,97.20]},{ x:'12/08/2023',y:[99.80,106.50,99.70,106.50]},{ x:'12/11/2023',y:[110.00,117.00,110.00,117.00]},{ x:'12/12/2023',y:[126.00,127.00,109.00,116.00]},{ x:'12/18/2023',y:[117.00,130.00,117.00,124.50]},{ x:'12/19/2023',y:[125.00,126.00,119.50,125.50]},{ x:'01/10/2024',y:[121.00,123.50,118.00,119.00]},{ x:'01/11/2024',y:[120.00,127.00,118.00,119.00]},{ x:'01/12/2024',y:[120.00,122.50,116.00,117.50]},{ x:'01/15/2024',y:[118.50,128.00,116.00,122.00]},{ x:'01/16/2024',y:[122.50,123.50,117.00,120.50]},{ x:'01/17/2024',y:[120.50,124.00,117.50,118.00]},{ x:'01/18/2024',y:[118.00,120.00,115.00,115.00]},{ x:'01/19/2024',y:[116.00,121.50,114.00,121.50]},{ x:'01/22/2024',y:[127.50,133.50,126.50,133.50]},{ x:'01/23/2024',y:[142.00,146.50,140.50,146.50]},{ x:'01/24/2024',y:[149.00,149.50,132.00,132.00]},{ x:'01/25/2024',y:[133.00,133.50,125.00,127.00]},{ x:'01/26/2024',y:[127.50,135.00,125.00,126.00]},{ x:'01/29/2024',y:[126.00,128.50,123.00,127.00]},{ x:'01/30/2024',y:[126.00,137.00,124.50,135.50]},{ x:'01/31/2024',y:[138.00,146.00,135.50,135.50]},{ x:'02/01/2024',y:[134.00,141.00,133.00,138.00]},{ x:'02/02/2024',y:[140.00,142.50,135.00,135.50]},{ x:'02/05/2024',y:[133.50,133.50,129.00,130.00]},{ x:'02/15/2024',y:[131.00,141.50,128.00,141.00]},{ x:'02/16/2024',y:[142.00,147.00,138.50,143.50]},{ x:'02/19/2024',y:[145.00,146.50,137.00,137.00]},{ x:'02/20/2024',y:[136.00,140.00,135.00,136.50]},{ x:'02/21/2024',y:[139.00,143.00,136.50,137.00]},{ x:'02/22/2024',y:[140.00,144.50,136.50,139.50]},{ x:'02/23/2024',y:[142.50,153.00,139.00,153.00]},{ x:'02/26/2024',y:[168.00,168.00,151.00,154.50]},{ x:'02/27/2024',y:[154.50,156.00,143.50,144.50]},{ x:'02/29/2024',y:[144.00,158.50,144.00,158.50]},{ x:'03/01/2024',y:[159.00,162.50,154.50,155.50]},{ x:'03/04/2024',y:[155.50,167.00,154.00,164.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5432 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());