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/21/2022',y:[27.13,27.14,27.07,27.07]},{ x:'11/22/2022',y:[27.09,27.10,27.04,27.09]},{ x:'11/23/2022',y:[27.35,27.36,27.28,27.31]},{ x:'11/24/2022',y:[27.43,27.60,27.43,27.48]},{ x:'11/25/2022',y:[27.57,27.57,27.46,27.47]},{ x:'11/28/2022',y:[27.02,27.26,27.02,27.18]},{ x:'11/29/2022',y:[26.94,27.00,26.86,27.00]},{ x:'11/30/2022',y:[26.92,26.92,26.88,26.91]},{ x:'12/01/2022',y:[27.71,27.82,27.60,27.67]},{ x:'12/02/2022',y:[27.55,27.55,27.40,27.45]},{ x:'12/05/2022',y:[27.40,27.40,27.25,27.25]},{ x:'12/06/2022',y:[27.07,27.07,26.95,26.96]},{ x:'12/07/2022',y:[26.65,26.67,26.63,26.65]},{ x:'12/08/2022',y:[26.46,26.46,26.36,26.41]},{ x:'12/09/2022',y:[26.81,26.94,26.77,26.92]},{ x:'12/12/2022',y:[26.76,26.81,26.72,26.81]},{ x:'12/13/2022',y:[27.00,27.12,26.97,27.01]},{ x:'12/14/2022',y:[27.40,27.40,27.29,27.35]},{ x:'12/15/2022',y:[27.23,27.23,27.06,27.11]},{ x:'12/16/2022',y:[26.55,26.61,26.50,26.54]},{ x:'12/19/2022',y:[26.35,26.38,26.32,26.33]},{ x:'12/20/2022',y:[26.12,26.13,25.73,25.73]},{ x:'12/21/2022',y:[26.00,26.02,25.91,25.92]},{ x:'12/22/2022',y:[26.18,26.26,26.18,26.24]},{ x:'12/23/2022',y:[25.84,25.86,25.75,25.82]},{ x:'12/26/2022',y:[25.71,25.96,25.71,25.96]},{ x:'12/27/2022',y:[26.00,26.09,26.00,26.03]},{ x:'12/28/2022',y:[25.76,25.76,25.64,25.65]},{ x:'12/29/2022',y:[25.51,25.51,25.33,25.40]},{ x:'12/30/2022',y:[25.75,25.75,25.71,25.71]},{ x:'01/03/2023',y:[25.65,25.78,25.56,25.78]},{ x:'01/04/2023',y:[25.76,25.85,25.76,25.85]},{ x:'01/05/2023',y:[26.12,26.14,26.00,26.13]},{ x:'01/06/2023',y:[26.00,26.10,25.93,26.05]},{ x:'01/09/2023',y:[26.53,26.85,26.53,26.85]},{ x:'01/10/2023',y:[26.85,26.85,26.74,26.76]},{ x:'01/11/2023',y:[27.01,27.02,26.93,26.95]},{ x:'01/12/2023',y:[27.19,27.23,27.19,27.22]},{ x:'01/13/2023',y:[27.42,27.52,27.42,27.49]},{ x:'01/16/2023',y:[27.44,27.65,27.43,27.64]},{ x:'01/17/2023',y:[27.59,27.69,27.49,27.60]},{ x:'01/30/2023',y:[27.92,28.20,27.90,28.20]},{ x:'01/31/2023',y:[27.92,27.93,27.63,27.63]},{ x:'02/01/2023',y:[27.89,27.98,27.88,27.98]},{ x:'02/02/2023',y:[28.20,28.29,28.20,28.28]},{ x:'02/03/2023',y:[28.40,28.46,28.39,28.44]},{ x:'02/06/2023',y:[28.38,28.38,28.17,28.17]},{ x:'02/07/2023',y:[27.95,28.14,27.95,28.05]},{ x:'02/08/2023',y:[28.39,28.66,28.35,28.60]},{ x:'02/09/2023',y:[28.45,28.45,28.24,28.39]},{ x:'02/10/2023',y:[28.20,28.20,28.08,28.15]},{ x:'02/13/2023',y:[27.96,28.00,27.90,27.99]},{ x:'02/14/2023',y:[28.23,28.25,28.21,28.22]},{ x:'02/15/2023',y:[28.34,28.34,28.10,28.19]},{ x:'02/16/2023',y:[28.42,28.63,28.42,28.62]},{ x:'02/17/2023',y:[28.40,28.40,28.25,28.29]},{ x:'02/20/2023',y:[28.20,28.32,28.17,28.28]},{ x:'02/21/2023',y:[28.28,28.28,28.08,28.12]},{ x:'02/22/2023',y:[27.90,27.90,27.69,27.71]},{ x:'02/23/2023',y:[27.72,27.74,27.67,27.67]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00861 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());