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:'06/29/2023',y:[20.05,20.14,19.90,19.94]},{ x:'06/30/2023',y:[19.73,20.10,19.71,20.10]},{ x:'07/03/2023',y:[20.10,20.43,20.01,20.37]},{ x:'07/04/2023',y:[20.33,20.41,20.30,20.38]},{ x:'07/05/2023',y:[20.49,20.49,20.21,20.25]},{ x:'07/06/2023',y:[20.25,20.35,20.02,20.12]},{ x:'07/07/2023',y:[20.11,20.15,20.00,20.13]},{ x:'07/10/2023',y:[20.23,20.42,20.21,20.23]},{ x:'07/11/2023',y:[20.27,20.46,20.27,20.39]},{ x:'07/12/2023',y:[20.46,20.55,20.39,20.45]},{ x:'07/13/2023',y:[20.50,20.75,20.46,20.72]},{ x:'07/14/2023',y:[20.81,20.86,20.73,20.78]},{ x:'07/17/2023',y:[20.77,20.77,20.46,20.51]},{ x:'07/18/2023',y:[20.51,20.52,20.38,20.44]},{ x:'07/19/2023',y:[20.38,20.42,20.21,20.25]},{ x:'07/20/2023',y:[20.29,20.66,20.29,20.51]},{ x:'07/21/2023',y:[20.43,20.71,20.39,20.56]},{ x:'07/24/2023',y:[20.55,20.58,20.39,20.48]},{ x:'07/25/2023',y:[20.75,21.26,20.75,21.20]},{ x:'07/26/2023',y:[21.59,21.59,21.13,21.15]},{ x:'07/27/2023',y:[21.28,21.50,21.28,21.36]},{ x:'07/28/2023',y:[21.16,21.88,21.11,21.85]},{ x:'07/31/2023',y:[22.11,22.50,22.01,22.05]},{ x:'08/01/2023',y:[22.08,22.20,21.94,21.94]},{ 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]} ] }], 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());