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/10/2022',y:[10.69,10.83,10.69,10.77]},{ x:'11/11/2022',y:[10.30,10.30,10.00,10.01]},{ x:'11/14/2022',y:[9.90,9.99,9.35,9.60]},{ x:'11/15/2022',y:[9.63,9.68,9.27,9.28]},{ x:'11/16/2022',y:[9.35,9.41,9.24,9.37]},{ x:'11/17/2022',y:[9.42,9.59,9.40,9.50]},{ x:'11/18/2022',y:[9.35,9.43,9.25,9.39]},{ x:'11/21/2022',y:[9.42,9.75,9.42,9.67]},{ x:'11/22/2022',y:[9.86,9.86,9.60,9.73]},{ x:'11/23/2022',y:[9.66,9.78,9.65,9.68]},{ x:'11/24/2022',y:[9.64,9.70,9.58,9.65]},{ x:'11/25/2022',y:[9.61,9.74,9.61,9.67]},{ x:'11/28/2022',y:[9.80,10.07,9.80,9.87]},{ x:'11/29/2022',y:[10.00,10.00,9.39,9.40]},{ x:'11/30/2022',y:[9.39,9.40,9.22,9.24]},{ x:'12/01/2022',y:[8.89,8.99,8.78,8.93]},{ x:'12/02/2022',y:[8.98,9.11,8.96,9.10]},{ x:'12/05/2022',y:[8.94,8.94,8.69,8.75]},{ x:'12/06/2022',y:[8.76,8.80,8.62,8.73]},{ x:'12/07/2022',y:[8.73,8.80,8.56,8.58]},{ x:'12/08/2022',y:[8.93,8.94,8.70,8.75]},{ x:'12/09/2022',y:[8.60,8.67,8.49,8.51]},{ x:'12/12/2022',y:[8.57,8.64,8.54,8.62]},{ x:'12/13/2022',y:[8.62,8.68,8.55,8.59]},{ x:'12/14/2022',y:[8.58,8.63,8.48,8.51]},{ 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]} ] }], 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());