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:'01/30/2023',y:[34.59,34.59,34.43,34.46]},{ x:'01/31/2023',y:[34.21,34.24,34.17,34.24]},{ x:'02/01/2023',y:[34.27,34.34,34.27,34.34]},{ x:'02/02/2023',y:[34.50,34.50,34.22,34.23]},{ x:'02/03/2023',y:[34.67,34.70,34.50,34.66]},{ x:'02/06/2023',y:[34.26,34.36,34.26,34.32]},{ x:'02/07/2023',y:[34.26,34.33,34.26,34.33]},{ x:'02/08/2023',y:[34.11,34.16,34.07,34.16]},{ x:'02/09/2023',y:[34.17,34.22,34.17,34.18]},{ x:'02/10/2023',y:[33.88,33.97,33.88,33.97]},{ x:'02/13/2023',y:[33.58,33.71,33.58,33.71]},{ x:'02/14/2023',y:[33.83,33.83,33.77,33.79]},{ x:'02/15/2023',y:[33.72,33.89,33.72,33.89]},{ x:'02/16/2023',y:[33.06,33.12,33.02,33.09]},{ x:'02/17/2023',y:[32.71,32.85,32.71,32.85]},{ x:'02/20/2023',y:[32.84,32.85,32.81,32.83]},{ x:'02/21/2023',y:[32.83,32.88,32.83,32.87]},{ x:'02/22/2023',y:[32.41,32.52,32.41,32.52]},{ x:'02/23/2023',y:[32.59,32.59,32.43,32.44]},{ x:'02/24/2023',y:[32.67,32.77,32.66,32.77]},{ x:'03/01/2023',y:[32.43,32.60,32.43,32.57]},{ x:'03/02/2023',y:[32.28,32.34,32.23,32.34]},{ x:'03/03/2023',y:[32.20,32.23,32.16,32.22]},{ x:'03/06/2023',y:[32.76,32.78,32.72,32.77]},{ x:'03/07/2023',y:[32.80,32.81,32.79,32.80]},{ x:'03/08/2023',y:[32.91,32.94,32.91,32.92]},{ x:'03/09/2023',y:[32.89,32.91,32.89,32.89]},{ x:'03/10/2023',y:[33.08,33.17,33.08,33.16]},{ x:'03/13/2023',y:[33.15,33.15,32.81,32.91]},{ x:'03/14/2023',y:[32.85,32.85,32.73,32.73]},{ x:'03/15/2023',y:[32.62,32.67,32.61,32.67]},{ x:'03/16/2023',y:[32.87,32.92,32.87,32.88]},{ x:'03/17/2023',y:[32.79,32.86,32.79,32.86]},{ x:'03/20/2023',y:[32.94,33.02,32.88,33.02]},{ x:'03/21/2023',y:[32.85,32.85,32.80,32.85]},{ x:'03/22/2023',y:[32.92,32.92,32.89,32.90]},{ x:'03/23/2023',y:[33.25,33.25,33.06,33.08]},{ x:'03/24/2023',y:[32.87,32.88,32.84,32.88]},{ x:'03/27/2023',y:[32.82,32.87,32.80,32.80]},{ x:'03/28/2023',y:[32.50,32.55,32.50,32.55]},{ x:'03/29/2023',y:[32.41,32.50,32.41,32.50]},{ x:'03/30/2023',y:[32.62,32.63,32.61,32.63]},{ x:'03/31/2023',y:[32.80,32.80,32.77,32.80]},{ x:'04/06/2023',y:[33.50,33.50,33.36,33.48]},{ x:'04/07/2023',y:[33.49,33.49,33.43,33.44]},{ x:'04/10/2023',y:[33.36,33.36,33.32,33.34]},{ x:'04/11/2023',y:[33.25,33.28,33.25,33.27]},{ x:'04/12/2023',y:[33.34,33.38,33.34,33.38]},{ x:'04/13/2023',y:[33.39,33.40,33.38,33.39]},{ x:'04/14/2023',y:[33.33,33.33,33.27,33.29]},{ x:'04/17/2023',y:[33.23,33.29,33.23,33.28]},{ x:'04/18/2023',y:[33.07,33.07,33.05,33.06]},{ x:'04/19/2023',y:[33.20,33.23,33.20,33.22]},{ x:'04/20/2023',y:[33.20,33.27,33.20,33.26]},{ x:'04/21/2023',y:[33.34,33.38,33.33,33.38]},{ x:'04/24/2023',y:[33.31,33.33,33.31,33.33]},{ x:'04/25/2023',y:[33.53,33.56,33.53,33.56]},{ x:'04/26/2023',y:[33.74,33.79,33.71,33.78]},{ x:'04/27/2023',y:[33.64,33.68,33.61,33.65]},{ x:'04/28/2023',y:[33.53,33.62,33.53,33.61]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00786b 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());