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:'12/15/2022',y:[8.50,8.73,8.48,8.64]},{ x:'12/16/2022',y:[8.66,8.87,8.60,8.70]},{ x:'12/19/2022',y:[8.70,8.75,8.53,8.73]},{ x:'12/20/2022',y:[8.78,8.91,8.74,8.91]},{ x:'12/21/2022',y:[8.91,8.91,8.76,8.83]},{ x:'12/22/2022',y:[8.72,8.74,8.54,8.57]},{ x:'12/23/2022',y:[8.65,8.74,8.57,8.60]},{ x:'12/26/2022',y:[8.60,8.64,8.56,8.58]},{ x:'12/27/2022',y:[8.58,8.58,8.51,8.54]},{ x:'12/28/2022',y:[8.53,8.53,8.38,8.47]},{ x:'12/29/2022',y:[8.54,8.63,8.54,8.60]},{ x:'12/30/2022',y:[8.50,8.52,8.41,8.52]},{ x:'01/03/2023',y:[8.55,8.71,8.38,8.40]},{ x:'01/04/2023',y:[8.36,8.40,8.18,8.23]},{ x:'01/05/2023',y:[8.07,8.08,7.90,8.01]},{ x:'01/06/2023',y:[8.00,8.03,7.92,8.03]},{ x:'01/09/2023',y:[7.93,7.93,7.85,7.90]},{ x:'01/10/2023',y:[7.90,7.93,7.86,7.86]},{ x:'01/11/2023',y:[7.85,7.87,7.77,7.77]},{ x:'01/12/2023',y:[7.78,7.91,7.77,7.86]},{ x:'01/13/2023',y:[7.80,7.83,7.77,7.82]},{ x:'01/16/2023',y:[7.74,7.75,7.67,7.72]},{ x:'01/17/2023',y:[7.75,7.83,7.74,7.83]},{ x:'01/30/2023',y:[7.58,7.58,7.44,7.53]},{ x:'01/31/2023',y:[7.60,7.73,7.54,7.71]},{ x:'02/01/2023',y:[7.71,7.75,7.62,7.68]},{ x:'02/02/2023',y:[7.57,7.61,7.52,7.58]},{ x:'02/03/2023',y:[7.63,7.81,7.63,7.76]},{ x:'02/06/2023',y:[7.81,7.95,7.81,7.95]},{ x:'02/07/2023',y:[7.95,7.95,7.81,7.88]},{ x:'02/08/2023',y:[7.89,7.92,7.83,7.90]},{ x:'02/09/2023',y:[7.90,7.96,7.82,7.84]},{ x:'02/10/2023',y:[7.83,7.93,7.79,7.93]},{ x:'02/13/2023',y:[7.95,8.07,7.95,7.95]},{ x:'02/14/2023',y:[7.94,7.97,7.86,7.96]},{ x:'02/15/2023',y:[7.94,8.10,7.93,8.06]},{ x:'02/16/2023',y:[8.04,8.04,7.90,7.91]},{ x:'02/17/2023',y:[8.00,8.09,7.98,8.06]},{ x:'02/20/2023',y:[8.12,8.17,8.05,8.08]},{ x:'02/21/2023',y:[8.09,8.16,8.04,8.16]},{ x:'02/22/2023',y:[8.20,8.27,8.16,8.21]},{ x:'02/23/2023',y:[8.22,8.28,8.16,8.23]},{ x:'02/24/2023',y:[8.32,8.39,8.28,8.37]},{ x:'03/01/2023',y:[8.46,8.50,8.22,8.24]},{ x:'03/02/2023',y:[8.19,8.25,8.17,8.19]},{ x:'03/03/2023',y:[8.20,8.20,8.09,8.17]},{ x:'03/06/2023',y:[8.10,8.24,8.10,8.14]},{ x:'03/07/2023',y:[8.16,8.17,8.00,8.10]},{ x:'03/08/2023',y:[8.20,8.42,8.20,8.39]},{ x:'03/09/2023',y:[8.37,8.41,8.35,8.38]},{ x:'03/10/2023',y:[8.48,8.67,8.48,8.66]},{ x:'03/13/2023',y:[8.70,8.70,8.47,8.50]},{ x:'03/14/2023',y:[8.52,8.71,8.52,8.65]},{ x:'03/15/2023',y:[8.50,8.62,8.48,8.60]},{ x:'03/16/2023',y:[8.69,8.75,8.63,8.69]},{ x:'03/17/2023',y:[8.56,8.65,8.53,8.56]},{ x:'03/20/2023',y:[8.60,8.80,8.59,8.80]},{ x:'03/21/2023',y:[8.75,8.77,8.68,8.72]},{ x:'03/22/2023',y:[8.56,8.58,8.43,8.53]},{ x:'03/23/2023',y:[8.50,8.53,8.40,8.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00651r 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());