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/21/2022',y:[31.65,31.72,31.57,31.71]},{ x:'11/22/2022',y:[31.79,31.79,31.66,31.67]},{ x:'11/23/2022',y:[31.90,32.12,31.90,32.10]},{ x:'11/24/2022',y:[32.66,32.67,32.29,32.29]},{ x:'11/25/2022',y:[32.39,32.55,32.39,32.43]},{ x:'11/28/2022',y:[32.40,32.62,32.35,32.62]},{ x:'11/29/2022',y:[32.59,32.59,32.32,32.32]},{ x:'11/30/2022',y:[32.14,32.15,32.01,32.02]},{ x:'12/01/2022',y:[32.34,32.34,32.01,32.01]},{ x:'12/02/2022',y:[32.48,32.65,32.48,32.61]},{ x:'12/05/2022',y:[32.75,32.83,32.75,32.80]},{ x:'12/06/2022',y:[32.79,32.95,32.78,32.93]},{ x:'12/07/2022',y:[33.13,33.28,33.10,33.10]},{ x:'12/08/2022',y:[33.70,33.94,33.70,33.91]},{ x:'12/09/2022',y:[33.91,34.07,33.88,34.05]},{ x:'12/12/2022',y:[33.42,33.46,33.05,33.43]},{ x:'12/13/2022',y:[33.35,33.37,33.22,33.25]},{ x:'12/14/2022',y:[33.52,33.52,33.47,33.47]},{ x:'12/15/2022',y:[33.47,33.47,33.37,33.47]},{ x:'12/16/2022',y:[33.68,33.77,33.58,33.61]},{ x:'12/19/2022',y:[33.49,33.49,33.30,33.36]},{ x:'12/20/2022',y:[33.14,33.14,32.32,32.45]},{ x:'12/21/2022',y:[32.33,32.33,32.22,32.30]},{ x:'12/22/2022',y:[32.57,32.57,32.50,32.54]},{ x:'12/23/2022',y:[32.40,32.40,32.35,32.37]},{ x:'12/26/2022',y:[32.20,32.27,32.20,32.25]},{ x:'12/27/2022',y:[32.21,32.21,32.00,32.08]},{ x:'12/28/2022',y:[31.60,31.75,31.48,31.49]},{ x:'12/29/2022',y:[31.47,31.47,31.32,31.34]},{ x:'12/30/2022',y:[31.50,31.59,31.45,31.50]},{ x:'01/03/2023',y:[31.48,31.48,31.38,31.39]},{ x:'01/04/2023',y:[31.85,31.93,31.77,31.92]},{ x:'01/05/2023',y:[32.03,32.13,32.01,32.01]},{ x:'01/06/2023',y:[32.10,32.21,32.10,32.20]},{ x:'01/09/2023',y:[32.51,32.64,32.51,32.51]},{ x:'01/10/2023',y:[32.62,32.68,32.57,32.62]},{ x:'01/11/2023',y:[32.38,32.38,32.28,32.34]},{ x:'01/12/2023',y:[32.45,32.80,32.45,32.77]},{ x:'01/13/2023',y:[33.02,33.05,32.94,33.05]},{ x:'01/16/2023',y:[33.05,33.06,32.89,32.91]},{ x:'01/17/2023',y:[32.96,32.96,32.63,32.65]},{ x:'01/30/2023',y:[32.91,32.91,32.70,32.85]},{ x:'01/31/2023',y:[32.83,32.83,32.52,32.53]},{ x:'02/01/2023',y:[32.64,32.69,32.58,32.65]},{ x:'02/02/2023',y:[32.83,32.85,32.67,32.67]},{ x:'02/03/2023',y:[32.72,32.98,32.72,32.93]},{ x:'02/06/2023',y:[32.70,32.70,32.53,32.58]},{ x:'02/07/2023',y:[32.55,32.59,32.45,32.46]},{ x:'02/08/2023',y:[32.37,32.37,32.27,32.32]},{ x:'02/09/2023',y:[32.37,32.39,32.26,32.29]},{ x:'02/10/2023',y:[32.23,32.24,32.10,32.18]},{ x:'02/13/2023',y:[31.93,31.95,31.84,31.90]},{ x:'02/14/2023',y:[32.07,32.15,32.07,32.15]},{ x:'02/15/2023',y:[32.15,32.24,32.15,32.23]},{ x:'02/16/2023',y:[31.78,31.78,31.53,31.61]},{ x:'02/17/2023',y:[31.19,31.21,31.02,31.07]},{ x:'02/20/2023',y:[31.32,31.34,31.29,31.33]},{ x:'02/21/2023',y:[31.31,31.32,31.22,31.24]},{ x:'02/22/2023',y:[31.08,31.10,31.03,31.05]},{ x:'02/23/2023',y:[31.19,31.20,31.04,31.06]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00795b 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());