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/22/2024',y:[8.82,9.04,8.82,8.97]},{ x:'01/23/2024',y:[8.97,8.98,8.94,8.94]},{ x:'01/24/2024',y:[8.90,8.90,8.89,8.89]},{ x:'01/25/2024',y:[8.94,9.00,8.94,9.00]},{ x:'01/26/2024',y:[9.06,9.06,8.90,8.90]},{ x:'01/29/2024',y:[8.87,8.87,8.84,8.85]},{ x:'01/30/2024',y:[8.89,8.90,8.89,8.90]},{ x:'01/31/2024',y:[8.80,8.80,8.76,8.77]},{ x:'02/01/2024',y:[8.76,8.77,8.76,8.77]},{ x:'02/02/2024',y:[8.86,8.88,8.84,8.86]},{ x:'02/05/2024',y:[8.79,8.84,8.79,8.84]},{ x:'02/15/2024',y:[8.84,9.62,8.84,9.59]},{ x:'02/16/2024',y:[9.59,9.68,9.51,9.52]},{ x:'02/19/2024',y:[9.50,9.50,9.46,9.46]},{ x:'02/20/2024',y:[9.46,9.56,9.46,9.53]},{ x:'02/21/2024',y:[9.50,9.50,9.48,9.48]},{ x:'02/22/2024',y:[9.48,9.79,9.48,9.79]},{ x:'02/23/2024',y:[9.80,9.94,9.80,9.91]},{ x:'02/26/2024',y:[9.92,9.96,9.92,9.95]},{ x:'02/27/2024',y:[9.95,9.98,9.84,9.87]},{ x:'02/29/2024',y:[9.87,9.97,9.87,9.96]},{ x:'03/01/2024',y:[10.00,10.03,9.96,9.96]},{ x:'03/04/2024',y:[10.00,10.34,10.00,10.32]},{ x:'03/05/2024',y:[10.27,10.36,10.27,10.36]},{ x:'03/06/2024',y:[10.36,10.36,10.24,10.33]},{ x:'03/07/2024',y:[10.36,10.48,10.36,10.40]},{ x:'03/08/2024',y:[10.60,10.70,10.56,10.56]},{ x:'03/11/2024',y:[10.52,10.52,10.29,10.31]},{ x:'03/12/2024',y:[10.25,10.32,10.25,10.30]},{ x:'03/13/2024',y:[10.44,10.44,10.36,10.41]},{ x:'03/14/2024',y:[10.40,10.40,10.23,10.30]},{ x:'03/15/2024',y:[10.13,10.14,10.09,10.10]},{ x:'03/18/2024',y:[10.10,10.20,10.10,10.20]},{ x:'03/19/2024',y:[10.20,10.20,10.11,10.17]},{ x:'03/20/2024',y:[10.15,10.27,10.15,10.25]},{ x:'03/21/2024',y:[10.51,10.63,10.51,10.63]},{ x:'03/22/2024',y:[10.67,10.67,10.55,10.55]},{ x:'03/25/2024',y:[10.61,10.61,10.55,10.55]},{ x:'03/26/2024',y:[10.60,10.72,10.60,10.65]},{ x:'03/27/2024',y:[10.68,10.74,10.68,10.74]},{ x:'03/28/2024',y:[10.72,10.72,10.70,10.72]},{ x:'03/29/2024',y:[10.72,10.86,10.72,10.86]},{ x:'04/01/2024',y:[10.85,10.85,10.72,10.72]},{ x:'04/02/2024',y:[10.85,10.94,10.85,10.90]},{ x:'04/03/2024',y:[10.80,10.83,10.80,10.83]},{ x:'04/08/2024',y:[10.78,10.78,10.74,10.74]},{ x:'04/09/2024',y:[10.82,10.85,10.81,10.83]},{ x:'04/10/2024',y:[10.87,10.88,10.87,10.87]},{ x:'04/11/2024',y:[10.87,10.89,10.87,10.89]},{ x:'04/12/2024',y:[10.89,10.93,10.86,10.86]},{ x:'04/15/2024',y:[10.67,10.68,10.63,10.68]},{ x:'04/16/2024',y:[10.34,10.38,10.33,10.38]},{ x:'04/17/2024',y:[10.36,10.40,10.36,10.39]},{ x:'04/18/2024',y:[10.39,10.39,10.30,10.34]},{ x:'04/19/2024',y:[9.90,9.91,9.78,9.87]},{ x:'04/22/2024',y:[9.87,9.87,9.59,9.59]},{ x:'04/23/2024',y:[9.70,9.70,9.68,9.68]},{ x:'04/24/2024',y:[10.01,10.12,10.01,10.11]},{ x:'04/25/2024',y:[9.92,9.92,9.86,9.86]},{ x:'04/26/2024',y:[10.00,10.01,10.00,10.01]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020025 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());