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/14/2022',y:[20.25,20.26,20.25,20.26]},{ x:'11/15/2022',y:[20.26,20.26,20.21,20.24]},{ x:'11/16/2022',y:[19.93,20.02,19.92,20.02]},{ x:'11/17/2022',y:[19.61,19.61,19.58,19.59]},{ x:'11/18/2022',y:[19.64,19.67,19.64,19.66]},{ x:'11/21/2022',y:[19.78,19.78,19.71,19.71]},{ x:'11/22/2022',y:[19.74,19.74,19.74,19.74]},{ x:'11/23/2022',y:[19.48,19.51,19.46,19.47]},{ x:'11/24/2022',y:[19.15,19.21,19.13,19.21]},{ x:'11/25/2022',y:[19.12,19.12,19.03,19.03]},{ x:'11/28/2022',y:[19.05,19.06,18.97,18.97]},{ x:'11/29/2022',y:[19.13,19.18,19.12,19.17]},{ x:'11/30/2022',y:[19.29,19.34,19.29,19.31]},{ x:'12/01/2022',y:[19.12,19.15,19.08,19.09]},{ x:'12/02/2022',y:[18.73,18.74,18.68,18.74]},{ x:'12/05/2022',y:[18.56,18.59,18.54,18.55]},{ x:'12/06/2022',y:[18.54,18.59,18.54,18.57]},{ x:'12/07/2022',y:[18.48,18.50,18.48,18.50]},{ x:'12/08/2022',y:[18.10,18.11,18.06,18.10]},{ x:'12/09/2022',y:[18.05,18.05,17.97,17.98]},{ x:'12/12/2022',y:[18.47,18.47,18.37,18.39]},{ x:'12/13/2022',y:[18.46,18.50,18.45,18.49]},{ x:'12/14/2022',y:[18.25,18.26,18.23,18.24]},{ x:'12/15/2022',y:[18.30,18.31,18.28,18.28]},{ x:'12/16/2022',y:[18.19,18.27,18.18,18.27]},{ x:'12/19/2022',y:[18.37,18.45,18.37,18.45]},{ x:'12/20/2022',y:[18.63,18.97,18.63,18.94]},{ x:'12/21/2022',y:[19.01,19.04,18.95,18.95]},{ x:'12/22/2022',y:[18.79,18.83,18.79,18.83]},{ x:'12/23/2022',y:[18.95,18.96,18.95,18.96]},{ x:'12/26/2022',y:[19.18,19.18,19.05,19.14]},{ x:'12/27/2022',y:[19.11,19.11,19.08,19.10]},{ x:'12/28/2022',y:[19.48,19.48,19.44,19.47]},{ x:'12/29/2022',y:[19.61,19.61,19.58,19.60]},{ x:'12/30/2022',y:[19.43,19.49,19.43,19.48]},{ x:'01/03/2023',y:[19.55,19.57,19.52,19.55]},{ x:'01/04/2023',y:[19.32,19.32,19.18,19.18]},{ x:'01/05/2023',y:[19.09,19.10,19.08,19.10]},{ x:'01/06/2023',y:[19.09,19.09,19.01,19.07]},{ x:'01/09/2023',y:[18.76,18.77,18.73,18.76]},{ x:'01/10/2023',y:[18.59,18.59,18.53,18.56]},{ x:'01/11/2023',y:[18.80,18.80,18.75,18.75]},{ x:'01/12/2023',y:[18.64,18.64,18.48,18.48]},{ x:'01/13/2023',y:[18.32,18.34,18.31,18.32]},{ x:'01/16/2023',y:[18.35,18.38,18.33,18.38]},{ x:'01/17/2023',y:[18.46,18.49,18.46,18.46]},{ x:'01/30/2023',y:[18.31,18.36,18.22,18.22]},{ x:'01/31/2023',y:[18.32,18.32,18.31,18.31]},{ x:'02/01/2023',y:[18.21,18.22,18.21,18.22]},{ x:'02/02/2023',y:[17.93,17.98,17.90,17.98]},{ x:'02/03/2023',y:[17.86,17.86,17.79,17.79]},{ x:'02/06/2023',y:[18.24,18.24,18.19,18.19]},{ x:'02/07/2023',y:[18.32,18.33,18.28,18.30]},{ x:'02/08/2023',y:[18.41,18.46,18.41,18.42]},{ x:'02/09/2023',y:[18.41,18.44,18.40,18.44]},{ x:'02/10/2023',y:[18.57,18.59,18.56,18.58]},{ x:'02/13/2023',y:[18.81,18.84,18.80,18.80]},{ x:'02/14/2023',y:[18.63,18.64,18.63,18.63]},{ x:'02/15/2023',y:[0.00,0.00,0.00,0.00]},{ x:'02/16/2023',y:[18.92,18.92,18.88,18.88]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00689r 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());