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:[7.65,7.67,7.13,7.16]},{ x:'01/23/2024',y:[7.27,7.64,7.20,7.58]},{ x:'01/24/2024',y:[7.87,7.89,7.58,7.65]},{ x:'01/25/2024',y:[8.16,8.37,7.97,8.37]},{ x:'01/26/2024',y:[8.26,8.38,8.18,8.26]},{ x:'01/29/2024',y:[8.31,8.40,8.18,8.20]},{ x:'01/30/2024',y:[8.02,8.12,7.80,7.86]},{ x:'01/31/2024',y:[7.78,7.86,7.60,7.62]},{ x:'02/01/2024',y:[7.68,7.92,7.56,7.80]},{ x:'02/02/2024',y:[7.80,8.03,7.70,7.73]},{ x:'02/05/2024',y:[7.65,7.80,7.41,7.76]},{ x:'02/15/2024',y:[7.99,8.12,7.83,8.01]},{ x:'02/16/2024',y:[8.15,8.45,8.01,8.45]},{ x:'02/19/2024',y:[8.50,8.50,8.20,8.22]},{ x:'02/20/2024',y:[8.21,8.40,8.13,8.16]},{ x:'02/21/2024',y:[8.25,8.85,8.22,8.77]},{ x:'02/22/2024',y:[8.70,8.74,8.51,8.74]},{ x:'02/23/2024',y:[8.79,9.00,8.70,8.80]},{ x:'02/26/2024',y:[8.84,8.88,8.69,8.73]},{ x:'02/27/2024',y:[8.70,8.77,8.53,8.72]},{ x:'02/29/2024',y:[8.50,8.77,8.48,8.60]},{ x:'03/01/2024',y:[8.54,8.70,8.21,8.59]},{ x:'03/04/2024',y:[8.66,8.74,8.53,8.57]},{ x:'03/05/2024',y:[8.48,8.58,8.22,8.22]},{ x:'03/06/2024',y:[8.20,8.58,8.19,8.49]},{ x:'03/07/2024',y:[8.50,8.59,8.39,8.41]},{ x:'03/08/2024',y:[8.42,8.57,8.34,8.50]},{ x:'03/11/2024',y:[8.39,8.67,8.39,8.63]},{ x:'03/12/2024',y:[8.73,9.03,8.68,9.02]},{ x:'03/13/2024',y:[9.13,9.26,9.09,9.25]},{ x:'03/14/2024',y:[9.24,9.29,9.02,9.03]},{ x:'03/15/2024',y:[8.94,8.94,8.65,8.68]},{ x:'03/18/2024',y:[8.81,8.91,8.73,8.84]},{ x:'03/19/2024',y:[8.78,8.81,8.60,8.66]},{ x:'03/20/2024',y:[8.73,8.76,8.54,8.66]},{ x:'03/21/2024',y:[8.80,9.08,8.77,8.97]},{ x:'03/22/2024',y:[8.95,8.95,8.44,8.53]},{ x:'03/25/2024',y:[8.53,8.71,8.53,8.61]},{ x:'03/26/2024',y:[8.53,8.75,8.53,8.62]},{ x:'03/27/2024',y:[8.66,8.70,8.49,8.53]},{ x:'03/28/2024',y:[8.60,8.81,8.47,8.77]},{ x:'03/29/2024',y:[8.72,8.72,8.67,8.69]},{ x:'04/01/2024',y:[8.71,8.90,8.71,8.90]},{ x:'04/02/2024',y:[8.95,9.13,8.88,9.02]},{ x:'04/03/2024',y:[9.09,9.09,8.84,8.90]},{ x:'04/08/2024',y:[8.88,9.01,8.70,8.85]},{ x:'04/09/2024',y:[8.89,9.12,8.89,8.95]},{ x:'04/10/2024',y:[9.02,9.28,9.01,9.26]},{ x:'04/11/2024',y:[9.03,9.19,8.89,9.19]},{ x:'04/12/2024',y:[9.15,9.16,8.88,8.93]},{ x:'04/15/2024',y:[8.61,8.74,8.53,8.70]},{ x:'04/16/2024',y:[8.58,8.58,8.37,8.43]},{ x:'04/17/2024',y:[8.38,8.44,8.27,8.29]},{ x:'04/18/2024',y:[8.30,8.60,8.30,8.50]},{ x:'04/19/2024',y:[8.41,8.43,8.14,8.26]},{ x:'04/22/2024',y:[8.39,8.72,8.36,8.62]},{ x:'04/23/2024',y:[8.78,8.91,8.71,8.91]},{ x:'04/24/2024',y:[9.00,9.29,8.99,9.26]},{ x:'04/25/2024',y:[9.30,9.59,9.21,9.40]},{ x:'04/26/2024',y:[9.44,9.89,9.44,9.89]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00650l 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());