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/02/2023',y:[21.94,22.03,21.67,21.71]},{ x:'08/04/2023',y:[22.15,22.31,22.00,22.20]},{ x:'08/07/2023',y:[22.08,22.18,21.88,21.91]},{ x:'08/08/2023',y:[21.76,22.03,21.71,21.95]},{ x:'08/09/2023',y:[21.85,22.00,21.80,21.90]},{ x:'08/10/2023',y:[21.83,21.92,21.69,21.74]},{ x:'08/11/2023',y:[21.77,21.94,21.45,21.54]},{ x:'08/14/2023',y:[21.03,21.10,20.78,20.91]},{ x:'08/15/2023',y:[20.92,21.07,20.81,20.82]},{ x:'08/16/2023',y:[20.82,20.93,20.75,20.80]},{ x:'08/17/2023',y:[20.70,20.78,20.63,20.70]},{ x:'08/18/2023',y:[20.80,21.00,20.73,20.77]},{ x:'08/21/2023',y:[20.55,20.65,20.43,20.57]},{ x:'08/22/2023',y:[20.48,20.53,20.33,20.35]},{ x:'08/23/2023',y:[20.42,20.56,20.41,20.45]},{ x:'08/24/2023',y:[20.41,20.60,20.34,20.60]},{ x:'08/25/2023',y:[20.51,20.55,20.42,20.48]},{ x:'08/28/2023',y:[21.27,21.52,20.80,20.80]},{ x:'08/29/2023',y:[20.92,21.21,20.86,21.09]},{ x:'08/30/2023',y:[21.07,21.11,20.86,20.88]},{ x:'08/31/2023',y:[20.82,20.90,20.73,20.76]},{ 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]} ] }], 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());