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:'01/04/2023',y:[8.05,8.06,8.04,8.04]},{ x:'01/05/2023',y:[8.03,8.05,8.02,8.03]},{ x:'01/06/2023',y:[8.08,8.09,8.06,8.08]},{ x:'01/09/2023',y:[7.90,7.91,7.89,7.89]},{ x:'01/10/2023',y:[7.95,7.96,7.93,7.94]},{ x:'01/11/2023',y:[7.89,7.89,7.88,7.88]},{ x:'01/12/2023',y:[7.84,7.84,7.82,7.82]},{ x:'01/13/2023',y:[7.78,7.81,7.77,7.81]},{ x:'01/16/2023',y:[7.76,7.76,7.73,7.75]},{ x:'01/17/2023',y:[7.75,7.78,7.75,7.78]},{ x:'01/30/2023',y:[7.84,7.86,7.83,7.85]},{ x:'01/31/2023',y:[7.87,7.89,7.86,7.89]},{ x:'02/01/2023',y:[7.82,7.82,7.80,7.82]},{ x:'02/02/2023',y:[7.79,7.81,7.78,7.79]},{ x:'02/03/2023',y:[7.80,7.81,7.78,7.79]},{ x:'02/06/2023',y:[7.83,7.86,7.83,7.86]},{ x:'02/07/2023',y:[7.84,7.85,7.82,7.85]},{ x:'02/08/2023',y:[7.78,7.80,7.78,7.78]},{ x:'02/09/2023',y:[7.81,7.82,7.80,7.80]},{ x:'02/10/2023',y:[7.88,7.91,7.88,7.91]},{ x:'02/13/2023',y:[7.88,7.90,7.87,7.89]},{ x:'02/14/2023',y:[7.79,7.79,7.77,7.78]},{ x:'02/15/2023',y:[7.81,7.85,7.81,7.85]},{ x:'02/16/2023',y:[7.80,7.81,7.78,7.79]},{ x:'02/17/2023',y:[7.90,7.93,7.90,7.93]},{ x:'02/20/2023',y:[7.89,7.89,7.87,7.87]},{ x:'02/21/2023',y:[7.90,7.91,7.89,7.90]},{ x:'02/22/2023',y:[8.02,8.03,8.02,8.02]},{ x:'02/23/2023',y:[8.04,8.05,8.02,8.02]},{ x:'02/24/2023',y:[8.02,8.05,8.02,8.05]},{ x:'03/01/2023',y:[8.17,8.19,8.15,8.15]},{ x:'03/02/2023',y:[8.11,8.16,8.11,8.14]},{ x:'03/03/2023',y:[8.08,8.10,8.07,8.09]},{ x:'03/06/2023',y:[8.00,8.00,7.97,7.98]},{ x:'03/07/2023',y:[7.97,7.98,7.96,7.97]},{ x:'03/08/2023',y:[8.10,8.13,8.10,8.11]},{ x:'03/09/2023',y:[8.13,8.16,8.13,8.15]},{ x:'03/10/2023',y:[8.30,8.36,8.30,8.35]},{ x:'03/13/2023',y:[8.32,8.32,8.24,8.25]},{ x:'03/14/2023',y:[8.34,8.35,8.32,8.34]},{ x:'03/15/2023',y:[8.29,8.30,8.28,8.29]},{ x:'03/16/2023',y:[8.33,8.35,8.32,8.33]},{ x:'03/17/2023',y:[8.27,8.28,8.26,8.27]},{ x:'03/20/2023',y:[8.31,8.38,8.30,8.37]},{ x:'03/21/2023',y:[8.26,8.27,8.25,8.26]},{ x:'03/22/2023',y:[8.20,8.20,8.18,8.18]},{ x:'03/23/2023',y:[8.30,8.30,8.25,8.27]},{ x:'03/24/2023',y:[8.27,8.29,8.26,8.27]},{ x:'03/27/2023',y:[8.23,8.24,8.21,8.22]},{ x:'03/28/2023',y:[8.19,8.21,8.19,8.21]},{ x:'03/29/2023',y:[8.19,8.20,8.19,8.19]},{ x:'03/30/2023',y:[8.15,8.16,8.14,8.14]},{ x:'03/31/2023',y:[8.10,8.10,8.09,8.10]},{ x:'04/06/2023',y:[8.01,8.01,7.97,7.99]},{ x:'04/07/2023',y:[7.98,8.00,7.98,8.00]},{ x:'04/10/2023',y:[7.97,7.97,7.96,7.97]},{ x:'04/11/2023',y:[7.93,7.95,7.93,7.95]},{ x:'04/12/2023',y:[7.93,7.93,7.91,7.93]},{ x:'04/13/2023',y:[7.95,7.95,7.93,7.94]},{ x:'04/14/2023',y:[7.86,7.87,7.85,7.87]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00669r 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());