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:'09/12/2023',y:[56.60,56.60,53.10,53.30]},{ x:'09/13/2023',y:[54.30,55.40,53.30,54.40]},{ x:'09/14/2023',y:[54.40,58.50,54.40,58.50]},{ x:'09/15/2023',y:[59.00,59.00,55.20,55.60]},{ x:'09/18/2023',y:[54.00,57.20,54.00,55.00]},{ x:'09/19/2023',y:[55.30,56.00,53.80,54.50]},{ x:'09/20/2023',y:[56.00,57.20,54.40,55.60]},{ x:'09/21/2023',y:[54.70,57.40,54.70,55.60]},{ x:'09/22/2023',y:[54.80,56.30,54.80,55.40]},{ x:'09/25/2023',y:[55.40,58.70,55.40,58.30]},{ x:'09/26/2023',y:[58.10,63.80,56.60,63.40]},{ x:'09/27/2023',y:[66.00,69.70,64.30,69.70]},{ x:'09/28/2023',y:[75.30,76.60,70.70,76.60]},{ x:'10/02/2023',y:[75.90,82.70,75.00,76.00]},{ x:'10/03/2023',y:[74.00,80.50,74.00,78.30]},{ 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]} ] }], 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());