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/01/2023',y:[20.95,21.10,20.92,20.94]},{ x:'09/04/2023',y:[21.20,21.45,21.13,21.33]},{ x:'09/05/2023',y:[21.41,21.42,21.20,21.27]},{ x:'09/06/2023',y:[21.19,21.19,21.02,21.08]},{ x:'09/07/2023',y:[21.05,21.15,20.89,20.91]},{ x:'09/08/2023',y:[20.76,20.80,20.62,20.69]},{ x:'09/11/2023',y:[20.80,21.11,20.66,21.11]},{ x:'09/12/2023',y:[21.11,21.11,20.89,20.93]},{ x:'09/13/2023',y:[20.96,21.04,20.76,20.83]},{ x:'09/14/2023',y:[20.86,20.93,20.79,20.83]},{ x:'09/15/2023',y:[20.86,21.04,20.82,20.83]},{ x:'09/18/2023',y:[20.69,20.95,20.63,20.86]},{ x:'09/19/2023',y:[20.90,20.91,20.74,20.89]},{ x:'09/20/2023',y:[20.92,20.92,20.81,20.86]},{ x:'09/21/2023',y:[20.79,20.86,20.70,20.72]},{ x:'09/22/2023',y:[20.58,20.94,20.52,20.88]},{ x:'09/25/2023',y:[21.06,21.11,20.90,20.97]},{ x:'09/26/2023',y:[20.95,20.95,20.79,20.82]},{ x:'09/27/2023',y:[20.82,21.01,20.79,20.81]},{ x:'09/28/2023',y:[20.81,20.91,20.69,20.74]},{ x:'10/02/2023',y:[20.89,20.97,20.82,20.82]},{ x:'10/03/2023',y:[20.88,20.88,20.55,20.57]},{ x:'10/04/2023',y:[20.56,20.56,20.36,20.38]},{ x:'10/05/2023',y:[20.43,20.44,20.30,20.40]},{ x:'10/06/2023',y:[20.40,20.63,20.40,20.54]},{ x:'10/11/2023',y:[20.54,20.56,20.40,20.46]},{ x:'10/12/2023',y:[20.57,20.74,20.54,20.55]},{ x:'10/13/2023',y:[20.53,20.53,20.36,20.38]},{ x:'10/18/2023',y:[20.26,20.47,20.17,20.20]},{ x:'10/19/2023',y:[20.14,20.14,19.77,19.80]},{ x:'10/20/2023',y:[19.68,19.72,19.52,19.57]},{ x:'10/23/2023',y:[19.49,19.59,19.47,19.53]},{ x:'10/24/2023',y:[19.53,19.54,19.30,19.40]},{ x:'10/25/2023',y:[19.73,19.82,19.63,19.66]},{ x:'10/26/2023',y:[19.63,19.74,19.58,19.64]},{ x:'10/27/2023',y:[19.73,19.99,19.73,19.97]},{ x:'10/30/2023',y:[19.85,20.07,19.85,20.05]},{ x:'10/31/2023',y:[20.09,20.09,19.95,19.99]},{ x:'11/01/2023',y:[20.23,20.43,20.15,20.26]},{ x:'11/02/2023',y:[20.29,20.33,20.15,20.16]},{ x:'11/03/2023',y:[20.29,20.29,20.13,20.23]},{ x:'11/06/2023',y:[20.33,20.38,20.25,20.33]},{ x:'11/07/2023',y:[20.33,20.38,20.20,20.24]},{ x:'11/08/2023',y:[20.25,20.32,20.24,20.26]},{ x:'11/09/2023',y:[20.25,20.30,20.22,20.23]},{ x:'11/10/2023',y:[20.18,20.24,20.07,20.11]},{ x:'11/13/2023',y:[20.11,20.21,19.97,20.02]},{ x:'11/14/2023',y:[20.12,20.14,20.00,20.00]},{ x:'11/15/2023',y:[20.21,20.34,20.05,20.08]},{ x:'11/16/2023',y:[20.14,20.25,19.89,19.96]},{ x:'11/17/2023',y:[19.84,19.86,19.72,19.76]},{ x:'11/20/2023',y:[19.96,20.00,19.72,19.94]},{ x:'11/21/2023',y:[19.95,20.17,19.91,20.12]},{ x:'11/22/2023',y:[19.94,20.02,19.91,19.97]},{ x:'11/23/2023',y:[19.89,19.95,19.85,19.87]},{ x:'11/24/2023',y:[19.98,20.00,19.85,19.89]},{ x:'11/27/2023',y:[19.90,19.90,19.55,19.60]},{ x:'11/28/2023',y:[19.62,19.62,19.52,19.53]},{ x:'11/29/2023',y:[19.51,19.63,19.36,19.37]},{ x:'11/30/2023',y:[19.37,19.55,19.37,19.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00636 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());