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:'08/18/2023',y:[4.26,4.26,4.24,4.24]},{ x:'08/21/2023',y:[4.24,4.24,4.23,4.23]},{ x:'08/22/2023',y:[4.60,4.60,4.28,4.28]},{ x:'08/23/2023',y:[4.25,4.30,4.25,4.28]},{ x:'08/24/2023',y:[4.36,4.43,4.36,4.40]},{ x:'08/25/2023',y:[4.37,4.40,4.35,4.36]},{ x:'08/28/2023',y:[4.38,4.42,4.38,4.42]},{ x:'08/29/2023',y:[4.39,4.46,4.39,4.46]},{ x:'08/30/2023',y:[4.50,4.57,4.50,4.54]},{ x:'08/31/2023',y:[4.55,4.56,4.54,4.54]},{ x:'09/01/2023',y:[4.54,4.57,4.53,4.57]},{ x:'09/04/2023',y:[4.57,4.62,4.56,4.61]},{ x:'09/05/2023',y:[4.63,4.70,4.63,4.70]},{ x:'09/06/2023',y:[4.72,4.74,4.71,4.72]},{ x:'09/07/2023',y:[4.70,4.70,4.68,4.69]},{ x:'09/08/2023',y:[4.62,4.66,4.61,4.64]},{ x:'09/11/2023',y:[4.65,4.65,4.60,4.60]},{ x:'09/12/2023',y:[4.62,4.72,4.62,4.72]},{ x:'09/13/2023',y:[4.77,4.82,4.77,4.82]},{ x:'09/14/2023',y:[4.85,4.93,4.85,4.92]},{ x:'09/15/2023',y:[4.92,5.01,4.92,4.99]},{ x:'09/18/2023',y:[4.99,5.04,4.98,4.99]},{ x:'09/19/2023',y:[5.00,5.01,4.95,4.96]},{ x:'09/20/2023',y:[4.90,4.90,4.81,4.82]},{ x:'09/21/2023',y:[4.75,4.75,4.70,4.71]},{ x:'09/22/2023',y:[4.71,4.83,4.71,4.83]},{ x:'09/25/2023',y:[4.83,4.92,4.83,4.88]},{ x:'09/26/2023',y:[4.85,4.85,4.80,4.80]},{ x:'09/27/2023',y:[4.78,4.79,4.75,4.77]},{ x:'09/28/2023',y:[4.83,4.84,4.78,4.79]},{ x:'10/02/2023',y:[4.83,4.87,4.83,4.86]},{ x:'10/03/2023',y:[4.92,4.98,4.90,4.90]},{ x:'10/04/2023',y:[4.84,4.90,4.84,4.89]},{ x:'10/05/2023',y:[4.94,4.99,4.94,4.97]},{ x:'10/06/2023',y:[5.00,5.00,4.93,4.95]},{ x:'10/11/2023',y:[4.99,5.09,4.99,5.06]},{ x:'10/12/2023',y:[5.09,5.11,5.05,5.10]},{ x:'10/13/2023',y:[5.10,5.17,5.10,5.16]},{ x:'10/18/2023',y:[5.05,5.10,5.00,5.03]},{ x:'10/19/2023',y:[5.01,5.14,5.01,5.11]},{ x:'10/20/2023',y:[5.12,5.12,5.07,5.11]},{ x:'10/23/2023',y:[5.01,5.01,4.94,4.95]},{ x:'10/24/2023',y:[4.98,4.98,4.90,4.95]},{ x:'10/25/2023',y:[5.05,5.10,5.04,5.04]},{ x:'10/26/2023',y:[4.90,4.92,4.85,4.85]},{ x:'10/27/2023',y:[4.88,4.89,4.86,4.87]},{ x:'10/30/2023',y:[4.96,5.07,4.96,5.07]},{ x:'10/31/2023',y:[5.07,5.09,4.95,4.95]},{ x:'11/01/2023',y:[5.03,5.04,4.98,5.04]},{ x:'11/02/2023',y:[5.10,5.16,5.10,5.14]},{ x:'11/03/2023',y:[5.18,5.18,5.14,5.16]},{ x:'11/06/2023',y:[5.18,5.28,5.18,5.27]},{ x:'11/07/2023',y:[5.27,5.32,5.27,5.29]},{ x:'11/08/2023',y:[5.28,5.34,5.27,5.34]},{ x:'11/09/2023',y:[5.34,5.40,5.31,5.39]},{ x:'11/10/2023',y:[5.43,5.43,5.31,5.32]},{ x:'11/13/2023',y:[5.43,5.50,5.42,5.44]},{ x:'11/14/2023',y:[5.52,5.53,5.48,5.53]},{ x:'11/15/2023',y:[5.58,5.59,5.46,5.48]},{ x:'11/16/2023',y:[5.47,5.47,5.39,5.39]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020031 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());