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.35,8.44,8.30,8.35]},{ x:'01/23/2024',y:[8.34,8.49,8.34,8.40]},{ x:'01/24/2024',y:[8.42,8.56,8.39,8.39]},{ x:'01/25/2024',y:[8.47,8.47,8.36,8.36]},{ x:'01/26/2024',y:[8.36,8.39,8.34,8.36]},{ x:'01/29/2024',y:[8.36,8.41,8.32,8.41]},{ x:'01/30/2024',y:[8.41,8.42,8.35,8.35]},{ x:'01/31/2024',y:[8.36,8.40,8.28,8.29]},{ x:'02/01/2024',y:[8.30,8.40,8.30,8.35]},{ x:'02/02/2024',y:[8.37,8.37,8.29,8.31]},{ x:'02/05/2024',y:[8.31,8.31,8.23,8.25]},{ x:'02/15/2024',y:[8.25,8.28,8.18,8.28]},{ x:'02/16/2024',y:[8.24,8.32,8.24,8.31]},{ x:'02/19/2024',y:[8.32,8.50,8.32,8.44]},{ x:'02/20/2024',y:[8.49,8.56,8.43,8.52]},{ x:'02/21/2024',y:[8.58,8.68,8.56,8.56]},{ x:'02/22/2024',y:[8.60,8.63,8.52,8.54]},{ x:'02/23/2024',y:[8.56,8.56,8.40,8.41]},{ x:'02/26/2024',y:[8.42,8.48,8.37,8.37]},{ x:'02/27/2024',y:[8.38,8.43,8.24,8.26]},{ x:'02/29/2024',y:[8.31,8.42,8.30,8.36]},{ x:'03/01/2024',y:[8.38,8.38,8.30,8.33]},{ x:'03/04/2024',y:[8.31,8.33,8.24,8.26]},{ x:'03/05/2024',y:[8.38,8.38,8.20,8.25]},{ x:'03/06/2024',y:[8.25,8.27,8.19,8.21]},{ x:'03/07/2024',y:[8.19,8.20,8.10,8.10]},{ x:'03/08/2024',y:[8.10,8.16,8.04,8.06]},{ x:'03/11/2024',y:[8.06,8.17,8.06,8.12]},{ x:'03/12/2024',y:[8.14,8.14,8.09,8.12]},{ x:'03/13/2024',y:[8.10,8.13,8.05,8.08]},{ x:'03/14/2024',y:[8.09,8.10,8.03,8.04]},{ x:'03/15/2024',y:[8.04,8.04,7.95,7.97]},{ x:'03/18/2024',y:[7.91,7.92,7.80,7.81]},{ x:'03/19/2024',y:[7.81,7.98,7.80,7.94]},{ x:'03/20/2024',y:[7.94,7.97,7.88,7.89]},{ x:'03/21/2024',y:[7.93,7.93,7.86,7.91]},{ x:'03/22/2024',y:[7.90,7.90,7.84,7.86]},{ x:'03/25/2024',y:[7.86,7.95,7.86,7.87]},{ x:'03/26/2024',y:[7.88,7.92,7.80,7.86]},{ x:'03/27/2024',y:[7.83,7.90,7.82,7.90]},{ x:'03/28/2024',y:[7.91,7.96,7.87,7.88]},{ x:'03/29/2024',y:[7.90,7.92,7.82,7.84]},{ x:'04/01/2024',y:[7.84,7.89,7.80,7.84]},{ x:'04/02/2024',y:[7.84,7.87,7.82,7.82]},{ x:'04/03/2024',y:[7.81,7.83,7.60,7.65]},{ x:'04/08/2024',y:[7.65,7.67,7.50,7.57]},{ x:'04/09/2024',y:[7.55,7.75,7.55,7.67]},{ x:'04/10/2024',y:[7.67,7.75,7.66,7.75]},{ x:'04/11/2024',y:[7.75,7.75,7.63,7.64]},{ x:'04/12/2024',y:[7.67,7.68,7.56,7.60]},{ x:'04/15/2024',y:[7.58,7.64,7.53,7.57]},{ x:'04/16/2024',y:[7.57,7.57,7.38,7.38]},{ x:'04/17/2024',y:[7.40,7.52,7.37,7.47]},{ x:'04/18/2024',y:[7.48,7.48,7.39,7.46]},{ x:'04/19/2024',y:[7.46,7.65,7.41,7.50]},{ x:'04/22/2024',y:[7.58,7.77,7.58,7.67]},{ x:'04/23/2024',y:[7.67,7.69,7.59,7.65]},{ x:'04/24/2024',y:[7.67,7.68,7.61,7.65]},{ x:'04/25/2024',y:[7.66,7.72,7.62,7.68]},{ x:'04/26/2024',y:[7.68,7.78,7.63,7.75]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2601 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());