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/04/2023',y:[77.70,78.30,76.20,76.40]},{ x:'10/05/2023',y:[77.10,77.10,72.90,73.10]},{ x:'10/06/2023',y:[73.50,74.90,73.00,73.00]},{ x:'10/11/2023',y:[75.20,77.00,74.30,74.60]},{ x:'10/12/2023',y:[77.00,78.80,75.90,77.90]},{ x:'10/13/2023',y:[79.90,79.90,74.90,75.50]},{ x:'10/18/2023',y:[67.80,68.60,65.00,65.00]},{ x:'10/19/2023',y:[63.70,67.30,63.70,67.00]},{ x:'10/20/2023',y:[65.50,67.70,65.00,65.00]},{ x:'10/23/2023',y:[64.70,65.10,62.00,62.10]},{ x:'10/24/2023',y:[62.50,68.30,62.30,68.30]},{ x:'10/25/2023',y:[70.00,73.80,68.90,70.80]},{ x:'10/26/2023',y:[70.00,73.50,68.30,68.60]},{ x:'10/27/2023',y:[70.00,70.70,65.10,65.40]},{ x:'10/31/2023',y:[65.80,66.20,61.00,61.00]},{ x:'11/01/2023',y:[61.50,63.50,61.20,61.20]},{ x:'11/02/2023',y:[62.90,64.50,62.60,62.80]},{ x:'11/03/2023',y:[63.30,69.00,61.60,69.00]},{ 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]} ] }], 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());