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:[24.76,24.82,24.70,24.75]},{ x:'01/23/2024',y:[24.89,24.92,24.85,24.92]},{ x:'01/24/2024',y:[25.10,25.26,25.10,25.13]},{ x:'01/25/2024',y:[25.22,25.34,25.22,25.30]},{ x:'01/26/2024',y:[24.93,24.93,24.84,24.92]},{ x:'01/29/2024',y:[24.58,24.62,24.56,24.57]},{ x:'01/30/2024',y:[24.31,24.31,24.17,24.17]},{ x:'01/31/2024',y:[24.69,24.72,24.66,24.68]},{ x:'02/01/2024',y:[24.70,24.80,24.69,24.77]},{ x:'02/02/2024',y:[24.50,24.53,24.44,24.44]},{ x:'02/05/2024',y:[24.19,24.29,24.08,24.27]},{ x:'02/15/2024',y:[24.24,24.24,23.66,23.72]},{ x:'02/16/2024',y:[23.65,23.65,23.56,23.65]},{ x:'02/19/2024',y:[23.68,23.78,23.68,23.78]},{ x:'02/20/2024',y:[23.89,24.04,23.89,24.00]},{ x:'02/21/2024',y:[23.94,23.94,23.80,23.85]},{ x:'02/22/2024',y:[23.56,23.60,23.52,23.57]},{ x:'02/23/2024',y:[23.33,23.41,23.33,23.38]},{ x:'02/26/2024',y:[23.23,23.26,23.15,23.16]},{ x:'02/27/2024',y:[23.23,23.43,23.23,23.42]},{ x:'02/29/2024',y:[23.17,23.18,23.06,23.12]},{ x:'03/01/2024',y:[23.04,23.21,23.03,23.21]},{ x:'03/04/2024',y:[23.31,23.47,23.29,23.46]},{ x:'03/05/2024',y:[23.35,23.36,23.27,23.29]},{ x:'03/06/2024',y:[23.24,23.35,23.24,23.30]},{ x:'03/07/2024',y:[23.26,23.32,23.23,23.29]},{ x:'03/08/2024',y:[23.54,23.72,23.54,23.71]},{ x:'03/11/2024',y:[23.90,23.98,23.85,23.85]},{ x:'03/12/2024',y:[23.90,23.92,23.83,23.92]},{ x:'03/13/2024',y:[24.06,24.13,24.03,24.03]},{ x:'03/14/2024',y:[24.15,24.26,24.15,24.22]},{ x:'03/15/2024',y:[24.22,24.23,24.13,24.21]},{ x:'03/18/2024',y:[24.36,24.38,24.23,24.25]},{ x:'03/19/2024',y:[24.07,24.11,24.04,24.04]},{ x:'03/20/2024',y:[24.02,24.05,24.00,24.04]},{ x:'03/21/2024',y:[24.70,24.74,24.64,24.71]},{ x:'03/22/2024',y:[24.51,24.51,24.34,24.34]},{ x:'03/25/2024',y:[24.23,24.23,24.10,24.15]},{ x:'03/26/2024',y:[24.41,24.41,24.37,24.39]},{ x:'03/27/2024',y:[24.27,24.29,24.17,24.20]},{ x:'03/28/2024',y:[24.22,24.22,24.12,24.14]},{ x:'03/29/2024',y:[24.21,24.21,24.16,24.18]},{ x:'04/01/2024',y:[24.19,24.32,24.19,24.30]},{ x:'04/02/2024',y:[24.13,24.14,24.08,24.10]},{ x:'04/03/2024',y:[23.79,23.83,23.73,23.81]},{ x:'04/08/2024',y:[24.01,24.15,24.00,24.15]},{ x:'04/09/2024',y:[23.93,24.00,23.90,23.96]},{ x:'04/10/2024',y:[23.92,23.94,23.87,23.90]},{ x:'04/11/2024',y:[23.61,23.67,23.60,23.60]},{ x:'04/12/2024',y:[23.46,23.49,23.41,23.47]},{ x:'04/15/2024',y:[23.80,23.82,23.77,23.79]},{ x:'04/16/2024',y:[23.55,23.64,23.52,23.58]},{ x:'04/17/2024',y:[23.33,23.34,23.29,23.30]},{ x:'04/18/2024',y:[23.36,23.37,23.30,23.35]},{ x:'04/19/2024',y:[23.05,23.31,23.02,23.23]},{ x:'04/22/2024',y:[23.40,23.44,23.35,23.37]},{ x:'04/23/2024',y:[23.67,23.82,23.66,23.78]},{ x:'04/24/2024',y:[23.82,23.84,23.80,23.80]},{ x:'04/25/2024',y:[23.71,23.71,23.61,23.63]},{ x:'04/26/2024',y:[23.72,23.75,23.70,23.73]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00693u 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());