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/11/2022',y:[13.88,14.07,13.88,14.07]},{ x:'11/14/2022',y:[14.09,14.32,14.09,14.27]},{ x:'11/15/2022',y:[14.27,14.38,14.14,14.37]},{ x:'11/16/2022',y:[14.35,14.39,14.21,14.27]},{ x:'11/17/2022',y:[14.27,14.27,14.14,14.22]},{ x:'11/18/2022',y:[14.21,14.26,14.07,14.12]},{ x:'11/21/2022',y:[14.15,14.15,14.05,14.11]},{ x:'11/22/2022',y:[14.13,14.16,14.06,14.16]},{ x:'11/23/2022',y:[14.20,14.33,14.20,14.31]},{ x:'11/24/2022',y:[14.33,14.38,14.28,14.38]},{ x:'11/25/2022',y:[14.40,14.42,14.36,14.41]},{ x:'11/28/2022',y:[14.32,14.39,14.17,14.37]},{ x:'11/29/2022',y:[14.37,14.57,14.32,14.57]},{ x:'11/30/2022',y:[14.57,14.77,14.53,14.77]},{ x:'12/01/2022',y:[14.87,14.90,14.69,14.75]},{ x:'12/02/2022',y:[14.74,14.74,14.65,14.68]},{ x:'12/05/2022',y:[14.67,14.70,14.62,14.67]},{ x:'12/06/2022',y:[14.63,14.64,14.48,14.51]},{ x:'12/07/2022',y:[14.48,14.65,14.46,14.58]},{ x:'12/08/2022',y:[14.54,14.54,14.40,14.47]},{ x:'12/09/2022',y:[14.52,14.58,14.47,14.57]},{ x:'12/12/2022',y:[14.54,14.54,14.40,14.51]},{ x:'12/13/2022',y:[14.59,14.59,14.39,14.41]},{ x:'12/14/2022',y:[14.52,14.58,14.45,14.57]},{ x:'12/15/2022',y:[14.52,14.60,14.48,14.60]},{ x:'12/16/2022',y:[14.35,14.43,14.31,14.37]},{ x:'12/19/2022',y:[14.37,14.39,14.31,14.35]},{ x:'12/20/2022',y:[14.29,14.32,14.15,14.19]},{ x:'12/21/2022',y:[14.20,14.25,14.19,14.22]},{ x:'12/22/2022',y:[14.33,14.43,14.33,14.42]},{ x:'12/23/2022',y:[14.35,14.40,14.29,14.34]},{ x:'12/26/2022',y:[14.42,14.42,14.37,14.40]},{ x:'12/27/2022',y:[14.44,14.48,14.42,14.42]},{ x:'12/28/2022',y:[14.37,14.42,14.35,14.37]},{ x:'12/29/2022',y:[14.32,14.32,14.18,14.25]},{ x:'12/30/2022',y:[14.35,14.42,14.35,14.37]},{ x:'01/03/2023',y:[14.33,14.35,14.18,14.33]},{ x:'01/04/2023',y:[14.32,14.38,14.32,14.37]},{ x:'01/05/2023',y:[14.38,14.50,14.38,14.43]},{ x:'01/06/2023',y:[14.42,14.50,14.42,14.48]},{ x:'01/09/2023',y:[14.56,14.70,14.56,14.69]},{ x:'01/10/2023',y:[14.69,14.71,14.62,14.71]},{ x:'01/11/2023',y:[14.71,14.75,14.64,14.66]},{ x:'01/12/2023',y:[14.66,14.67,14.60,14.62]},{ x:'01/13/2023',y:[14.70,14.74,14.64,14.65]},{ x:'01/16/2023',y:[14.70,14.77,14.69,14.71]},{ x:'01/17/2023',y:[14.70,14.76,14.70,14.73]},{ x:'01/30/2023',y:[14.95,15.00,14.78,14.93]},{ x:'01/31/2023',y:[14.94,14.94,14.84,14.86]},{ x:'02/01/2023',y:[14.87,14.87,14.77,14.87]},{ x:'02/02/2023',y:[14.91,14.93,14.81,14.93]},{ x:'02/03/2023',y:[14.90,14.90,14.82,14.89]},{ x:'02/06/2023',y:[14.90,14.90,14.77,14.83]},{ x:'02/07/2023',y:[14.86,14.86,14.78,14.81]},{ x:'02/08/2023',y:[14.81,14.84,14.77,14.82]},{ x:'02/09/2023',y:[14.79,14.81,14.75,14.80]},{ x:'02/10/2023',y:[14.80,14.80,14.72,14.78]},{ x:'02/13/2023',y:[14.79,14.84,14.70,14.84]},{ x:'02/14/2023',y:[14.90,14.96,14.87,14.95]},{ x:'02/15/2023',y:[14.94,14.94,14.84,14.88]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00907 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());