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/15/2023',y:[32.95,33.07,32.90,32.95]},{ x:'09/18/2023',y:[32.77,32.80,32.68,32.75]},{ x:'09/19/2023',y:[32.95,32.99,32.78,32.86]},{ x:'09/20/2023',y:[32.86,32.90,32.66,32.67]},{ x:'09/21/2023',y:[32.53,32.54,32.33,32.33]},{ x:'09/22/2023',y:[32.06,32.30,32.02,32.28]},{ x:'09/25/2023',y:[32.28,32.40,32.28,32.36]},{ x:'09/26/2023',y:[32.20,32.27,32.13,32.19]},{ x:'09/27/2023',y:[31.89,32.21,31.89,32.21]},{ x:'09/28/2023',y:[32.20,32.27,31.84,31.98]},{ x:'10/02/2023',y:[32.09,32.18,31.72,31.80]},{ x:'10/03/2023',y:[31.25,31.31,31.02,31.12]},{ x:'10/04/2023',y:[30.59,30.63,30.33,30.47]},{ x:'10/05/2023',y:[30.67,30.99,30.63,30.92]},{ x:'10/06/2023',y:[31.07,31.17,31.00,31.04]},{ x:'10/11/2023',y:[31.46,31.65,31.45,31.60]},{ x:'10/12/2023',y:[31.78,31.99,31.78,31.99]},{ x:'10/13/2023',y:[31.65,31.72,31.46,31.50]},{ x:'10/18/2023',y:[31.26,31.40,31.20,31.35]},{ x:'10/19/2023',y:[31.14,31.14,30.90,30.97]},{ x:'10/20/2023',y:[30.85,31.02,30.71,30.96]},{ x:'10/23/2023',y:[30.83,30.84,30.65,30.75]},{ x:'10/24/2023',y:[30.37,30.70,30.11,30.70]},{ x:'10/25/2023',y:[30.83,30.96,30.83,30.88]},{ x:'10/26/2023',y:[30.49,30.59,30.34,30.41]},{ x:'10/27/2023',y:[30.71,30.86,30.70,30.79]},{ x:'10/30/2023',y:[30.54,30.57,30.39,30.49]},{ x:'10/31/2023',y:[30.60,30.84,30.47,30.63]},{ x:'11/01/2023',y:[31.35,31.48,31.32,31.47]},{ x:'11/02/2023',y:[31.78,31.80,31.62,31.69]},{ x:'11/03/2023',y:[31.80,32.03,31.80,31.99]},{ x:'11/06/2023',y:[32.23,32.30,32.19,32.19]},{ x:'11/07/2023',y:[32.03,32.05,31.81,31.81]},{ x:'11/08/2023',y:[31.78,31.78,31.38,31.58]},{ x:'11/09/2023',y:[31.55,31.92,31.55,31.92]},{ x:'11/10/2023',y:[31.65,31.89,31.65,31.86]},{ x:'11/13/2023',y:[31.94,31.99,31.82,31.84]},{ x:'11/14/2023',y:[32.00,32.09,32.00,32.02]},{ x:'11/15/2023',y:[32.34,32.39,32.23,32.39]},{ x:'11/16/2023',y:[32.39,32.39,32.11,32.24]},{ x:'11/17/2023',y:[32.22,32.39,32.21,32.38]},{ x:'11/20/2023',y:[32.58,32.58,32.25,32.40]},{ x:'11/21/2023',y:[32.18,32.30,32.09,32.24]},{ x:'11/22/2023',y:[32.32,32.43,32.31,32.36]},{ x:'11/23/2023',y:[32.59,32.63,32.53,32.60]},{ x:'11/24/2023',y:[32.65,32.71,32.60,32.65]},{ x:'11/27/2023',y:[32.65,32.68,32.43,32.52]},{ x:'11/28/2023',y:[32.36,32.41,32.32,32.41]},{ x:'11/29/2023',y:[32.24,32.35,32.23,32.23]},{ x:'11/30/2023',y:[32.16,32.30,32.07,32.30]},{ x:'12/01/2023',y:[32.41,32.50,32.41,32.46]},{ x:'12/04/2023',y:[32.23,32.31,32.10,32.25]},{ x:'12/05/2023',y:[32.03,32.08,31.92,32.03]},{ x:'12/06/2023',y:[32.31,32.49,32.31,32.49]},{ x:'12/07/2023',y:[32.21,32.23,32.06,32.12]},{ x:'12/08/2023',y:[31.82,31.82,31.59,31.59]},{ x:'12/11/2023',y:[32.12,32.18,32.08,32.10]},{ x:'12/12/2023',y:[32.23,32.27,32.05,32.10]},{ x:'12/18/2023',y:[31.39,31.63,31.35,31.60]},{ x:'12/19/2023',y:[31.57,32.10,31.47,31.71]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 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());